imag [C++ Reference]
Keywords: complex,imag
Date: 2010-04-19T02:16:48-0700

[[imag]]
C++ Reference
Translations of this page?:

- en
- br-pt
- cn
- cz
- de
- es
- fr
- it
- jp
- nl
- pl
- ro
- ru
- sk
- tr
- tw

## imag

Syntax:

        #include <complex>
        template <class T>
        T imag( complex<T> num );
        // or:
        T complex<T>::imag( );

The imag() function returns the imaginary part of num. It is available as both a regular function and as a method of the complex number.

Edit this page • Old revisions
• • • Login • Index • Recent changes • RSS • cc •