serve/vendor/markbaker/complex/classes/src/functionsrho.php

Function code for the complex rho() function

Functions

rho()

rho(\Complex\Complex|mixed  $complex) : float

Returns the rho of a complex number.

This is the distance/radius from the centrepoint to the representation of the number in polar coordinates.

Parameters

\Complex\Complex|mixed $complex

Complex number or a numeric value.

Throws

\Complex\Exception

If argument isn't a valid real or complex number.

Returns

float —

The rho value of the complex argument.