1CBRT(P) POSIX Programmer's Manual CBRT(P)
2
3
4
6 cbrt, cbrtf, cbrtl - cube root functions
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
17 These functions shall compute the real cube root of their argument x.
18
20 Upon successful completion, these functions shall return the cube root
21 of x.
22
23 If x is NaN, a NaN shall be returned.
24
25 If x is ±0 or ±Inf, x shall be returned.
26
28 No errors are defined.
29
30 The following sections are informative.
31
33 None.
34
36 None.
37
39 For some applications, a true cube root function, which returns nega‐
40 tive results for negative arguments, is more appropriate than pow( x,
41 1.0/3.0), which returns a NaN for x less than 0.
42
44 None.
45
47 The Base Definitions volume of IEEE Std 1003.1-2001, <math.h>
48
50 Portions of this text are reprinted and reproduced in electronic form
51 from IEEE Std 1003.1, 2003 Edition, Standard for Information Technology
52 -- Portable Operating System Interface (POSIX), The Open Group Base
53 Specifications Issue 6, Copyright (C) 2001-2003 by the Institute of
54 Electrical and Electronics Engineers, Inc and The Open Group. In the
55 event of any discrepancy between this version and the original IEEE and
56 The Open Group Standard, the original IEEE and The Open Group Standard
57 is the referee document. The original Standard can be obtained online
58 at http://www.opengroup.org/unix/online.html .
59
60
61
62IEEE/The Open Group 2003 CBRT(P)