Problem 42764. Find the next square number
Solution Stats
Problem Comments
Solution Comments
-
1 Comment
Similar to Solution 844592, this fails for large x, e.g., x = 1e16, due to floating point errors
-
1 Comment
This solution is numerically more stable than Solution 844592.
-
1 Comment
This solution fails for large x > 1e15 due to floating point errors (e.g., 1e16+0.5==1e16).
Problem Recent Solvers46
Suggested Problems
-
Reverse the elements of an array
774 Solvers
-
446 Solvers
-
3720 Solvers
-
Is this triangle right-angled?
3882 Solvers
-
Generate the sum of Squares of the given number
87 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!