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) | |
| constructs a complex number from magnitude and phase angle (function template) | |
| (C++11) | computes absolute value of an integral value (|x|) (function) | 
| absolute value of a floating point value (|x|) (function) | |
| (C++11) | computes square root of the sum of the squares of two given numbers (√x2 +y2 ) (function) | 
| applies the function std::abs to each element of valarray (function template) | |
| 
C documentation for cabs
 | |