Please add more tests, because it is easy to cheat :)
ambiguous about what happens to numbers between [0,0.1] : ill-defined problem or poor-testsuite
kinda easy
The solution passes all tests but it is not correct.
??? What is this man???
Really???
He probably noticed that you had already set x to the correct answer in your test suite. All he (or anybody else) has to do is pass it back to you. Try removing the FOR loop from your test (and add some more tests while you're in there!).
Find the peak 3n+1 sequence value
1121 Solvers
Flag largest magnitude swings as they occur
588 Solvers
Sum the 'edge' values of a matrix
236 Solvers
Find out value of sine given by degree.
235 Solvers
2740 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!