-
1 Comment
Ramon Villamangca
on 18 May 2023
I suggest you use the function 'nthroot' instead of '^(1/3)'. RaIsing to a fractional exponent may sometimes give inaccurate answers. For example 'floor(64^(1/3))' yields '3', which is obviously wrong.
Suggested Problems
-
Max Change in Consecutive Elements
164 Solvers
-
52 Solvers
-
174 Solvers
-
Compute expulsions from the Kimberling shuffle
9 Solvers
-
Compute the nth term from the Sieve of Flavius Josephus
15 Solvers
More from this Author116
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!