OSDN Git Service

Retire LDP man-pages repository
[linuxjm/LDP_man-pages.git] / draft / man3 / frexp.3
diff --git a/draft/man3/frexp.3 b/draft/man3/frexp.3
deleted file mode 100644 (file)
index 49fc4e0..0000000
+++ /dev/null
@@ -1,130 +0,0 @@
-.\" Copyright 1993 David Metcalfe (david@prism.demon.co.uk)
-.\"
-.\" %%%LICENSE_START(VERBATIM)
-.\" Permission is granted to make and distribute verbatim copies of this
-.\" manual provided the copyright notice and this permission notice are
-.\" preserved on all copies.
-.\"
-.\" Permission is granted to copy and distribute modified versions of this
-.\" manual under the conditions for verbatim copying, provided that the
-.\" entire resulting derived work is distributed under the terms of a
-.\" permission notice identical to this one.
-.\"
-.\" Since the Linux kernel and libraries are constantly changing, this
-.\" manual page may be incorrect or out-of-date.  The author(s) assume no
-.\" responsibility for errors or omissions, or for damages resulting from
-.\" the use of the information contained herein.  The author(s) may not
-.\" have taken the same level of care in the production of this manual,
-.\" which is licensed free of charge, as they might when working
-.\" professionally.
-.\"
-.\" Formatted or processed versions of this manual, if unaccompanied by
-.\" the source, must acknowledge the copyright and authors of this work.
-.\" %%%LICENSE_END
-.\"
-.\" References consulted:
-.\"     Linux libc source code
-.\"     Lewine's _POSIX Programmer's Guide_ (O'Reilly & Associates, 1991)
-.\"     386BSD man pages
-.\" Modified 1993-07-24 by Rik Faith (faith@cs.unc.edu)
-.\" Modified 2002-07-27 by Walter Harms
-.\"    (walter.harms@informatik.uni-oldenburg.de)
-.\"
-.\"*******************************************************************
-.\"
-.\" This file was generated with po4a. Translate the source file.
-.\"
-.\"*******************************************************************
-.\"
-.\" Japanese Version Copyright (c) 1997 YOSHINO Takashi
-.\"       all rights reserved.
-.\" Translated 1997-01-21, YOSHINO Takashi <yoshino@civil.jcn.nihon-u.ac.jp>
-.\" Updated 2003-10-15, Kentaro Shirakata <argrath@ub32.org>
-.\" Updated 2005-11-19, Akihiro MOTOKI <amotoki@dd.iij4u.or.jp>
-.\"
-.TH FREXP 3 2013\-08\-06 "" "Linux Programmer's Manual"
-.SH 名前
-frexp, frexpf, frexpl \- 浮動小数点実数を小数成分と整数成分に変換する
-.SH 書式
-.nf
-\fB#include <math.h>\fP
-.sp
-\fBdouble frexp(double \fP\fIx\fP\fB, int *\fP\fIexp\fP\fB);\fP
-.br
-\fBfloat frexpf(float \fP\fIx\fP\fB, int *\fP\fIexp\fP\fB);\fP
-.br
-\fBlong double frexpl(long double \fP\fIx\fP\fB, int *\fP\fIexp\fP\fB);\fP
-.fi
-.sp
-\fI\-lm\fP でリンクする。
-.sp
-.in -4n
-glibc 向けの機能検査マクロの要件 (\fBfeature_test_macros\fP(7)  参照):
-.in
-.sp
-.ad l
-\fBfrexpf\fP(), \fBfrexpl\fP():
-.RS 4
-_BSD_SOURCE || _SVID_SOURCE || _XOPEN_SOURCE\ >=\ 600 || _ISOC99_SOURCE
-|| _POSIX_C_SOURCE\ >=\ 200112L;
-.br
-or \fIcc\ \-std=c99\fP
-.RE
-.ad
-.SH 説明
-\fBfrexp\fP()  関数は浮動小数点実数 \fIx\fP を正規化小数と指数に分解し、 指数を *\fIexp\fP に格納する。
-.SH 返り値
-\fBfrexp\fP()  関数は正規化小数を返す。 引数 \fIx\fP がゼロでない場合、この正規化小数は \fIx\fP に 2
-の累乗を乗じたものであり、その絶対値は 常に 1/2 以上 1 未満、つまり [0.5,1) となる。
-
-\fIx\fP がゼロの場合、正規化小数はゼロになり *\fIexp\fP にはゼロが格納される。
-
-\fIx\fP が NaN の場合、NaN が返される。 \fI*exp\fP の値は不定である。
-
-\fIx\fP が正の無限大 (負の無限大) の場合、 正の無限大 (負の無限大) が返される。 \fI*exp\fP の値は不定である。
-.SH エラー
-エラーは発生しない。
-.SH 属性
-.SS "マルチスレッディング (pthreads(7) 参照)"
-関数 \fBfrexp\fP(), \fBfrexpf\fP(), \fBfrexpl\fP() はスレッドセーフである。
-.SH 準拠
-C99, POSIX.1\-2001.  \fIdouble\fP 版の関数は SVr4, 4.3BSD, C89 にも準拠している。
-.SH 例
-このプログラムを実行すると以下のような結果となる:
-.sp
-.nf
-.in +4n
-$\fB ./a.out 2560\fP
-frexp(2560, &e) = 0.625: 0.625 * 2^12 = 2560
-$\fB ./a.out \-4\fP
-frexp(\-4, &e) = \-0.5: \-0.5 * 2^3 = \-4
-.in
-.fi
-.SS プログラムのソース
-\&
-.nf
-#include <math.h>
-#include <float.h>
-#include <stdio.h>
-#include <stdlib.h>
-
-int
-main(int argc, char *argv[])
-{
-    double x, r;
-    int exp;
-
-    x = strtod(argv[1], NULL);
-    r = frexp(x, &exp);
-
-    printf("frexp(%g, &e) = %g: %g * %d^%d = %g\en",
-           x, r, r, FLT_RADIX, exp, x);
-    exit(EXIT_SUCCESS);
-}
-.fi
-.SH 関連項目
-\fBldexp\fP(3), \fBmodf\fP(3)
-.SH この文書について
-この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.79 の一部
-である。プロジェクトの説明とバグ報告に関する情報は
-http://www.kernel.org/doc/man\-pages/ に書かれている。