1CBRT(3) Linux Programmer's Manual CBRT(3)
2
3
4
6 cbrt, cbrtf, cbrtl - cube root function
7
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
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
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
41 No errors occur.
42
44 C99, POSIX.1-2001.
45
47 pow(3), sqrt(3)
48
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)