CIMAG(3) | Library Functions Manual | CIMAG(3)

# NAME

`cimag`, `cimagf`, `cimagl` — compute the imaginary part of a complex number

# SYNOPSIS

Math Library (libm, -lm)
`#include <complex.h>`

double
`cimag`(double complex z);

float
`cimagf`(float complex z);

long double
`cimagl`(long double complex z);

# DESCRIPTION

The `cimag`(), `cimagf`() and `cimagl`() functions compute the imaginary part of z.

# RETURN VALUES

The `cimag`(), `cimagf`() and `cimagl`() functions return the imaginary part of the complex number z as a real number.

# SEE ALSO

carg(3)

# STANDARDS

The `cimag`(), `cimagf`() and `cimagl`() functions conform to ISO/IEC 9899:1999 (“ISO C99”).

June 7, 2025 | Debian