Module complex

Module complex 

Source

Structs§

Cartesian
Cartesian complex number.
Polar
Polar complex number.

Functions§

abs
Calculate the absolute value of the argument.
add
Add two complex fixed-point numbers in cartesian form.
div_cartesian
Divide a cartesian complex by a real scalar. c = a/b
div_scalar_cartesian
Divide a cartesian complex by a real scalar. c = a/b
mul_cartesian
Multiply two cartesian complex numbers.
mul_polar
Multiply fixed-point complex numbers in polar form.
powi
Rase a complex fixed-point number to an real-valued integer power. base^power.
sub
Subtract b from a. c = a-b
to_cartesian
Cast cartesian complex fixed point number to polar form.
to_polar
Cast cartesian complex fixed point number to polar form.