OSDN Git Service

Update README
[linuxjm/LDP_man-pages.git] / original / man3 / cbrt.3
1 .\" Copyright 1995 Jim Van Zandt <jrv@vanzandt.mv.com>
2 .\"
3 .\" %%%LICENSE_START(VERBATIM)
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.
12 .\"
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.
20 .\"
21 .\" Formatted or processed versions of this manual, if unaccompanied by
22 .\" the source, must acknowledge the copyright and authors of this work.
23 .\" %%%LICENSE_END
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 .\"
30 .TH CBRT 3  2013-09-18 "GNU"  "Linux Programmer's Manual"
31 .SH NAME
32 cbrt, cbrtf, cbrtl \- cube root function
33 .SH SYNOPSIS
34 .nf
35 .B #include <math.h>
36 .sp
37 .BI "double cbrt(double " x );
38 .br
39 .BI "float cbrtf(float " x );
40 .br
41 .BI "long double cbrtl(long double " x );
42 .fi
43 .sp
44 Link with \fI\-lm\fP.
45 .sp
46 .in -4n
47 Feature Test Macro Requirements for glibc (see
48 .BR feature_test_macros (7)):
49 .in
50 .sp
51 .ad l
52 .BR cbrt ():
53 .br
54 .RS 4
55 _BSD_SOURCE || _SVID_SOURCE || _XOPEN_SOURCE\ >=\ 500 ||
56 _XOPEN_SOURCE\ &&\ _XOPEN_SOURCE_EXTENDED || _ISOC99_SOURCE ||
57 _POSIX_C_SOURCE\ >=\ 200112L;
58 .br
59 or
60 .I cc\ -std=c99
61 .RE
62 .BR cbrtf (),
63 .BR cbrtl ():
64 .RS 4
65 _BSD_SOURCE || _SVID_SOURCE || _XOPEN_SOURCE\ >=\ 600 || _ISOC99_SOURCE ||
66 _POSIX_C_SOUCE\ >=\ 200112L;
67 .br
68 or
69 .I cc\ -std=c99
70 .RE
71 .ad b
72 .SH DESCRIPTION
73 The
74 .BR cbrt ()
75 function returns the (real) cube root of
76 .IR x .
77 This function cannot fail; every representable real value has a
78 representable real cube root.
79 .SH RETURN VALUE
80 These functions return the cube root of
81 .IR x .
82
83 If
84 .I x
85 is +0, \-0, positive infinity, negative infinity, or NaN,
86 .I x
87 is returned.
88 .SH ERRORS
89 No errors occur.
90 .SH ATTRIBUTES
91 .SS Multithreading (see pthreads(7))
92 The
93 .BR cbrt (),
94 .BR cbrtf (),
95 and
96 .BR cbrtl ()
97 functions are thread-safe.
98 .SH CONFORMING TO
99 C99, POSIX.1-2001.
100 .\" .BR cbrt ()
101 .\" was a GNU extension. It is now a C99 requirement.
102 .SH SEE ALSO
103 .BR pow (3),
104 .BR sqrt (3)
105 .SH COLOPHON
106 This page is part of release 3.79 of the Linux
107 .I man-pages
108 project.
109 A description of the project,
110 information about reporting bugs,
111 and the latest version of this page,
112 can be found at
113 \%http://www.kernel.org/doc/man\-pages/.