Problem 423. System of equations
Solution Stats
Problem Comments
-
3 Comments
Yvan Lengwiler
on 4 Mar 2012
Consider using a small tolerance for the solution. My program coincides with your test cases up to 3e-16. That ought to be good enough, I think :)
James
on 16 Jul 2012
My solution error was at 2.22e-16. Still not good enough, though.
Darina Bartova
on 22 May 2022
it would be useful to say that you want solution in integer! (althougth I do not understand why)
Solution Comments
-
1 Comment
eggart
on 2 Mar 2016
Obviously round(A\b) is the alledgedly correct answer which is in general different from the numerical approximation of the solution.
I wonder whether this is intended?
-
1 Comment
David Hruska
on 29 Feb 2012
Assumes the solutions are always integers. The tests would ideally use a tolerance in checking the solutions.
Problem Recent Solvers283
Suggested Problems
-
2171 Solvers
-
633 Solvers
-
261 Solvers
-
632 Solvers
-
147 Solvers
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!