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.
961 Solvers
Recurring Cycle Length (Inspired by Project Euler Problem 26)
68 Solvers
10 Solvers
Flag largest magnitude swings as they occur
588 Solvers
43 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!