Your solution is fastest so far.
Good job, Athi.
@Athi, your solution contains many "magic" constant variables that I don't know how you got.
William's solution is much easier to understood, although it is slower than yours.
Thanks li haitao.
184 Solvers
506 Solvers
126 Solvers
Check that number is whole number
1097 Solvers
2744 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!