·  Home
+   man pages
 -> Linux -> FreeBSD -> OpenBSD -> NetBSD -> Tru64 Unix -> HP-UX 11i -> IRIX
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

man pages->NetBSD man pages -> sqrtf (3)
 Title
 Content
 Arch
 Section All Sections 1 - General Commands 2 - System Calls 3 - Subroutines 4 - Special Files 5 - File Formats 6 - Games 7 - Macros and Conventions 8 - Maintenance Commands 9 - Kernel Interface n - New Commands

## SQRT(3)

```
```

### NAME[Toc][Back]

```     cbrt, cbrtf, sqrt, sqrtf - cube root and square root functions
```

### LIBRARY[Toc][Back]

```     Math Library (libm, -lm)
```

### SYNOPSIS[Toc][Back]

```     #include <math.h>

double
cbrt(double x);

float
cbrtf(float x);

double
sqrt(double x);

float
sqrtf(float x);
```

### DESCRIPTION[Toc][Back]

```     The cbrt() and cbrtf() functions compute the cube root of x.

The sqrt() and sqrtf() functions compute the non-negative square root of
x.
```

### RETURN VALUES[Toc][Back]

```     If x is negative, sqrt(x) and sqrtf(x) set the global variable errno to
EDOM.
```

```     math(3)
```

### STANDARDS[Toc][Back]

```     The sqrt() function conforms to ANSI X3.159-1989 (``ANSI C'').
```

### HISTORY[Toc][Back]

```     The cbrt() function appeared in 4.3BSD.

BSD                               May 6, 1991                              BSD
```
[ Back ]
Similar pages
 Name OS Title cbrt Tru64 Square and cube root functions sqrt Tru64 Square and cube root functions sqrt IRIX cube root, square root sqrt IRIX cube root, square root sqrt IRIX cube root, square root cplxexp IRIX exponential, logarithm, power, square root functions for the C++ complex library cbrt Linux cube root function sqrt Linux square root function dlabad IRIX take as input the values computed by SLAMCH for underflow and overflow, and returns the square root of each of slabad IRIX take as input the values computed by SLAMCH for underflow and overflow, and returns the square root of each of