Description
Complex numbers.
Rectangular formComplex numbers are an algebraic type.
For a complex number z
,
is a number with the magnitude of abs
zz
, but oriented in the positive real direction, whereas
has the phase of signum
zz
, but unit magnitude.
Constructors
!a :+ !aforms a complex number from its real and imaginary rectangular components.
Polar formpolar :: RealFloat a => Complex a -> (a, a)Source
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 (-
; if the magnitude is zero, then so is the phase.pi
, pi
]
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4