mirror of
https://github.com/lcn2/calc.git
synced 2025-08-16 01:03:29 +03:00
27 lines
340 B
Plaintext
27 lines
340 B
Plaintext
NAME
|
|
im - imaginary part of a real or complex number
|
|
|
|
SYNOPSIS
|
|
im(x)
|
|
|
|
TYPES
|
|
x real or complex
|
|
|
|
return real
|
|
|
|
DESCRIPTION
|
|
If x = u + v * 1i where u and v are real, im(x) returns v.
|
|
|
|
EXAMPLE
|
|
> print im(2), im(2 + 3i), im(-4.25 - 7i)
|
|
0 3 -7
|
|
|
|
LIMITS
|
|
none
|
|
|
|
LIBRARY
|
|
COMPLEX *cimag(COMPLEX *x)
|
|
|
|
SEE ALSO
|
|
re
|