Namespaces
Variants
Views
Actions

std::complex::imag

From cppreference.com
< cpp‎ | numeric‎ | complex
Revision as of 23:15, 31 May 2013 by P12bot (Talk | contribs)

constexpr T imag() const;
(1)
void imag( T value );
(2)

Accesses the imaginary part of the complex number.

1) Returns the imaginary part.

2) Sets the real imaginary to value.

Parameters

value - the value to set the imaginary part to

See also

accesses the real part of the complex number
(public member function) [edit]