7.3.8.1 The cabs functions

Synopsis

1

#include <complex.h>
double cabs(double complex z);
float cabsf(float complex z);
long double cabsl(long double complex z);

Description

2

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

Returns

3

The cabs functions return the complex absolute value.