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





Description 
Complex numbers.


Synopsis 




Rectangular form


data RealFloat a => Complex a 
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  


realPart :: RealFloat a => Complex a > a 
Extracts the real part of a complex number.


imagPart :: RealFloat a => Complex a > a 
Extracts the imaginary part of a complex number.


Polar form


mkPolar :: RealFloat a => a > a > Complex a 

cis :: RealFloat a => a > Complex a 

polar :: RealFloat a => Complex a > (a, a) 

magnitude :: RealFloat a => Complex a > a 

phase :: RealFloat a => Complex a > a 

Conjugate


conjugate :: RealFloat a => Complex a > Complex a 

Produced by Haddock version 2.3.0 