Namespaces
Variants
Views
Actions

std::abs(std::complex)

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

Returns the magnitude of the complex number z.

[edit] Parameters

z - complex value

[edit] Return value

the magnitude of z

[edit] See also

returns the phase angle
(function template) [edit]