Problem 42988. Linear system of equations
Solution Stats
Problem Comments
-
1 Comment
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
inv(A)*b solution not working for test case 1.. Am I wrong with this?
It's the floating-point precision that matters.
Problem Recent Solvers206
Suggested Problems
-
1115 Solvers
-
Back to basics 9 - Indexed References
408 Solvers
-
Create an n-by-n null matrix and fill with ones certain positions
440 Solvers
-
Simple equation: Annual salary
3995 Solvers
-
Write a code that will follow the equation y = x * (x + x) * x.
253 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!