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
|
2002-05-18 09:12:57 +02:00
|
|
|
|
.\" %FreeBSD: src/lib/msun/man/ieee_test.3,v 1.5.2.4 2001/12/17 10:08:36 ru Exp %
|
1999-12-09 17:26:08 +01:00
|
|
|
|
.\"
|
2001-05-14 03:10:24 +02:00
|
|
|
|
.\" $FreeBSD$
|
1999-12-09 17:26:08 +01:00
|
|
|
|
.Dd March 10, 1994
|
|
|
|
|
.Dt IEEE_TEST 3
|
2001-12-29 19:20:02 +01:00
|
|
|
|
.Os
|
1999-12-09 17:26:08 +01:00
|
|
|
|
.Sh ̾<EFBFBD><EFBFBD>
|
|
|
|
|
.Nm logb ,
|
|
|
|
|
.Nm logbf ,
|
|
|
|
|
.Nm scalb ,
|
|
|
|
|
.Nm scalbf ,
|
|
|
|
|
.Nm significand ,
|
|
|
|
|
.Nm significandf
|
2001-07-26 02:36:08 +02:00
|
|
|
|
.Nd IEEE <EFBFBD>ƥ<EFBFBD><EFBFBD>ȴؿ<EFBFBD>
|
2002-05-18 09:12:57 +02:00
|
|
|
|
.Sh <EFBFBD>饤<EFBFBD>֥<EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
.Ld 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 logb "double x"
|
|
|
|
|
.Ft float
|
|
|
|
|
.Fn logbf "float x"
|
2001-12-29 19:20:02 +01:00
|
|
|
|
.Ft double
|
1999-12-09 17:26:08 +01:00
|
|
|
|
.Fn scalb "double x" "double n"
|
2001-12-29 19:20:02 +01:00
|
|
|
|
.Ft float
|
1999-12-09 17:26:08 +01:00
|
|
|
|
.Fn scalbf "float x" "float n"
|
|
|
|
|
.Ft double
|
|
|
|
|
.Fn significand "double x"
|
|
|
|
|
.Ft float
|
|
|
|
|
.Fn significandf "float x"
|
|
|
|
|
.Sh <EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
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
|
|
|
|
.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><EFBFBD><EFBFBD>
|
|
|
|
|
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʳ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ū<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 logb x
|
2001-07-26 02:36:08 +02:00
|
|
|
|
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
1999-12-09 17:26:08 +01:00
|
|
|
|
.Fn logbf x
|
|
|
|
|
<EFBFBD>ϡ<EFBFBD>
|
|
|
|
|
.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>
|
|
|
|
|
.Fa n
|
2002-05-18 09:12:57 +02:00
|
|
|
|
<EFBFBD>ϡ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>դ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ư<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
|
|
|
|
.Fn logb \*(Pm\*(If
|
|
|
|
|
= +\*(If;
|
2001-07-26 02:36:08 +02:00
|
|
|
|
.Fn logb 0
|
1999-12-09 17:26:08 +01:00
|
|
|
|
= -\*(If
|
2001-07-26 02:36:08 +02:00
|
|
|
|
<EFBFBD>ǡ<EFBFBD>0 <20>ˤ<EFBFBD><CBA4><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>㳰<EFBFBD><E3B3B0>ȼ<EFBFBD><C8BC><EFBFBD>ޤ<EFBFBD><DEA4><EFBFBD>
|
1999-12-09 17:26:08 +01:00
|
|
|
|
.Pp
|
|
|
|
|
.Fn scalbn x n
|
2001-07-26 02:36:08 +02:00
|
|
|
|
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
1999-12-09 17:26:08 +01:00
|
|
|
|
.Fn scalbnf x 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>줿
|
1999-12-09 17:26:08 +01:00
|
|
|
|
.Fa x Ns \(**(2** Ns Fa n )
|
|
|
|
|
<EFBFBD><EFBFBD><EFBFBD>֤<EFBFBD><EFBFBD>ޤ<EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
.Pp
|
2001-12-29 19:20:02 +01:00
|
|
|
|
.Fn significand x
|
2001-07-26 02:36:08 +02:00
|
|
|
|
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
2001-12-29 19:20:02 +01:00
|
|
|
|
.Fn significandf x
|
2001-07-26 02:36:08 +02:00
|
|
|
|
<EFBFBD>ϡ<EFBFBD>1 \(<=
|
1999-12-09 17:26:08 +01:00
|
|
|
|
.Fa sig
|
2001-07-26 02:36:08 +02:00
|
|
|
|
< 2 <20><><EFBFBD>ϰϤ<CFB0>
|
2001-12-29 19:20:02 +01:00
|
|
|
|
.Fa x
|
|
|
|
|
:=
|
1999-12-09 17:26:08 +01:00
|
|
|
|
.Fa sig No \(** 2** Ns Fa n
|
2001-07-26 02:36:08 +02:00
|
|
|
|
<EFBFBD>Ȥʤ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ρ<EFBFBD>
|
|
|
|
|
.Fa sig
|
|
|
|
|
<EFBFBD><EFBFBD><EFBFBD>֤<EFBFBD><EFBFBD>ޤ<EFBFBD><EFBFBD><EFBFBD>
|
1999-12-09 17:26:08 +01:00
|
|
|
|
.Fn significand x
|
2001-07-26 02:36:08 +02:00
|
|
|
|
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
1999-12-09 17:26:08 +01:00
|
|
|
|
.Fn significandf x
|
2001-07-26 02:36:08 +02:00
|
|
|
|
<EFBFBD>ϡ<EFBFBD>
|
1999-12-09 17:26:08 +01:00
|
|
|
|
.Fa x
|
2001-07-26 02:36:08 +02:00
|
|
|
|
<EFBFBD><EFBFBD> 0, \*(Pm\*(If, <20>ޤ<EFBFBD><DEA4><EFBFBD> \*(Na <20>λ<EFBFBD><CEBB>ˤ<EFBFBD><CBA4><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ޤ<EFBFBD><DEA4><EFBFBD><EFBFBD><EFBFBD>
|
1999-12-09 17:26:08 +01:00
|
|
|
|
.Sh <EFBFBD><EFBFBD>Ϣ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
.Xr ieee 3 ,
|
|
|
|
|
.Xr math 3
|
|
|
|
|
.Sh <EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
.St -ieee754
|