Deleted Added
full compact
math.3 (208594) math.3 (216211)
1.\" Copyright (c) 1985 Regents of the University of California.
2.\" All rights reserved.
3.\"
4.\" Redistribution and use in source and binary forms, with or without
5.\" modification, are permitted provided that the following conditions
6.\" are met:
7.\" 1. Redistributions of source code must retain the above copyright
8.\" notice, this list of conditions and the following disclaimer.

--- 12 unchanged lines hidden (view full) ---

21.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
22.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
23.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
24.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
25.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
26.\" SUCH DAMAGE.
27.\"
28.\" from: @(#)math.3 6.10 (Berkeley) 5/6/91
1.\" Copyright (c) 1985 Regents of the University of California.
2.\" All rights reserved.
3.\"
4.\" Redistribution and use in source and binary forms, with or without
5.\" modification, are permitted provided that the following conditions
6.\" are met:
7.\" 1. Redistributions of source code must retain the above copyright
8.\" notice, this list of conditions and the following disclaimer.

--- 12 unchanged lines hidden (view full) ---

21.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
22.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
23.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
24.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
25.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
26.\" SUCH DAMAGE.
27.\"
28.\" from: @(#)math.3 6.10 (Berkeley) 5/6/91
29.\" $FreeBSD: head/lib/msun/man/math.3 208594 2010-05-27 13:56:27Z uqs $
29.\" $FreeBSD: head/lib/msun/man/math.3 216211 2010-12-05 22:11:22Z das $
30.\"
30.\"
31.Dd December 16, 2007
31.Dd December 5, 2010
32.Dt MATH 3
33.Os
34.Sh NAME
35.Nm math
36.Nd "floating-point mathematical library"
37.Sh LIBRARY
38.Lb libm
39.Sh SYNOPSIS

--- 137 unchanged lines hidden (view full) ---

177expm1 exp(x)\-1
178j0 Bessel function of the first kind of the order 0
179j1 Bessel function of the first kind of the order 1
180jn Bessel function of the first kind of the order n
181lgamma log gamma function
182log natural logarithm
183log10 logarithm to base 10
184log1p log(1+x)
32.Dt MATH 3
33.Os
34.Sh NAME
35.Nm math
36.Nd "floating-point mathematical library"
37.Sh LIBRARY
38.Lb libm
39.Sh SYNOPSIS

--- 137 unchanged lines hidden (view full) ---

177expm1 exp(x)\-1
178j0 Bessel function of the first kind of the order 0
179j1 Bessel function of the first kind of the order 1
180jn Bessel function of the first kind of the order n
181lgamma log gamma function
182log natural logarithm
183log10 logarithm to base 10
184log1p log(1+x)
185.\" log2 base 2 logarithm
185log2 base 2 logarithm
186pow exponential x**y
187sin trigonometric function
188sinh hyperbolic function
189tan trigonometric function
190tanh hyperbolic function
191tgamma gamma function
192y0 Bessel function of the second kind of the order 0
193y1 Bessel function of the second kind of the order 1
194yn Bessel function of the second kind of the order n
195.El
196.Pp
186pow exponential x**y
187sin trigonometric function
188sinh hyperbolic function
189tan trigonometric function
190tanh hyperbolic function
191tgamma gamma function
192y0 Bessel function of the second kind of the order 0
193y1 Bessel function of the second kind of the order 1
194yn Bessel function of the second kind of the order n
195.El
196.Pp
197Unlike the algebraic functions listed earlier, the routines
197The routines
198in this section may not produce a result that is correctly rounded,
199so reproducible results cannot be guaranteed across platforms.
200For most of these functions, however, incorrect rounding occurs
201rarely, and then only in very-close-to-halfway cases.
202.Sh SEE ALSO
203.Xr fenv 3 ,
204.Xr ieee 3 ,
205.Xr tgmath 3

--- 10 unchanged lines hidden (view full) ---

216.Fx 1.1.5 .
217Additional routines, including ones for
218.Vt float
219and
220.Vt long double
221values, were written for or imported into subsequent versions of FreeBSD.
222.Sh BUGS
223The
198in this section may not produce a result that is correctly rounded,
199so reproducible results cannot be guaranteed across platforms.
200For most of these functions, however, incorrect rounding occurs
201rarely, and then only in very-close-to-halfway cases.
202.Sh SEE ALSO
203.Xr fenv 3 ,
204.Xr ieee 3 ,
205.Xr tgmath 3

--- 10 unchanged lines hidden (view full) ---

216.Fx 1.1.5 .
217Additional routines, including ones for
218.Vt float
219and
220.Vt long double
221values, were written for or imported into subsequent versions of FreeBSD.
222.Sh BUGS
223The
224.Fn log2
225function is missing, and many functions are not available in their
224.Fn cbrt
225function and many of the transcendental functions
226are not available in their
226.Vt "long double"
227variants.
228.Pp
229Many of the routines to compute transcendental functions produce
230inaccurate results in other than the default rounding mode.
231.Pp
227.Vt "long double"
228variants.
229.Pp
230Many of the routines to compute transcendental functions produce
231inaccurate results in other than the default rounding mode.
232.Pp
232On some architectures, trigonometric argument reduction is not
233performed accurately, resulting in errors greater than 1
233On the i386 platform, trigonometric argument reduction is not
234performed accurately for very large arguments, resulting in errors
235greater than 1
234.Em ulp
236.Em ulp
235for large arguments to
237for such arguments to
236.Fn cos ,
237.Fn sin ,
238and
239.Fn tan .
238.Fn cos ,
239.Fn sin ,
240and
241.Fn tan .