Name

imag function template — Returns imaginary part

Synopsis

template<typename T> T imag(const complex<T>& z)

The imag function returns the imaginary part of z, that is, z.imag( ).