Problem 321. polar inertia
given locations of a set of unit masses on complex plane, find polar moment of inerta about the origin. for example output 4 if input [0 1 1+1i 0-1i]
Solution Stats
Problem Comments
- 
		2 Comments
 
		@bmtran (Bryant Tran)
    	on 15 Feb 2012
	
	
  	you should ease up numerically on equality, so my solution works :)
		Rafael S.T. Vieira
    	on 16 Oct 2020
	
	
  	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
Solution Comments
Show commentsProblem Recent Solvers62
Suggested Problems
- 
         
         
16046 Solvers
 - 
         
         
4449 Solvers
 - 
         
         
126 Solvers
 - 
         
Remove the two elements next to NaN value
682 Solvers
 - 
         
         
896 Solvers
 
More from this Author100
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!