1999-12-09 17:26:08 +01:00
|
|
|
|
.\" Copyright (c) 1985, 1991 Regents of the University of California.
|
|
|
|
|
.\" All rights reserved.
|
|
|
|
|
.\"
|
|
|
|
|
.\" Redistribution and use in source and binary forms, with or without
|
|
|
|
|
.\" modification, are permitted provided that the following conditions
|
|
|
|
|
.\" are met:
|
|
|
|
|
.\" 1. Redistributions of source code must retain the above copyright
|
|
|
|
|
.\" notice, this list of conditions and the following disclaimer.
|
|
|
|
|
.\" 2. Redistributions in binary form must reproduce the above copyright
|
|
|
|
|
.\" notice, this list of conditions and the following disclaimer in the
|
|
|
|
|
.\" documentation and/or other materials provided with the distribution.
|
|
|
|
|
.\" 3. All advertising materials mentioning features or use of this software
|
|
|
|
|
.\" must display the following acknowledgement:
|
|
|
|
|
.\" This product includes software developed by the University of
|
|
|
|
|
.\" California, Berkeley and its contributors.
|
|
|
|
|
.\" 4. Neither the name of the University nor the names of its contributors
|
|
|
|
|
.\" may be used to endorse or promote products derived from this software
|
|
|
|
|
.\" without specific prior written permission.
|
|
|
|
|
.\"
|
|
|
|
|
.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
|
|
|
|
|
.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
|
|
|
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
|
|
|
|
.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
|
|
|
|
|
.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
|
|
|
.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
|
|
|
|
.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
|
|
|
|
.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
|
|
|
.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
|
|
|
|
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
|
|
|
|
.\" SUCH DAMAGE.
|
|
|
|
|
.\"
|
|
|
|
|
.\" from: @(#)ieee.3 6.4 (Berkeley) 5/6/91
|
2001-12-29 19:20:02 +01:00
|
|
|
|
.\" %FreeBSD: src/lib/msun/man/ieee.3,v 1.5.2.4 2001/08/17 15:43:08 ru Exp %
|
1999-12-09 17:26:08 +01:00
|
|
|
|
.\"
|
2001-05-14 03:10:24 +02:00
|
|
|
|
.\" $FreeBSD$
|
2001-07-26 02:36:08 +02:00
|
|
|
|
.Dd February 25, 1994
|
1999-12-09 17:26:08 +01:00
|
|
|
|
.Dt IEEE 3
|
|
|
|
|
.Os
|
|
|
|
|
.Sh ̾<EFBFBD><EFBFBD>
|
|
|
|
|
.Nm copysign ,
|
|
|
|
|
.Nm copysignf ,
|
|
|
|
|
.Nm finite ,
|
|
|
|
|
.Nm finitef ,
|
|
|
|
|
.Nm ilogb ,
|
|
|
|
|
.Nm ilogbf ,
|
|
|
|
|
.Nm nextafter ,
|
|
|
|
|
.Nm nextafterf ,
|
|
|
|
|
.Nm remainder ,
|
|
|
|
|
.Nm remainderf ,
|
|
|
|
|
.Nm scalbn ,
|
|
|
|
|
.Nm scalbnf
|
2001-07-26 02:36:08 +02:00
|
|
|
|
.Nd IEEE <EFBFBD>黻<EFBFBD>ؿ<EFBFBD>
|
2002-05-18 09:12:57 +02:00
|
|
|
|
.Sh <EFBFBD>饤<EFBFBD>֥<EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
.Lb libm
|
1999-12-09 17:26:08 +01:00
|
|
|
|
.Sh <EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
2002-05-18 09:12:57 +02:00
|
|
|
|
.In math.h
|
2001-12-29 19:20:02 +01:00
|
|
|
|
.Ft double
|
1999-12-09 17:26:08 +01:00
|
|
|
|
.Fn copysign "double x" "double y"
|
2001-12-29 19:20:02 +01:00
|
|
|
|
.Ft float
|
1999-12-09 17:26:08 +01:00
|
|
|
|
.Fn copysignf "float x" "float y"
|
2001-12-29 19:20:02 +01:00
|
|
|
|
.Ft int
|
1999-12-09 17:26:08 +01:00
|
|
|
|
.Fn finite "double x"
|
2001-12-29 19:20:02 +01:00
|
|
|
|
.Ft int
|
1999-12-09 17:26:08 +01:00
|
|
|
|
.Fn finitef "float x"
|
|
|
|
|
.Ft int
|
|
|
|
|
.Fn ilogb "double x"
|
|
|
|
|
.Ft int
|
|
|
|
|
.Fn ilogbf "float x"
|
2001-12-29 19:20:02 +01:00
|
|
|
|
.Ft double
|
1999-12-09 17:26:08 +01:00
|
|
|
|
.Fn nextafter "double x" "double y"
|
|
|
|
|
.Ft float
|
|
|
|
|
.Fn nextafterf "float x" "float y"
|
|
|
|
|
.Ft double
|
|
|
|
|
.Fn remainder "double x" "double y"
|
|
|
|
|
.Ft float
|
|
|
|
|
.Fn remainderf "float x" "float y"
|
2001-12-29 19:20:02 +01:00
|
|
|
|
.Ft double
|
1999-12-09 17:26:08 +01:00
|
|
|
|
.Fn scalbn "double x" "int n"
|
2001-12-29 19:20:02 +01:00
|
|
|
|
.Ft float
|
1999-12-09 17:26:08 +01:00
|
|
|
|
.Fn scalbnf "float x" "int n"
|
|
|
|
|
.Sh <EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
2001-07-26 02:36:08 +02:00
|
|
|
|
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>δؿ<EFBFBD><EFBFBD>ϡ<EFBFBD>
|
1999-12-09 17:26:08 +01:00
|
|
|
|
.St -ieee754
|
2001-07-26 02:36:08 +02:00
|
|
|
|
<EFBFBD>ˤ<EFBFBD><EFBFBD>ä<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ޤ<EFBFBD><EFBFBD>Ͽ侩<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ƥ<EFBFBD><EFBFBD>ޤ<EFBFBD><EFBFBD><EFBFBD>
|
1999-12-09 17:26:08 +01:00
|
|
|
|
.Pp
|
|
|
|
|
.Fn copysign
|
2001-07-26 02:36:08 +02:00
|
|
|
|
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
1999-12-09 17:26:08 +01:00
|
|
|
|
.Fn copysignf
|
2001-07-26 02:36:08 +02:00
|
|
|
|
<EFBFBD>ϡ<EFBFBD>
|
1999-12-09 17:26:08 +01:00
|
|
|
|
.Fa x
|
|
|
|
|
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
.Fa y
|
|
|
|
|
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>֤<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
.Fa x
|
|
|
|
|
<EFBFBD><EFBFBD><EFBFBD>֤<EFBFBD><EFBFBD>ޤ<EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
.Pp
|
|
|
|
|
\-\*(If \*(Lt
|
|
|
|
|
.Fa x
|
|
|
|
|
\*(Lt +\*(If
|
2001-07-26 02:36:08 +02:00
|
|
|
|
<EFBFBD>λ<EFBFBD><EFBFBD>ˤϡ<EFBFBD>
|
1999-12-09 17:26:08 +01:00
|
|
|
|
.Fn finite
|
2001-07-26 02:36:08 +02:00
|
|
|
|
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
1999-12-09 17:26:08 +01:00
|
|
|
|
.Fn finitef
|
2001-07-26 02:36:08 +02:00
|
|
|
|
<EFBFBD>ϡ<EFBFBD><EFBFBD><EFBFBD> 1 <20><><EFBFBD>֤<EFBFBD><D6A4>ޤ<EFBFBD><DEA4><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ǥʤ<C7A4><CAA4><EFBFBD> (
|
1999-12-09 17:26:08 +01:00
|
|
|
|
.Pf \\*(Ba Ns Fa x Ns \\*(Ba
|
2001-07-26 02:36:08 +02:00
|
|
|
|
= \*(If <20>ޤ<EFBFBD><DEA4><EFBFBD>
|
1999-12-09 17:26:08 +01:00
|
|
|
|
.Fa x
|
2001-07-26 02:36:08 +02:00
|
|
|
|
<EFBFBD><EFBFBD> \*(Na <20>λ<EFBFBD>) <20>ˤϡ<CBA4>0 <20><><EFBFBD>֤<EFBFBD><D6A4><EFBFBD><EFBFBD>ޤ<EFBFBD><DEA4><EFBFBD>
|
1999-12-09 17:26:08 +01:00
|
|
|
|
.Pp
|
|
|
|
|
.Fn ilogb
|
2001-07-26 02:36:08 +02:00
|
|
|
|
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
1999-12-09 17:26:08 +01:00
|
|
|
|
.Fn ilogbf
|
2001-07-26 02:36:08 +02:00
|
|
|
|
<EFBFBD>ϡ<EFBFBD>
|
1999-12-09 17:26:08 +01:00
|
|
|
|
.Fa x
|
|
|
|
|
<EFBFBD><EFBFBD>
|
|
|
|
|
.Fa n
|
2001-07-26 02:36:08 +02:00
|
|
|
|
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>֤<EFBFBD><EFBFBD>ޤ<EFBFBD><EFBFBD><EFBFBD>
|
2001-12-29 19:20:02 +01:00
|
|
|
|
.Fn ilogb \*(Pm\*(If
|
1999-12-09 17:26:08 +01:00
|
|
|
|
<EFBFBD><EFBFBD>
|
|
|
|
|
.Dv INT_MAX
|
2001-07-26 02:36:08 +02:00
|
|
|
|
<EFBFBD><EFBFBD><EFBFBD>֤<EFBFBD><EFBFBD><EFBFBD>
|
1999-12-09 17:26:08 +01:00
|
|
|
|
.Fn ilogb 0
|
|
|
|
|
<EFBFBD><EFBFBD>
|
|
|
|
|
.Dv INT_MIN
|
|
|
|
|
<EFBFBD><EFBFBD><EFBFBD>֤<EFBFBD><EFBFBD>ޤ<EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
.Pp
|
2001-12-29 19:20:02 +01:00
|
|
|
|
.Fn nextafter
|
2001-07-26 02:36:08 +02:00
|
|
|
|
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
1999-12-09 17:26:08 +01:00
|
|
|
|
.Fn nextafterf
|
2001-07-26 02:36:08 +02:00
|
|
|
|
<EFBFBD>ϡ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>Υޥ<EFBFBD><EFBFBD><EFBFBD>ɽ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ǽ<EFBFBD>ʿ<EFBFBD><EFBFBD><EFBFBD>
|
1999-12-09 17:26:08 +01:00
|
|
|
|
.Fa x
|
|
|
|
|
<EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
.Fa y
|
|
|
|
|
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>֤<EFBFBD><EFBFBD>ޤ<EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
.Pp
|
|
|
|
|
.Fn remainder
|
2001-07-26 02:36:08 +02:00
|
|
|
|
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
1999-12-09 17:26:08 +01:00
|
|
|
|
.Fn remainderf
|
2001-07-26 02:36:08 +02:00
|
|
|
|
<EFBFBD>ϡ<EFBFBD><EFBFBD><EFBFBD>;
|
|
|
|
|
.Fa r
|
|
|
|
|
:=
|
1999-12-09 17:26:08 +01:00
|
|
|
|
.Fa x
|
2001-07-26 02:36:08 +02:00
|
|
|
|
\-
|
1999-12-09 17:26:08 +01:00
|
|
|
|
.Fa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
|
.Pf \\*(Ba Fa y No \\*(Ba/2
|
|
|
|
|
.Sm on
|
2001-07-26 02:36:08 +02:00
|
|
|
|
<EFBFBD>Ȥʤ<EFBFBD><EFBFBD>ޤ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
1999-12-09 17:26:08 +01:00
|
|
|
|
.Fn remainder x 0
|
2001-07-26 02:36:08 +02:00
|
|
|
|
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
1999-12-09 17:26:08 +01:00
|
|
|
|
.Fn remainder \*(If 0
|
2001-07-26 02:36:08 +02:00
|
|
|
|
<EFBFBD>ϡ<EFBFBD>\*(Na <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>̵<EFBFBD><CCB5><EFBFBD>ʱ黻<CAB1>Ǥ<EFBFBD><C7A4><EFBFBD>
|
1999-12-09 17:26:08 +01:00
|
|
|
|
.Pp
|
|
|
|
|
.Fn scalbn
|
2001-07-26 02:36:08 +02:00
|
|
|
|
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
1999-12-09 17:26:08 +01:00
|
|
|
|
.Fn scalbnf
|
2001-07-26 02:36:08 +02:00
|
|
|
|
<EFBFBD>ϡ<EFBFBD><EFBFBD>ؿ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ˤ<EFBFBD><EFBFBD>äƷ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>줿
|
1999-12-09 17:26:08 +01:00
|
|
|
|
.Fa x Ns \(**(2** Ns Fa n )
|
|
|
|
|
<EFBFBD><EFBFBD><EFBFBD>֤<EFBFBD><EFBFBD>ޤ<EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
.Sh <EFBFBD><EFBFBD>Ϣ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
.Xr math 3
|
|
|
|
|
.Sh <EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
.Nm ieee
|
2001-07-26 02:36:08 +02:00
|
|
|
|
<EFBFBD>ؿ<EFBFBD><EFBFBD>ϡ<EFBFBD>
|
1999-12-09 17:26:08 +01:00
|
|
|
|
.Bx 4.3
|
2001-07-26 02:36:08 +02:00
|
|
|
|
<EFBFBD><EFBFBD><EFBFBD>о줷<EFBFBD>ޤ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
1999-12-09 17:26:08 +01:00
|
|
|
|
.Sh <EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
.St -ieee754
|