
Data.Complex  Portability  portable  Stability  provisional  Maintainer  libraries@haskell.org 





Description 
Complex numbers.


Synopsis 




Rectangular form



Complex numbers are an algebraic type.
For a complex number z, abs z is a number with the magnitude of z,
but oriented in the positive real direction, whereas signum z
has the phase of z, but unit magnitude.
 Constructors  !a :+ !a  forms a complex number from its real and imaginary
rectangular components.

 Instances  



Extracts the real part of a complex number.



Extracts the imaginary part of a complex number.


Polar form



Form a complex number from polar components of magnitude and phase.



cis t is a complex value with magnitude 1
and phase t (modulo 2*pi).



The function polar takes a complex number and
returns a (magnitude, phase) pair in canonical form:
the magnitude is nonnegative, and the phase in the range (pi, pi];
if the magnitude is zero, then so is the phase.



The nonnegative magnitude of a complex number.



The phase of a complex number, in the range (pi, pi].
If the magnitude is zero, then so is the phase.


Conjugate



The conjugate of a complex number.


Produced by Haddock version 2.4.2 