base-compat-0.9.1: A compatibility layer for base

Safe HaskellSafe-Inferred
LanguageHaskell98

Data.Complex.Compat

Synopsis

Documentation

realPart :: Complex a -> a Source

Extracts the real part of a complex number.

imagPart :: Complex a -> a Source

Extracts the imaginary part of a complex number.

mkPolar :: Floating a => a -> a -> Complex a Source

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

cis :: Floating a => a -> Complex a Source

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

conjugate :: Num a => Complex a -> Complex a Source

The conjugate of a complex number.