The tests cases used an exact test for equality. In terms of floating point numbers, this is incorrect as a test, because it can fail to recognize entirely valid solutions, and there are many ways to validly solve this problem. As such, I modified the test cases to use a tolerance on the result.
inv(A)*b solution not working for test case 1.. Am I wrong with this?
It's the floating-point precision that matters.
Return a list sorted by number of occurrences
1514 Solvers
286 Solvers
298 Solvers
Compute LOG(1+X) in natural log
206 Solvers
Find the sides of an isosceles triangle when given its area and height from its base to apex
471 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!