1cbrt(3) Library Functions Manual cbrt(3)
2
3
4
6 cbrt, cbrtf, cbrtl - cube root function
7
9 Math library (libm, -lm)
10
12 #include <math.h>
13
14 double cbrt(double x);
15 float cbrtf(float x);
16 long double cbrtl(long double x);
17
18 Feature Test Macro Requirements for glibc (see feature_test_macros(7)):
19
20 cbrt():
21 _ISOC99_SOURCE || _POSIX_C_SOURCE >= 200112L
22 || _XOPEN_SOURCE >= 500
23 || /* Since glibc 2.19: */ _DEFAULT_SOURCE
24 || /* glibc <= 2.19: */ _BSD_SOURCE || _SVID_SOURCE
25
26 cbrtf(), cbrtl():
27 _ISOC99_SOURCE || _POSIX_C_SOURCE >= 200112L
28 || /* Since glibc 2.19: */ _DEFAULT_SOURCE
29 || /* glibc <= 2.19: */ _BSD_SOURCE || _SVID_SOURCE
30
32 These functions return the (real) cube root of x. This function cannot
33 fail; every representable real value has a representable real cube
34 root.
35
37 These functions return the cube root of x.
38
39 If x is +0, -0, positive infinity, negative infinity, or NaN, x is re‐
40 turned.
41
43 No errors occur.
44
46 For an explanation of the terms used in this section, see at‐
47 tributes(7).
48
49 ┌────────────────────────────────────────────┬───────────────┬─────────┐
50 │Interface │ Attribute │ Value │
51 ├────────────────────────────────────────────┼───────────────┼─────────┤
52 │cbrt(), cbrtf(), cbrtl() │ Thread safety │ MT-Safe │
53 └────────────────────────────────────────────┴───────────────┴─────────┘
54
56 C11, POSIX.1-2008.
57
59 C99, POSIX.1-2001.
60
62 pow(3), sqrt(3)
63
64
65
66Linux man-pages 6.04 2023-03-30 cbrt(3)