digitalmars.com                      
Last update Sun Mar 4 12:00:57 2018

Complex Numbers


complex

Header
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

Header
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
See Also
casin, acos

casin

Header
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
See Also
cacos, asin

catan

Header
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
See Also
cacos, casin, atan

ccos

Header
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
See Also
cacos, csin, sin

csin

Header
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
See Also
casin, ccos, cos

ctan

Header
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
See Also
casin, cacos catan, csin, ccos, tan

cacosh

Header
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
See Also
casinh, acosh

casinh

Header
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
See Also
cacosh, asinh

catanh

Header
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
See Also
cacosh, casinh, atanh

ccosh

Header
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
See Also
cacosh, csinh, cos

csinh

Header
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
See Also
casinh, ccosh, sin

ctanh

Header
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
See Also
catanh, ctanh, tan

cexp

Header
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
See Also
clog, exp, log

clog

Header
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
See Also
cexp, exp

cabs

Header
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
See Also
fabs

cpow

Header
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
See Also
cexp, clog, pow

csqrt

Header
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
See Also
sqrt

carg

Header
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
See Also
sqrt

conj

Header
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
See Also
creal

conj

Header
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
See Also
creal, cimag

cproj

Header
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
See Also
sqrt

creal

Header
complex.h
Prototype
double creal(double complex z);
float crealf(float complex z);
long double creall(long double complex z);
Description
Computes the real component of z.
Return Value
Returns the real component of z.
Compatibility
Win32, ANSI C99 7.3.9.1
See Also
cimag
Home | Compiler & Tools | IDDE Reference | STL | Search | Download | Forums