Wednesday, August 31, 2016

C Library Header – complex

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

If __STDC_NO_COMPLEX__ is defined by the implementation, the header is not provided. Imaginary numbers are supported if __STDC_IEC_559_COMPLEX__ is defined.

The <complex.h> header shall define the following macro constants:
complex Complex type macro (C99)
_Complex_I the complex unit constant i (C99)
imaginary imaginary type macro (C99)
_Imaginary_I the imaginary unit constant i (C99)
I the complex or imaginary unit constant i (C99)

The <complex.h> header shall define the following functions:
Basic Operations:
CMPLX constructs a double type complex number from real and imaginary parts(function macro) (C11)
CMPLXF constructs a float type complex number from real and imaginary parts(function macro) (C11)
CMPLXL constructs a long double type complex number from real and imaginary parts(function macro) (C11)
cabs computes absolute value of type double(C99)
cabsf computes absolute value of type float(C99)
cabsl computes absolute value of type long double(C99)
carg computes argument of a complex number of type double(C99)
cargf computes argument of a complex number of type float(C99)
cargl computes argument of a complex number of type long double(C99)
cimag computes imaginary part of a complex number of type double(C99)
cimagf computes imaginary part of a complex number of type float(C99)
cimagl computes imaginary part of a complex number of type long double(C99)
creal computes real part of a complex number of type double(C99)
crealf computes real part of a complex number of type float(C99)
creall computes real part of a complex number of type long double(C99)
conj computes complex conjugate of type double(C99)
conjf computes complex conjugate of type float(C99)
conjl computes complex conjugate of type long double(C99)
cproj computes complex projection into the Riemann sphere of type double(C99)
cprojf computes complex projection into the Riemann sphere of type float(C99)
cprojl computes complex projection into the Riemann sphere of type long double(C99)

Exponentiation operations:
cexp computes complex exponential of type double(C99)
ccxpf computes complex exponential of type float(C99)
cexpl computes complex exponential of type long double(C99)
clog computes complex logarithm of type double(C99)
clogf computes complex logarithm of type float(C99)
clogl computes complex logarithm of type long double(C99)
csqrt computes complex square root of type double(C99)
csqrtf computes complex square root of type float(C99)
csqrtl computes complex square root of type long double(C99)
cpow computes complex power of type double(C99)
cpowf computes complex power of type float(C99)
cpowl computes complex power of type long double(C99)

Trigonometric operations:
csin computes complex sine of type double(C99)
csinf computes complex sine of type float(C99)
csinl computes complex sine of type long double(C99)
ccos computes complex cosine of type double(C99)
ccosf computes complex cosine of type float(C99)
ccosl computes complex cosine of type long double(C99)
ctan computes complex tangent of type double(C99)
ctanf computes complex tangent of type float(C99)
ctanl computes complex tangent of type long double(C99)
casin computes complex arc sine of type double(C99)
casinf computes complex arc sine of type float(C99)
casinl computes complex arc sine of type long double(C99)
cacos computes complex arc cosine of type double(C99)
cacosf computes complex arc cosine of type float(C99)
cacosl computes complex arc cosine of type long double(C99)
catan computes complex arc tangent of type double(C99)
catanf computes complex arc tangent of type float(C99)
catanl computes complex arc tangent of type long double(C99)

Hyperbolic operations:
csinh computes complex hyperbolic sine of type double(C99)
csinhf computes complex hyperbolic arc sine of type float(C99)
csinhl computes complex hyperbolic sine of type long double(C99)
ccosh computes complex hyperbolic cosine of type double(C99)
ccoshf computes complex hyperbolic cosine of type float(C99)
ccoshl computes complex hyperbolic cosine of type long double(C99)
ctanh computes complex hyperbolic tangent of type double(C99)
ctanhf computes complex hyperbolic tangent of type float(C99)
ctanhl computes complex hyperbolic tangent of type long double(C99)
casinh computes complex hyperbolic arc sine of type double(C99)
casinhf computes complex hyperbolic arc sine of type float(C99)
casinhl computes complex hyperbolic arc sine of type long double(C99)
cacosh computes complex hyperbolic arc cosine of type double(C99)
cacoshf computes complex hyperbolic arc cosine of type float(C99)
cacoshl computes complex hyperbolic arc cosine of type long double(C99)
catanh computes complex hyperbolic arc tangent of type double(C99)
catanhf computes complex hyperbolic arc tangent of type float(C99)
catanhl computes complex hyperbolic arc tangent of type long double(C99)



Related topics:
<assert.h>   |   <ctype.h>   |   <errno.h>   |   <fenv.h>   |   <float.h>   |   Standard Library in C

List of topics: C Programming

No comments:

Post a Comment