COMPLEX(3)

NAME
complex - complex arithmetic

LIBRARY
libm

SYNOPSIS
#include <complex.h>

DESCRIPTION
These functions support complex arithmetic in the C math library.

LIST OF FUNCTIONS
Each of the following double complex functions has a float complex counterpart with an ‘f’ appended to the name and a long double complex counterpart with an ‘l’ appended. As an example, the float complex and long double complex counterparts of double cabs(double complex z) are float cabsf(float complex z) and long double cabsl(long double complex z), respectively.

  Absolute-value Functions
cabs complex absolute value (i.e. norm, modulus, magnitude) csqrt complex square root

  Exponential Function
cexp exponential base e

  Manipulation Functions
carg compute the argument (i.e. phase angle) cimag compute the imaginary part conj compute the complex conjugate cproj compute projection onto Riemann sphere creal compute the real part

SEE ALSO
math(3), fenv(3), ieee(3), tgmath(3) ISO/IEC 9899:TC3, http://www.open-std.org/jtc1/sc22/wg14/www/docs/n1256.pdf.

STANDARDS
The <complex.h> functions described here conform to isoC-99.

BUGS
The inverse trigonometric and hyperbolic functions cacos(), cacosh(), casin(), casinh(), catan(), catanh(), ccos(), ccosh(), csin(), csinh(), ctan(), and ctanh() are not implemented.

The logarithmic functions clog() are not implemented.

The power functions cpow() are not implemented.