Name
cimag, cimagf, cimagl - get imaginary part of a complex numberLibrary
Math library ( libm ", " -lm )Synopsis
#include <complex.h> double cimag(double complex z );
float cimagf(float complex z );
long double cimagl(long double complex z );
Description
These functions return the imaginary part of the complex numberz
. One has:
z = creal(z) + I * cimag(z)
Attributes
For an explanation of the terms used in this section, see attributes(7).Interface | Attribute | Value |
T} | Thread safety | MT-Safe |