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           _ISOC99_SOURCE || _POSIX_C_SOURCE >= 200112L
21               || _XOPEN_SOURCE >= 500
22               || /* Since glibc 2.19: */ _DEFAULT_SOURCE
23               || /* Glibc <= 2.19: */ _BSD_SOURCE || _SVID_SOURCE
24
25       cbrtf(), cbrtl():
26           _ISOC99_SOURCE || _POSIX_C_SOURCE >= 200112L
27               || /* Since glibc 2.19: */ _DEFAULT_SOURCE
28               || /* Glibc <= 2.19: */ _BSD_SOURCE || _SVID_SOURCE
29

DESCRIPTION

31       These functions return the (real) cube root of x.  This function cannot
32       fail; every representable real value  has  a  representable  real  cube
33       root.
34

RETURN VALUE

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

ERRORS

42       No errors occur.
43

ATTRIBUTES

45       For an  explanation  of  the  terms  used  in  this  section,  see  at‐
46       tributes(7).
47
48       ┌────────────────────────────────────────────┬───────────────┬─────────┐
49Interface                                   Attribute     Value   
50       ├────────────────────────────────────────────┼───────────────┼─────────┤
51cbrt(), cbrtf(), cbrtl()                    │ Thread safety │ MT-Safe │
52       └────────────────────────────────────────────┴───────────────┴─────────┘
53

CONFORMING TO

55       C99, POSIX.1-2001, POSIX.1-2008.
56

SEE ALSO

58       pow(3), sqrt(3)
59

COLOPHON

61       This  page  is  part of release 5.12 of the Linux man-pages project.  A
62       description of the project, information about reporting bugs,  and  the
63       latest     version     of     this    page,    can    be    found    at
64       https://www.kernel.org/doc/man-pages/.
65
66
67
68GNU                               2021-03-22                           CBRT(3)
Impressum