you should ease up numerically on equality, so my solution works :)
The polar inertia is the sum of the squared distances of all points from the origin. https://en.wikipedia.org/wiki/Polar_moment_of_inertia
Extract leading non-zero digit
1214 Solvers
80 Solvers
Back to basics 20 - singleton dimensions
255 Solvers
Sum of diagonal of a square matrix
1333 Solvers
Magic is simple (for beginners)
2961 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!