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():
20           _BSD_SOURCE || _SVID_SOURCE || _XOPEN_SOURCE >= 500 ||
21           _XOPEN_SOURCE && _XOPEN_SOURCE_EXTENDED || _ISOC99_SOURCE ||
22           _POSIX_C_SOURCE >= 200112L;
23           or cc -std=c99
24       cbrtf(), cbrtl():
25           _BSD_SOURCE || _SVID_SOURCE || _XOPEN_SOURCE >= 600 ||
26           _ISOC99_SOURCE || _POSIX_C_SOUCE >= 200112L;
27           or cc -std=c99
28

DESCRIPTION

30       The cbrt() function returns the (real) cube root of x.   This  function
31       cannot  fail;  every  representable real value has a representable real
32       cube root.
33

RETURN VALUE

35       These functions return the cube root of x.
36
37       If x is +0, -0, positive infinity, negative  infinity,  or  NaN,  x  is
38       returned.
39

ERRORS

41       No errors occur.
42

CONFORMING TO

44       C99, POSIX.1-2001.
45

SEE ALSO

47       pow(3), sqrt(3)
48

COLOPHON

50       This  page  is  part of release 3.53 of the Linux man-pages project.  A
51       description of the project, and information about reporting  bugs,  can
52       be found at http://www.kernel.org/doc/man-pages/.
53
54
55
56GNU                               2010-09-20                           CBRT(3)
Impressum