Namespaces
Variants
Views
Actions

Difference between revisions of "cpp/numeric/complex/abs"

From cppreference.com
< cpp‎ | numeric‎ | complex
m (Shorten template names. Use {{lc}} where appropriate.)
m (Update links.)
Line 19: Line 19:
 
===See also===
 
===See also===
 
{{dsc begin}}
 
{{dsc begin}}
{{dsc inc | cpp/numeric/complex/dcl list arg}}
+
{{dsc inc | cpp/numeric/complex/dsc arg}}
 
{{dsc end}}
 
{{dsc end}}
  

Revision as of 22:15, 31 May 2013

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

Returns the magnitude of the complex number z.

Parameters

z - complex value

Return value

the magnitude of z

See also

returns the phase angle
(function template) [edit]