Problem 423. System of equations
24.77% Correct | 75.23% Incorrect
Last Solution submitted on May 02, 2023
Yvan Lengwiler on 4 Mar 2012
Consider using a small tolerance for the solution. My program coincides with your test cases up to 3e-16. That ought to be good enough, I think :)
James on 16 Jul 2012
My solution error was at 2.22e-16. Still not good enough, though.
Darina Bartova on 22 May 2022
it would be useful to say that you want solution in integer! (althougth I do not understand why)
Solution CommentsShow comments
Problem Recent Solvers290
Return the 3n+1 sequence for n
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!