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

Technical Reference: Base Operating System and Extensions, Volume 1

csqrt, csqrtf, or csqrtl Subroutine

Purpose

Computes complex square roots.

Syntax

#include <complex.h>
double complex csqrt (z)
double complex z;

float complex csqrtf (z)
float complex z;

long double complex csqrtl (z)
long double complex z;

Description

The csqrt, csqrtf, and csqrtl subroutines compute the complex square root of the value specified by the z parameter, with a branch cut along the negative real axis.

Parameters

z Specifies the value to be computed.

Return Values

The csqrt, csqrtf, and csqrtl subroutines return the complex square root value, in the range of the right half-plane (including the imaginary axis).

Related Information

cabs, cabsf, or cabsl Subroutine, cpow, cpowf, or cpowl Subroutine

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