The imaginary part is the factor by which the imaginary unit is multiplied.
A global function exists, imag, with the same behavior.
Parameters
noneReturn value
Imaginary part.T is complex's template type.
Example
| 1 2 3 4 5 6 7 8 9 10 11 12 13 |
|
Output:
Imaginary part: 2 |
See also
| complex::real | Return real part (public member function) |
| imag | Return imaginary part of complex (function template) |
