-
1 Comment
Andrew Newell
on 10 Jun 2013
This solution is correct to within eps, but the test is expecting exact agreement. That is not good programming when dealing with floating point numbers.
Suggested Problems
-
1861 Solvers
-
Project Euler: Problem 6, Natural numbers, squares and sums.
2323 Solvers
-
101 Solvers
-
Determine if input is a perfect number
242 Solvers
-
161 Solvers
More from this Author31
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!