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