The imaginary part is the factor by which the imaginary unit is multiplied.
The function simply calls x's member function imag.
Parameters
- x
- Complex value.
Return value
Imaginary part of x.T is x's complex template type (i.e., its value type).
Example
| 1 2 3 4 5 6 7 8 9 10 11 12 13 |
|
Output:
Imaginary part: 2 |
See also
| real | Return real part of complex (function template) |
| complex::imag | Return imaginary part (public member function) |
