cimag, cimagf, or cimagl Subroutine

Purpose

Performs complex imaginary computations.

Syntax

#include <complex.h>

double cimag (z)
double complex z;

float cimagf (z)
float complex z;

long double cimagl (z)
long double complex z;

Description

The cimag, cimagf, and cimagl subroutines compute the imaginary part of z.

Parameters

Item Description
z Specifies the value to be computed.

Return Values

The cimag, cimagf, and cimagl subroutines return the imaginary part value (as a real).