Everything
7.4.14 <complex.h>

Performs various complex number operations. For double-type complex number functions, the definition names are used as function names without change. For float-type and long double-type function names, "f" and "l" are added to the end of definition names, respectively.

Type

Definition Name

Description

Function

cacosf / cacos / cacosl

<-lang=c99>

Calculates the arc cosine of a complex number.

casinf / casin / casinl

<-lang=c99>

Calculates the arc sine of a complex number.

catanf / catan / catanl

<-lang=c99>

Calculates the arc tangent of a complex number.

ccosf / ccos / ccosl

<-lang=c99>

Calculates the cosine of a complex number.

csinf / csin / csinl

<-lang=c99>

Calculates the sine of a complex number.

ctanf / ctan / ctanl

<-lang=c99>

Calculates the tangent of a complex number.

cacoshf / cacosh / cacoshl

<-lang=c99>

Calculates the arc hyperbolic cosine of a complex number.

casinhf / casinh / casinhl

<-lang=c99>

Calculates the arc hyperbolic sine of a complex number.

catanhf / catanh / catanhl

<-lang=c99>

Calculates the arc hyperbolic tangent of a complex number.

ccoshf / ccosh / ccoshl

<-lang=c99>

Calculates the hyperbolic cosine of a complex number.

csinhf / csinh / csinhl

<-lang=c99>

Calculates the hyperbolic sine of a complex number.

ctanhf / ctanh / ctanhl

<-lang=c99>

Calculates the hyperbolic tangent of a complex number.

cexpf / cexp / cexpl

<-lang=c99>

Calculates the natural logarithm base e raised to the complex power 2.

clogf / clog / clogl

<-lang=c99>

Calculates the natural logarithm of a complex number.

cabsf / cabs / cabsl

<-lang=c99>

Calculates the absolute value of a complex number.

cpowf / cpow / cpowl

<-lang=c99>

Calculates a power of a complex number.

csqrtf / csqrt / csqrtl

<-lang=c99>

Calculates the square root of a complex number.

cargf / carg / cargl

<-lang=c99>

Calculates the argument of a complex number.

cimagf / cimag / cimagl

<-lang=c99>

Calculates the imaginary part of a complex number.

conjf / conj / conjl

<-lang=c99>

Reverses the sign of the imaginary part and calculates the complex conjugate of a complex number.

cprojf / cproj / cprojl

<-lang=c99>

Calculates the projection of a complex number on Riemann sphere.

crealf / creal / creall

<-lang=c99>

Calculates the real part of a complex number.