Implementation status: to be implemented

Synopsis

#include <complex.h>

double cimag(double complex z);
float cimagf(float complex z);
long double cimagl(long double complex z);

Description

The functions compute the imaginary part of z.

Arguments:
z - a variable of complex type.

Return value

These functions return the imaginary part value of the complex variable z as a real.

Errors

No errors are defined.

Implementation tasks

Implement the functions cimag(), cimagf(), cimagl()

Tests

======

Examples

For a variable z of complex type the following equation is true:

z == creal(z) + cimag()(z)*I