Given a square matrix(A), find the determinant(d).
A = [1,3;4,5]
d = 1*5-4*3 = -7
Anyone else have the built-in function det(A) fail?
Yes, in Solution 1568377 the second and fourth test cases are failed. —DIV
Solution 1568380 reports the size of the errors. Given that the input arrays contain only integers, I consider that the Test Suite is fair — although it would be advisable for the Problem Statement to explicitly guarantee that all inputs and outputs must be integers.
Sum of first n terms of a harmonic progression
Generate a vector like 1,2,2,3,3,3,4,4,4,4
02 - Vector Variables 5
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Contact your local office