Namespaces
Variants
Views
Actions

std::arg(std::complex)

From cppreference.com
Defined in header <complex>
template< class T >
T arg( const complex<T>& z );

Returns the phase angle of the complex number z, i.e. atan2(std::imag(z), std::real(z)).

[edit] Parameters

z - complex value

[edit] Return value

the phase angle of z

[edit] See also

returns the squared magnitude
(function template) [edit]
returns the complex conjugate
(function template) [edit]
constructs a complex number from magnitude and phase angle
(function template) [edit]