tail head cat sleep
QR code linking to this page

Manual Pages  — COMPLEX

NAME

complex – complex arithmetic

CONTENTS

LIBRARY

Math Library (libm, -lm)

SYNOPSIS

#include <complex.h>

DESCRIPTION

These functions support complex arithmetic in the C math library.

LIST OF FUNCTIONS

Each of the following double complex functions has a float complex counterpart with an ‘f’ appended to the name and a long double complex counterpart with an ‘l’ appended. As an example, the float complex and long double complex counterparts of double cabs(double complex z) are float cabsf(float complex z) and long double cabsl(long double complex z), respectively.

Absolute-value Functions

Name
Description
cabscomplex absolute value (i.e. norm, modulus, magnitude)
csqrtcomplex square root

Exponential Function

Name
Description
cexpexponential base e

Manipulation Functions

Name
Description
cargcompute the argument (i.e. phase angle)
cimagcompute the imaginary part
conjcompute the complex conjugate
cprojcompute projection onto Riemann sphere
crealcompute the real part

Trigonometric and Hyperbolic Functions

Name
Description
cacosarc cosine
cacosharc hyperbolic cosine
casinarc sine
casinharc hyperbolic sine
catanarc tangent
catanharc hyperbolic tangent
ccoscosine
ccoshhyperbolic cosine
csinsine
csinhhyperbolic sine
ctantangent
ctanhhyperbolic tangent

SEE ALSO

STANDARDS

The <complex.h> functions described here conform to ISO/IEC 9899:1999 ("ISO C99").

BUGS

The logarithmic functions clog() and the power functions cpow() are not implemented.

COMPLEX (3) October 17, 2011

tail head cat sleep
QR code linking to this page


Please direct any comments about this manual page service to Ben Bullock. Privacy policy.

I'm not interested in developing a powerful brain. All I'm after is just a mediocre brain, something like the President of the American Telephone and Telegraph Company.
— Alan Turing