cmp.magnitude â real
Instance Public methods
Returns the absolute part of its polar form.
1 2 | Complex(- 1 ).abs #=> 1 Complex( 3 . 0 , - 4 . 0 ).abs #=> 5.0 |
Returns the absolute part of its polar form.
1 2 | Complex(- 1 ).abs #=> 1 Complex( 3 . 0 , - 4 . 0 ).abs #=> 5.0 |
Designed by : w10schools
service@w10schools.com
Please login to continue.