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
Function: magnitude
Type: RealFloat a => Complex a -> a
Description: The functions magnitude and phase extract the polar components of a complex number.
Related: imagPart, phase, realPart
MATHWORLD Argument (Complex Number)

Example 1

Input: magnitude (1:+1)

Output: 1.41421

Example 2

Input: magnitude 3

Output: 3.0