I got lazy about this one...
This is just a test. The value in the 4th test seems to come from 21 iterations only. The stopping criterion is not working also. Did I get it wrong?
Oops! my bad, I calculated the stop criterion incorrectly.
This is a pretty lame solution, but it is all you asked for...
It was just a first step for demonstration. More tests to come.
1231 Solvers
The Goldbach Conjecture, Part 2
1300 Solvers
843 Solvers
Sum the elements in either diagonal of a square matrix
180 Solvers
Output any real number that is neither positive nor negative
319 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!