Provided by:

manpages-dev_2.77-1_all **NAME**

cabs, cabsf, cabsl - absolute value of a complex number

**SYNOPSIS**

**#include** **<complex.h>**
**double** **cabs(double** **complex** __z__**);**
**float** **cabsf(float** **complex** __z__**);**
**long** **double** **cabsl(long** **double** **complex** __z__**);**
Link with __-lm__.

**DESCRIPTION**

The **cabs**() function returns the absolute value of the complex number __z__.
The result is a real number.

**CONFORMING** **TO**

C99

**NOTES**

The function is actually an alias for __hypot(a,__ __b)__ (or, equivalently,
__sqrt(a*a__ __+__ __b*b)__).

**SEE** **ALSO**

**abs**(3), **cimag**(3), **hypot**(3), **complex**(7)

**COLOPHON**

This page is part of release 2.77 of the Linux __man-pages__ project. A
description of the project, and information about reporting bugs, can
be found at http://www.kernel.org/doc/man-pages/.
2007-12-26 CABS(3)