complex.h

From Wikipedia, the free encyclopedia

C Standard Library headers

complex.h is a header file in the standard library of the C programming language that defines functionality for complex arithmetic. These functions use the built-in type complex which was introduced with the C99 revision of C.

[edit] Function Declarations

complex.h defines the following functions (note that values are represented in radians):

double cabs(double complex); Complex magnitude (double)
float cabsf(float complex); Complex magnitude (float)
long double cabsl(long double complex); Complex magnitude (long double)
double complex cacos(double complex); Complex inverse cosine (double)
float complex cacosf(float complex); Complex inverse cosine (float)
double complex cacosh(double complex); Complex inverse hyperbolic cosine (double)
float complex cacoshf(float complex); Complex inverse hyperbolic cosine (float)
long double complex cacoshl(long double complex); Complex inverse hyperbolic cosine (long double)
long double complex cacosl(long double complex); Complex inverse cosine (long double)
double carg(double complex); Complex argument (double)
float cargf(float complex); Complex argument (float)
long double cargl(long double complex); Complex argument (long double)
double complex casin(double complex); Complex inverse sine (double)
float complex casinf(float complex); Complex inverse sine (float)
double complex casinh(double complex); Complex inverse hyperbolic sine (double)
float complex casinhf(float complex); Complex inverse hyperbolic sine (float)
long double complex casinhl(long double complex); Complex inverse hyperbolic sine (long double)
long double complex casinl(long double complex); Complex inverse sine (long double)
double complex catan(double complex); Complex inverse tangent (double)
float complex catanf(float complex); Complex inverse tan (float)
double complex catanh(double complex); Complex inverse hyperbolic tangent (double)
float complex catanhf(float complex); Complex inverse hyperbolic tan (float)
long double complex catanhl(long double complex); Complex inverse hyperbolic tan (long double)
long double complex catanl(long double complex); Complex inverse tan (long double)
double complex ccos(double complex); Complex cosine (double)
float complex ccosf(float complex); Complex cosine (float)
double complex ccosh(double complex); Complex hyperbolic cosine (double)
float complex ccoshf(float complex); Complex hyperbolic cosine (float)
long double complex ccoshl(long double complex); Complex hyperbolic cosine (long double)
long double complex ccosl(long double complex); Complex cosine (long double)
double complex cexp(double complex); Complex exponential (double)
float complex cexpf(float complex); Complex exponential (float)
long double complex cexpl(long double complex); Complex exponential (long double)
double cimag(double complex); Imaginary part of complex number (double)
float cimagf(float complex); Imaginary part of complex number (float)
long double cimagl(long double complex); Imaginary part of complex number (long double)
double complex clog(double complex); Complex logarithm (double)
float complex clogf(float complex); Complex logarithm (float)
long double complex clogl(long double complex); Complex logarithm (long double)
double complex conj(double complex); Complex conjugate (double)
float complex conjf(float complex); Complex conjugate (float)
long double complex conjl(long double complex); Complex conjugate (long double)
double complex cpow(double complex, double complex); Complex power (double)
float complex cpowf(float complex, float complex); Complex power (float)
long double complex cpowl(long double complex, long double complex); Complex power (long double)
double complex cproj(double complex); Complex projection (double)
float complex cprojf(float complex); complex projection (float)
long double complex cprojl(long double complex); Complex projection (long double)
double creal(double complex); Imaginary number real part (double)
float crealf(float complex); Imaginary number real part (float)
long double creall(long double complex); Imaginary number real part (long double)
double complex csin(double complex); Complex sine (double)
float complex csinf(float complex); Complex sine (float)
double complex csinh(double complex); Complex hyperbolic sine (double)
float complex csinhf(float complex); Complex hyperbolic sine (float)
long double complex csinhl(long double complex); Complex hyperbolic sine (long double)
long double complex csinl(long double complex); Complex sine (long double)
double complex csqrt(double complex); Complex square root (double)
float complex csqrtf(float complex); Complex square root (float)
long double complex csqrtl(long double complex); Complex square root (long double)
double complex ctan(double complex); Complex tangent (double)
float complex ctanf(float complex); Complex tangent (float)
double complex ctanh(double complex); Complex hyperbolic tangent (double)
float complex ctanhf(float complex); Complex hyperbolic tangent (float)
long double complex ctanhl(long double complex); Complex hyperbolic tangent (long double)
long double complex ctanl(long double complex); Complex tangent (long double)

[edit] External links