Problem 42764. Find the next square number
Solution Stats
Problem Comments
Solution Comments
-
1 Comment
Peng Liu
on 6 Mar 2016
Similar to Solution 844592, this fails for large x, e.g., x = 1e16, due to floating point errors
-
1 Comment
Peng Liu
on 6 Mar 2016
This solution is numerically more stable than Solution 844592.
-
1 Comment
Peng Liu
on 6 Mar 2016
This solution fails for large x > 1e15 due to floating point errors (e.g., 1e16+0.5==1e16).
Problem Recent Solvers47
Suggested Problems
-
Set the array elements whose value is 13 to 0
1172 Solvers
-
Test if two numbers have the same digits
208 Solvers
-
Find the index of the largest value in any vector X=[4,3,4,5,9,12,0,4.....5]
333 Solvers
-
Find the position of first minimum value in an integer array with numbers
159 Solvers
-
351 Solvers
More from this Author2
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!