cabs(), cabsf(), cabsl()

Compute the absolute value of a complex number

Synopsis:

#include <complex.h>

double cabs( double complex value );

float cabsf( float complex value );

long double cabsl(  long double complex value );

Arguments:

value
The complex value that you want to get the absolute value of.

Library:

libm

Use the -l m option to qcc to link against this library.

Description:

These functions compute the absolute value of the complex number specified by value.

Returns:

The absolute value of value.

Classification:

ANSI, POSIX 1003.1

Safety:  
Cancellation point No
Interrupt handler No
Signal handler No
Thread Yes