Module

Data.Complex

Package
purescript-complex
Repository
Ebmtranceboy/purescript-complex

#Cartesian Source

data Cartesian a

Complex number defined by its real and imaginary parts

Constructors

Instances

#angle Source

angle :: Cartesian Number -> Number

Angle in radians

#conjugate Source

conjugate :: forall a. Ring a => Cartesian a -> Cartesian a

Conjugate

#fromPolar Source

fromPolar :: Number -> Number -> Cartesian Number

From radius and angle in radians

#i Source

i :: forall a. Semiring a => Cartesian a

Imaginary unit

#imag Source

imag :: forall a. Cartesian a -> a

Imaginary part

#magnitudeSquared Source

magnitudeSquared :: forall a. Ring a => Cartesian a -> a

Magnitude Squared

#normalize Source

normalize :: Cartesian Number -> Cartesian Number

Normalize to norm 1

#pow Source

pow :: Cartesian Number -> Number -> Cartesian Number

Real power of a complex

#real Source

real :: forall a. Cartesian a -> a

Real part

Modules
Data.Complex