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

DESCRIPTION

30       These functions return the (real) cube root of x.  This function cannot
31       fail; every representable real value  has  a  representable  real  cube
32       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

ATTRIBUTES

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

CONFORMING TO

53       C99, POSIX.1-2001, POSIX.1-2008.
54

SEE ALSO

56       pow(3), sqrt(3)
57

COLOPHON

59       This  page  is  part of release 4.16 of the Linux man-pages project.  A
60       description of the project, information about reporting bugs,  and  the
61       latest     version     of     this    page,    can    be    found    at
62       https://www.kernel.org/doc/man-pages/.
63
64
65
66GNU                               2017-09-15                           CBRT(3)
Impressum