Problem 42988. Linear system of equations
Solution Stats
Problem Comments
-
1 Comment
John D'Errico
on 2 Oct 2016
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.
Solution Comments
-
2 Comments
Neha Singh
on 20 Sep 2016
inv(A)*b solution not working for test case 1.. Am I wrong with this?
Peng Liu
on 20 Sep 2016
It's the floating-point precision that matters.
Problem Recent Solvers265
Suggested Problems
-
How to find the position of an element in a vector without using the find function
2616 Solvers
-
Create a square matrix of multiples
452 Solvers
-
985 Solvers
-
525 Solvers
-
556 Solvers
More from this Author8
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!