Last update Sun Mar 4 12:00:57 2018

Complex Numbers

complex

complex.h
Description
 complex Is a macro expanding to _Complex. _Complex_I Is a macro expanding to a const expression of type _Complex float and has a value of 0+I. imaginary, _Imaginary_I, I Are all macros expanding to a const expression of type _Imaginary float and have a value of I.
Compatibility
Win32, ANSI C99 7.3.1

cacos

complex.h
Prototype
double complex cacos(double complex z);
float complex cacosf(float complex z);
long double complex cacosl(long double complex z);
Description
Computes the complex arc cosine: cos-1z.
Return Value
Returns the complex arc cosine.
Compatibility
Win32, ANSI C99 7.3.5.1
casin, acos

casin

complex.h
Prototype
double complex casin(double complex z);
float complex casinf(float complex z);
long double complex casinl(long double complex z);
Description
Computes the complex arc sine : sin-1z.
Return Value
Returns the complex arc sine.
Compatibility
Win32, ANSI C99 7.3.5.2
cacos, asin

catan

complex.h
Prototype
double complex catan(double complex z);
float complex catanf(float complex z);
long double complex catanl(long double complex z);
Description
Computes the complex arc tangent: tan-1z.
Return Value
Returns the complex arc tangent.
Compatibility
Win32, ANSI C99 7.3.5.3
cacos, casin, atan

ccos

complex.h
Prototype
double complex ccos(double complex z);
float complex ccosf(float complex z);
long double complex ccosl(long double complex z);
Description
Computes the complex cosine.
Return Value
Returns the complex cosine.
Compatibility
Win32, ANSI C99 7.3.5.4
cacos, csin, sin

csin

complex.h
Prototype
double complex csin(double complex z);
float complex csinf(float complex z);
long double complex csinl(long double complex z);
Description
Computes the complex sine.
Return Value
Returns the complex sine.
Compatibility
Win32, ANSI C99 7.3.5.5
casin, ccos, cos

ctan

complex.h
Prototype
double complex ctan(double complex z);
float complex ctanf(float complex z);
long double complex ctanl(long double complex z);
Description
Computes the complex tangent.
Return Value
Returns the complex tangent.
Compatibility
Win32, ANSI C99 7.3.5.6
casin, cacos catan, csin, ccos, tan

cacosh

complex.h
Prototype
double complex cacosh(double complex z);
float complex cacoshf(float complex z);
long double complex cacoshl(long double complex z);
Description
Computes the complex arc hyperbolic cosine: cosh-1z.
Return Value
Returns the complex arc hyperbolic cosine.
Compatibility
Win32, ANSI C99 7.3.6.1
casinh, acosh

casinh

complex.h
Prototype
double complex casinh(double complex z);
float complex casinhf(float complex z);
long double complex casinhl(long double complex z);
Description
Computes the complex arc hyperbolic sine: sinh-1z.
Return Value
Returns the complex arc hyperbolic sine.
Compatibility
Win32, ANSI C99 7.3.6.2
cacosh, asinh

catanh

complex.h
Prototype
double complex catanh(double complex z);
float complex catanhf(float complex z);
long double complex catanhl(long double complex z);
Description
Computes the complex arc hyperbolic tangent: tanh-1z.
Return Value
Returns the complex arc hyperbolic tangent.
Compatibility
Win32, ANSI C99 7.3.6.3
cacosh, casinh, atanh

ccosh

complex.h
Prototype
double complex ccosh(double complex z);
float complex ccoshf(float complex z);
long double complex ccoshl(long double complex z);
Description
Computes the complex hyperbolic cosine.
Return Value
Returns the complex hyperbolic cosine.
Compatibility
Win32, ANSI C99 7.3.6.4
cacosh, csinh, cos

csinh

complex.h
Prototype
double complex csinh(double complex z);
float complex csinhf(float complex z);
long double complex csinhl(long double complex z);
Description
Computes the complex hyperbolic cosine.
Return Value
Returns the complex hyperbolic cosine.
Compatibility
Win32, ANSI C99 7.3.6.5
casinh, ccosh, sin

ctanh

complex.h
Prototype
double complex ctanh(double complex z);
float complex ctanhf(float complex z);
long double complex ctanhl(long double complex z);
Description
Computes the complex hyperbolic tangent.
Return Value
Returns the complex hyperbolic tangent.
Compatibility
Win32, ANSI C99 7.3.6.6
catanh, ctanh, tan

cexp

complex.h
Prototype
double complex cexp(double complex z);
float complex cexpf(float complex z);
long double complex cexpl(long double complex z);
Description
Computes e to the z power, ez.
Return Value
Returns e to the z power.
Compatibility
Win32, ANSI C99 7.3.7.1
clog, exp, log

clog

complex.h
Prototype
double complex clog(double complex z);
float complex clogf(float complex z);
long double complex clogl(long double complex z);
Description
Computes the base e logarithm of z, logez.
Return Value
Returns the base e logarithm of z.
Compatibility
Win32, ANSI C99 7.3.7.2
cexp, exp

cabs

complex.h
Prototype
double cabs(double complex z);
float cabsf(float complex z);
long double cabsl(long double complex z);
Description
Computes the absolute value of z, also known as the magnitude, norm, or modulus of z.
Return Value
Returns the absolute value of z.
Compatibility
Win32, ANSI C99 7.3.8.1
fabs

cpow

complex.h
Prototype
double complex cpow(double complex x, double complex y);
float complex cpowf(float complex x, float complex y);
long double complex cpowl(long double complex x, long double complex y);
Description
Computes x to the y power, xy.
Return Value
Returns x to the y power.
Compatibility
Win32, ANSI C99 7.3.8.2
cexp, clog, pow

csqrt

complex.h
Prototype
double complex csqrt(double complex z);
float complex csqrtf(float complex z);
long double complex csqrtl(long double complex z);
Description
Computes the square root of x, x1/2.
Return Value
Returns the square root of x.
Compatibility
Win32, ANSI C99 7.3.8.3
sqrt

carg

complex.h
Prototype
double complex carg(double complex z);
float complex cargf(float complex z);
long double complex cargl(long double complex z);
Description
Computes the phase angle of z.
Return Value
Returns the phase angle of z.
Compatibility
Win32, ANSI C99 7.3.9.1
sqrt

conj

complex.h
Prototype
double cimag(double complex z);
float cimagf(float complex z);
long double cimagl(long double complex z);
Description
Computes the imaginary part of z.
Return Value
Returns the imaginary part of z.
Compatibility
Win32, ANSI C99 7.3.9.2
creal

conj

complex.h
Prototype
double complex cconj(double complex z);
float complex cconjf(float complex z);
long double complex cconjl(long double complex z);
Description
Computes the complex conjugate of z. For z = x+iy, then the complex conjugate is x-iy.
Return Value
Returns the complex conjugate of z.
Compatibility
Win32, ANSI C99 7.3.9.3
creal, cimag

cproj

complex.h
Prototype
double complex cproj(double complex z);
float complex cprojf(float complex z);
long double complex cprojl(long double complex z);
Description
Computes the project of z onto the Riemann sphere.
Return Value
Returns the project of z onto the Riemann sphere.
Compatibility
Win32, ANSI C99 7.3.9.4
sqrt