The test suite needs to accept some tolerance, unless the author desires that a specific method is implemented, which should mentioned. For instance, while trying to approximate the solution, I was able to reach only 8 decimal places within Cody's time restrictions.
588 Solvers
Sum the elements in either diagonal of a square matrix
181 Solvers
327 Solvers
250 Solvers
1200 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!