1CBRT(3)                    Linux Programmer's Manual                   CBRT(3)
2
3
4

NAME

6       cbrt, cbrtf, cbrtl - cube root function
7

SYNOPSIS

9       #include <math.h>
10
11       double cbrt(double x);
12       float cbrtf(float x);
13       long double cbrtl(long double x);
14
15       Link with -lm.
16
17   Feature Test Macro Requirements for glibc (see feature_test_macros(7)):
18
19       cbrt(): _BSD_SOURCE || _SVID_SOURCE || _XOPEN_SOURCE >= 500 ||
20       _ISOC99_SOURCE; or cc -std=c99
21       cbrtf(), cbrtl(): _BSD_SOURCE || _SVID_SOURCE || _XOPEN_SOURCE >= 600
22       || _ISOC99_SOURCE; or cc -std=c99
23

DESCRIPTION

25       The  cbrt()  function returns the (real) cube root of x.  This function
26       cannot fail; every representable real value has  a  representable  real
27       cube root.
28

RETURN VALUE

30       These functions return the cube root of x.
31
32       If  x  is  +0,  -0,  positive infinity, negative infinity, or NaN, x is
33       returned.
34

ERRORS

36       No errors occur.
37

CONFORMING TO

39       C99, POSIX.1-2001.
40

SEE ALSO

42       pow(3), sqrt(3)
43

COLOPHON

45       This page is part of release 3.22 of the Linux  man-pages  project.   A
46       description  of  the project, and information about reporting bugs, can
47       be found at http://www.kernel.org/doc/man-pages/.
48
49
50
51GNU                               2008-08-05                           CBRT(3)
Impressum