]>
Commit | Line | Data |
---|---|---|
1 | .\" Copyright 1993 David Metcalfe (david@prism.demon.co.uk) | |
2 | .\" and Copyright 2008, Linux Foundation, written by Michael Kerrisk | |
3 | .\" <mtk.manpages@gmail.com> | |
4 | .\" | |
5 | .\" %%%LICENSE_START(VERBATIM) | |
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. | |
14 | .\" | |
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. | |
22 | .\" | |
23 | .\" Formatted or processed versions of this manual, if unaccompanied by | |
24 | .\" the source, must acknowledge the copyright and authors of this work. | |
25 | .\" %%%LICENSE_END | |
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) | |
35 | .TH EXP10 3 2017-09-15 "GNU" "Linux Programmer's Manual" | |
36 | .SH NAME | |
37 | exp10, exp10f, exp10l \- base-10 exponential function | |
38 | .SH SYNOPSIS | |
39 | .nf | |
40 | .BR "#define _GNU_SOURCE" " /* See feature_test_macros(7) */" | |
41 | .B #include <math.h> | |
42 | .PP | |
43 | .BI "double exp10(double " x ); | |
44 | .BI "float exp10f(float " x ); | |
45 | .BI "long double exp10l(long double " x ); | |
46 | .fi | |
47 | .PP | |
48 | Link with \fI\-lm\fP. | |
49 | .SH DESCRIPTION | |
50 | These functions return the value of 10 | |
51 | raised to the power of | |
52 | .IR x . | |
53 | .SH RETURN VALUE | |
54 | On success, these functions return the base-10 exponential value of | |
55 | .IR x . | |
56 | .PP | |
57 | For various special cases, including the handling of infinity and NaN, | |
58 | as well as overflows and underflows, see | |
59 | .BR exp (3). | |
60 | .SH ERRORS | |
61 | See | |
62 | .BR math_error (7) | |
63 | for information on how to determine whether an error has occurred | |
64 | when calling these functions. | |
65 | .PP | |
66 | For a discussion of the errors that can occur for these functions, see | |
67 | .BR exp (3). | |
68 | .SH VERSIONS | |
69 | These functions first appeared in glibc in version 2.1. | |
70 | .SH ATTRIBUTES | |
71 | For an explanation of the terms used in this section, see | |
72 | .BR attributes (7). | |
73 | .TS | |
74 | allbox; | |
75 | lbw28 lb lb | |
76 | l l l. | |
77 | Interface Attribute Value | |
78 | T{ | |
79 | .BR exp10 (), | |
80 | .BR exp10f (), | |
81 | .BR exp10l () | |
82 | T} Thread safety MT-Safe | |
83 | .TE | |
84 | .SH CONFORMING TO | |
85 | These functions are GNU extensions. | |
86 | .SH BUGS | |
87 | Prior to version 2.19, the glibc implementation of these functions did not set | |
88 | .I errno | |
89 | to | |
90 | .B ERANGE | |
91 | when an underflow error occurred. | |
92 | .\" http://sources.redhat.com/bugzilla/show_bug.cgi?id=6787 | |
93 | .SH SEE ALSO | |
94 | .BR cbrt (3), | |
95 | .BR exp (3), | |
96 | .BR exp2 (3), | |
97 | .BR log10 (3), | |
98 | .BR sqrt (3) |