cabs, cabsf, or cabsl Subroutine

Purpose

Returns a complex absolute value.

Syntax

#include <complex.h>

double cabs (z)
double complex z;

float cabsf (z)
float complex z;

long double cabsl (z)
long double complex z;

Description

The cabs, cabsf, or cabsl subroutines compute the complex absolute value (also called norm, modulus, or magnitude) of the z parameter.

Parameters

Item Description
z Specifies the value to be computed.

Return Values

Returns the complex absolute value.