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

Technical Reference: Base Operating System and Extensions, Volume 1

carg, cargf, or cargl Subroutine

Purpose

Returns the complex argument value.

Syntax

#include <complex.h>

double carg (z)
double complex z;

float cargf (z)
float complex z;

long double cargl (z)
long double complex z;

Description

The carg, cargf, or cargl subroutine computes the argument (also called phase angle) of the z parameter, with a branch cut along the negative real axis.

Parameters

z Specifies the value to be computed.

Return Values

The carg, cargf, or cargl subroutine returns the value of the argument in the interval [-pi , +pi].

Related Information

The cimag, cimagf, or cimagl Subroutine, conj, conjf, or conjl Subroutine, and cproj, cprojf, or cprojl Subroutine.

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