ZVON > References > Haskell reference
| Indexes | Syntax | Prelude | Ratio | >> Complex << | Numeric | Ix | Array | List | Maybe | Char | Monad | IO | Directory | System | Time | Locale | CPUTime | Random

Module: Complex
Operator: (:+)
Type: RealFloat a => a -> a -> Complex a
Priority: 6
Description: The constructor (:+) forms a complex number from its real and imaginary rectangular components. This constructor is strict: if either the real part or the imaginary part of the number is _|_, the entire number is _|_. A complex number may also be formed from polar components of magnitude and phase by the function mkPolar. The function cis produces a complex number from an angle t. Put another way, cis t is a complex value with magnitude 1 and phase t (modulo 2p).
Related: cis, mkPolar
MATHWORLD Complex Number

Example 1

Input: 12 :+ 23

Output: 12.0 :+ 23.0