Go to main content

man pages section 3: Extended Library Functions, Volume 2

Exit Print View

Updated: Wednesday, July 27, 2022
 
 

csqrt(3M)

Name

csqrt, csqrtf, csqrtl - complex square root functions

Synopsis

c99 [ flag... ] file... –lm [ library... ]
#include <complex.h>

double complex csqrt(double complex z);
float complex csqrtf(float complex z);
long double complex csqrtl(long double complex z);

Description

These functions compute the complex square root of z, with a branch cut along the negative real axis.

Return Values

These functions return the complex square root value, in the range of the right half-plane (including the imaginary axis).

Errors

No errors are defined.

Attributes

See attributes(7) for descriptions of the following attributes:

ATTRIBUTE TYPE
ATTRIBUTE VALUE
Interface Stability
Committed
Availability
system/library/math
MT-Level
MT-Safe
Standard

See Also

complex.h(3HEAD), cabs(3M), cpow(3M), attributes(7), standards(7)