man pages section 3: Extended Library Functions, Volume 2

Exit Print View

Updated: July 2014
 
 

cabs(3M)

Name

cabs, cabsf, cabsl - return a complex absolute value

Synopsis

c99 [ flag... ] file... –lm [ library... ]
#include <complex.h>

double cabs(double complex z);
float cabsf(float complex z);
long double cabsl(long double complex z);

Description

These functions compute the complex absolute value (also called norm, modulus, or magnitude) of z.

Return Values

These functions return the complex absolute value.

Errors

No errors are defined.

Attributes

See attributes(5) for descriptions of the following attributes:

ATTRIBUTE TYPE
ATTRIBUTE VALUE
Interface Stability
Committed
MT-Level
MT-Safe
Standard

See also

complex.h(3HEAD), attributes(5) , standards(5)