v2 update for type and method.
Updated:
get_phase(this, in_radians)
The phase value of complex number complex number.
Parameters:
this: complex . Complex number in the form `(real, imaginary)`.
in_radians: bool . Value for the type of angle value, default=true, options=(true: radians, false: degrees)
Returns: float. Value with phase.
natural_logarithm(this)
Natural logarithm of complex number (base E).
Parameters:
this: complex . Complex number in the form `(real, imaginary)`.
Returns: complex. Complex number.
common_logarithm(this)
Common logarithm of complex number (base 10).
Parameters:
this: complex . Complex number in the form `(real, imaginary)`.
Returns: complex. Complex number.
logarithm(this, base)
Common logarithm of complex number (custom base).
Parameters:
this: complex . Complex number in the form `(real, imaginary)`.
base: float . Base value.
Returns: complex. Complex number.
power(this, exponent)
Raise complex number with complex_exponent.
Parameters:
this: complex . Complex number in the form `(real, imaginary)`.
exponent: complex . Complex number in the form `(real, imaginary)`.
Returns: complex. Complex number.
root(this, exponent)
Raise complex number with inverse of complex_exponent.
Parameters:
this: complex . Complex number in the form `(real, imaginary)`.
exponent: complex . Complex number in the form `(real, imaginary)`.
Returns: complex. Complex number.
square(this)
Square of complex number (power 2).
Parameters:
this: complex . Complex number in the form `(real, imaginary)`.
Returns: complex. Complex number.
square_root(this)
Square root of complex number (power 1/2).
Parameters:
this: complex . Complex number in the form `(real, imaginary)`.
Returns: complex. Complex number.
square_roots(this)
Square root of complex number (power 1/2).
Parameters:
this: complex . Complex number in the form `(real, imaginary)`.
Returns: `array<complex>`. Array with 2 complex numbers, (positive, negative).
cubic_roots(this)
Square root of complex number (power 1/2).
Parameters:
this: complex . Complex number in the form `(real, imaginary)`.
Returns: `array<complex>`. Array with 3 complex numbers, (neutral, positive, negative).
to_polar_form(this, in_radians)
The polar form value of complex number.
Parameters:
this: complex . Complex number in the form `(real, imaginary)`.
in_radians: boolean, value for the type of angle value, default=true, options=(true: radians, false: degrees)
Returns: complex. Complex number, (radius, phase).