[ Bottom of Page | Previous Page | Next Page | Contents | Index | Library Home | Legal | Search ]

Technical Reference: Base Operating System and Extensions, Volume 1

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

z Specifies the value to be computed.

Return Values

Returns the complex absolute value.

[ Top of Page | Previous Page | Next Page | Contents | Index | Library Home | Legal | Search ]