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.
Inner product of two vectors
Number of 1s in the Binary Representation of a Number
Generate N equally spaced intervals between -L and L
Celsius to Fahrenheit converter
Matlab Basics - Convert a row vector to a column vector
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