]> git.ipfire.org Git - thirdparty/man-pages.git/blame - man3/cbrt.3
getauxval.3: Clarify that AT_BASE_PLATFORM and AT_EXECFN return pointers to strings
[thirdparty/man-pages.git] / man3 / cbrt.3
CommitLineData
fea681da
MK
1.\" Copyright 1995 Jim Van Zandt <jrv@vanzandt.mv.com>
2.\"
93015253 3.\" %%%LICENSE_START(VERBATIM)
fea681da
MK
4.\" Permission is granted to make and distribute verbatim copies of this
5.\" manual provided the copyright notice and this permission notice are
6.\" preserved on all copies.
7.\"
8.\" Permission is granted to copy and distribute modified versions of this
9.\" manual under the conditions for verbatim copying, provided that the
10.\" entire resulting derived work is distributed under the terms of a
11.\" permission notice identical to this one.
c13182ef 12.\"
fea681da
MK
13.\" Since the Linux kernel and libraries are constantly changing, this
14.\" manual page may be incorrect or out-of-date. The author(s) assume no
15.\" responsibility for errors or omissions, or for damages resulting from
16.\" the use of the information contained herein. The author(s) may not
17.\" have taken the same level of care in the production of this manual,
18.\" which is licensed free of charge, as they might when working
19.\" professionally.
c13182ef 20.\"
fea681da
MK
21.\" Formatted or processed versions of this manual, if unaccompanied by
22.\" the source, must acknowledge the copyright and authors of this work.
4b72fb64 23.\" %%%LICENSE_END
fea681da
MK
24.\"
25.\" changed `square root' into `cube root' - aeb, 950919
26.\"
27.\" Modified 2002-07-27 Walter Harms
28.\" (walter.harms@informatik.uni-oldenburg.de)
29.\"
4b8c67d9 30.TH CBRT 3 2017-09-15 "GNU" "Linux Programmer's Manual"
fea681da
MK
31.SH NAME
32cbrt, cbrtf, cbrtl \- cube root function
33.SH SYNOPSIS
34.nf
35.B #include <math.h>
68e4db0a 36.PP
fea681da 37.BI "double cbrt(double " x );
fea681da 38.BI "float cbrtf(float " x );
fea681da
MK
39.BI "long double cbrtl(long double " x );
40.fi
68e4db0a 41.PP
20c58d70 42Link with \fI\-lm\fP.
68e4db0a 43.PP
cc4615cc
MK
44.in -4n
45Feature Test Macro Requirements for glibc (see
46.BR feature_test_macros (7)):
47.in
68e4db0a 48.PP
cc4615cc 49.ad l
54b0fbfb 50.BR cbrt ():
54b0fbfb 51.br
6360784c 52.RS 4
636ed4d5
MK
53_ISOC99_SOURCE || _POSIX_C_SOURCE\ >=\ 200112L
54 || _XOPEN_SOURCE\ >=\ 500
cf7fa0a1 55.\" || _XOPEN_SOURCE\ &&\ _XOPEN_SOURCE_EXTENDED
636ed4d5
MK
56 || /* Since glibc 2.19: */ _DEFAULT_SOURCE
57 || /* Glibc versions <= 2.19: */ _BSD_SOURCE || _SVID_SOURCE
6360784c 58.RE
cc4615cc
MK
59.BR cbrtf (),
60.BR cbrtl ():
6360784c 61.RS 4
636ed4d5
MK
62_ISOC99_SOURCE || _POSIX_C_SOURCE\ >=\ 200112L
63 || /* Since glibc 2.19: */ _DEFAULT_SOURCE
64 || /* Glibc versions <= 2.19: */ _BSD_SOURCE || _SVID_SOURCE
c9f2ff9d 65.RE
cc4615cc 66.ad b
fea681da 67.SH DESCRIPTION
5600f73a 68These functions return the (real) cube root of
022671eb 69.IR x .
fea681da
MK
70This function cannot fail; every representable real value has a
71representable real cube root.
54b0fbfb
MK
72.SH RETURN VALUE
73These functions return the cube root of
74.IR x .
847e0d88 75.PP
54b0fbfb
MK
76If
77.I x
c3074d70 78is +0, \-0, positive infinity, negative infinity, or NaN,
54b0fbfb
MK
79.I x
80is returned.
81.SH ERRORS
82No errors occur.
680c76f1 83.SH ATTRIBUTES
db5117b0
MK
84For an explanation of the terms used in this section, see
85.BR attributes (7).
86.TS
87allbox;
88lbw24 lb lb
89l l l.
90Interface Attribute Value
91T{
680c76f1
PH
92.BR cbrt (),
93.BR cbrtf (),
680c76f1 94.BR cbrtl ()
db5117b0
MK
95T} Thread safety MT-Safe
96.TE
47297adb 97.SH CONFORMING TO
9a74e018 98C99, POSIX.1-2001, POSIX.1-2008.
68e1685c
MK
99.\" .BR cbrt ()
100.\" was a GNU extension. It is now a C99 requirement.
47297adb 101.SH SEE ALSO
fea681da
MK
102.BR pow (3),
103.BR sqrt (3)