method

magnitude

Importance_1
magnitude() public

Returns the absolute part of its polar form.

Complex(-1).abs         #=> 1
Complex(3.0, -4.0).abs  #=> 5.0
Show source
Register or log in to add new notes.