Go to main content

man pages section 3: Extended Library Functions, Volume 2

Exit Print View

Updated: Thursday, June 13, 2019
 
 

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(7) for descriptions of the following attributes:

ATTRIBUTE TYPE
ATTRIBUTE VALUE
Interface Stability
Committed
Availability
system/library/math
MT-Level
MT-Safe
Standard

See Also

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