29 Numerics library [numerics]

29.5 Complex numbers [complex.numbers]

29.5.7 complex value operations [complex.value.ops]

template<class T> constexpr T real(const complex<T>& x);

Returns: x.real().

template<class T> constexpr T imag(const complex<T>& x);

Returns: x.imag().

template<class T> T abs(const complex<T>& x);

Returns: Величина x.

template<class T> T arg(const complex<T>& x);

Returns: Фазовый угол x, или atan2(imag(x), real(x)).

template<class T> T norm(const complex<T>& x);

Returns: Квадрат величины x.

template<class T> complex<T> conj(const complex<T>& x);

Returns: Комплексное сопряжение x.

template<class T> complex<T> proj(const complex<T>& x);

Returns: Проекция x на сферу Римана.

Remarks: Ведет себя так же, как функция C cproj, определенная в 7.3.9.4.

template<class T> complex<T> polar(const T& rho, const T& theta = 0);

Requires: rho должно быть неотрицательным и отличным от NaN. theta будет конечным.

Returns: complex Значение , соответствующее комплексное число, величина которого rho и чье фазовый угол theta.