Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

csqrtf(3m) [opensolaris man page]

csqrt(3M)						  Mathematical Library Functions						 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(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Interface Stability |Standard | +-----------------------------+-----------------------------+ |MT-Level |MT-Safe | +-----------------------------+-----------------------------+ SEE ALSO
cabs(3M), complex.h(3HEAD), cpow(3M), attributes(5), standards(5) SunOS 5.11 12 Jul 2006 csqrt(3M)

Check Out this Related Man Page

CSQRT(3)						   BSD Library Functions Manual 						  CSQRT(3)

NAME
csqrt -- complex square root function SYNOPSIS
#include <complex.h> double complex csqrt(double complex z); long double complex csqrtl(long double complex z); float complex csqrtf(float complex z); DESCRIPTION
csqrt(z) computes the square root of the complex floating-point number z, with a branch cut on the negative real axis. The result is in the right half-plane, including the imaginary axis. For all complex z, csqrt(conj(z)) = conj(csqrt(z)). SPECIAL VALUES
The conjugate symmetry of csqrt() is used to abbreviate the specification of special values. csqrt(+-0 + 0i) returns +0 + 0i. csqrt(x + inf i) returns inf + inf i for all x (including NaN). csqrt(x + NaN i) returns NaN + NaN i. csqrt(-inf + yi) returns 0 + inf i for any positively-signed finite y. csqrt(inf + yi) returns inf + 0i for any positively-signed finite y. csqrt(-inf + NaN i) returns NaN + inf i. csqrt(inf + NaN i) returns inf + NaN i. csqrt(NaN + yi) returns NaN + NaN i. csqrt(NaN + NaN i) returns NaN + NaN i. NOTES
If z is in the upper half-plane, then csqrt(z) is in the upper-right quadrant of the complex plane. If z is in the lower half-plane, then csqrt(z) is in the lower-right quadrant of the complex plane. SEE ALSO
complex(3) STANDARDS
The csqrt() function conforms to ISO/IEC 9899:2011. 4th Berkeley Distribution December 11, 2006 4th Berkeley Distribution
Man Page

3 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

why put double square brackets in an if clause?

what is the rationale behind putting double square brackets in an if clause? for e.g. if ] || ] || ]; then echo some fields are null fi (5 Replies)
Discussion started by: napolayan
5 Replies

2. Programming

How to call the c library created by shc

I have written a shell script called square, which prints the square of the input number, eg. > square 4 16 There is a program called shc which compiles the shell scirpt and create a executable file and a c library file, namely square.x and square.x.c repectively. If I would like to... (1 Reply)
Discussion started by: alfredo
1 Replies

3. UNIX for Dummies Questions & Answers

Single or double square brackets

Hi frieds, I don't understand the difference between single square bracket and double square brackets in a IF condition. Ex. if ; then RETURNJOB=1 else RETURNJOB=0 fi It run, but this if ]; then RETURNJOB=1 else RETURNJOB=0 fi (4 Replies)
Discussion started by: dogshort
4 Replies