]> git.ipfire.org Git - thirdparty/man-pages.git/blame - man3/exp10.3
err.3: EXAMPLES: use EXIT_FAILURE rather than 1 as exit status
[thirdparty/man-pages.git] / man3 / exp10.3
CommitLineData
fea681da 1.\" Copyright 1993 David Metcalfe (david@prism.demon.co.uk)
f4fe98d1
MK
2.\" and Copyright 2008, Linux Foundation, written by Michael Kerrisk
3.\" <mtk.manpages@gmail.com>
fea681da 4.\"
93015253 5.\" %%%LICENSE_START(VERBATIM)
fea681da
MK
6.\" Permission is granted to make and distribute verbatim copies of this
7.\" manual provided the copyright notice and this permission notice are
8.\" preserved on all copies.
9.\"
10.\" Permission is granted to copy and distribute modified versions of this
11.\" manual under the conditions for verbatim copying, provided that the
12.\" entire resulting derived work is distributed under the terms of a
13.\" permission notice identical to this one.
c13182ef 14.\"
fea681da
MK
15.\" Since the Linux kernel and libraries are constantly changing, this
16.\" manual page may be incorrect or out-of-date. The author(s) assume no
17.\" responsibility for errors or omissions, or for damages resulting from
18.\" the use of the information contained herein. The author(s) may not
19.\" have taken the same level of care in the production of this manual,
20.\" which is licensed free of charge, as they might when working
21.\" professionally.
c13182ef 22.\"
fea681da
MK
23.\" Formatted or processed versions of this manual, if unaccompanied by
24.\" the source, must acknowledge the copyright and authors of this work.
4b72fb64 25.\" %%%LICENSE_END
fea681da
MK
26.\"
27.\" References consulted:
28.\" Linux libc source code
29.\" Lewine's _POSIX Programmer's Guide_ (O'Reilly & Associates, 1991)
30.\" 386BSD man pages
31.\" Modified 1993-07-24 by Rik Faith (faith@cs.unc.edu)
32.\" Modified 1995-08-14 by Arnt Gulbrandsen <agulbra@troll.no>
33.\" Modified 2002-07-27 by Walter Harms
34.\" (walter.harms@informatik.uni-oldenburg.de)
4b8c67d9 35.TH EXP10 3 2017-09-15 "GNU" "Linux Programmer's Manual"
fea681da
MK
36.SH NAME
37exp10, exp10f, exp10l \- base-10 exponential function
38.SH SYNOPSIS
39.nf
b80f966b 40.BR "#define _GNU_SOURCE" " /* See feature_test_macros(7) */"
fea681da 41.B #include <math.h>
68e4db0a 42.PP
fea681da 43.BI "double exp10(double " x );
fea681da 44.BI "float exp10f(float " x );
fea681da
MK
45.BI "long double exp10l(long double " x );
46.fi
68e4db0a 47.PP
20c58d70 48Link with \fI\-lm\fP.
fea681da 49.SH DESCRIPTION
5600f73a 50These functions return the value of 10
c6fa0841
MK
51raised to the power of
52.IR x .
f4fe98d1
MK
53.SH RETURN VALUE
54On success, these functions return the base-10 exponential value of
55.IR x .
847e0d88 56.PP
f4fe98d1
MK
57For various special cases, including the handling of infinity and NaN,
58as well as overflows and underflows, see
59.BR exp (3).
60.SH ERRORS
61See
62.BR math_error (7)
63for information on how to determine whether an error has occurred
64when calling these functions.
847e0d88 65.PP
f4fe98d1
MK
66For a discussion of the errors that can occur for these functions, see
67.BR exp (3).
f0d7ce1d
MK
68.SH VERSIONS
69These functions first appeared in glibc in version 2.1.
f2b5e0b6
MS
70.SH ATTRIBUTES
71For an explanation of the terms used in this section, see
72.BR attributes (7).
73.TS
74allbox;
75lbw28 lb lb
76l l l.
77Interface Attribute Value
78T{
79.BR exp10 (),
80.BR exp10f (),
81.BR exp10l ()
82T} Thread safety MT-Safe
83.TE
47297adb 84.SH CONFORMING TO
f4fe98d1 85These functions are GNU extensions.
0ba55175
MK
86.SH BUGS
87Prior to version 2.19, the glibc implementation of these functions did not set
88.I errno
89to
90.B ERANGE
91when an underflow error occurred.
92.\" http://sources.redhat.com/bugzilla/show_bug.cgi?id=6787
47297adb 93.SH SEE ALSO
fea681da
MK
94.BR cbrt (3),
95.BR exp (3),
96.BR exp2 (3),
344dd45e 97.BR log10 (3),
0a4f8b7b 98.BR sqrt (3)