Do not begin a line with single quote character. Submitted by: Kazuo Horikawa <k-horik@yk.rim.or.jp>
133 lines
3.2 KiB
Groff
133 lines
3.2 KiB
Groff
.\" 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: @(#)sqrt.3 6.4 (Berkeley) 5/6/91
|
|
.\" %Id: sqrt.3,v 1.5 1997/02/22 15:09:42 peter Exp %
|
|
.\"
|
|
.Dd May 6, 1991
|
|
.Dt SQRT 3
|
|
.Os
|
|
.Sh ̾¾Î
|
|
.Nm cbrt ,
|
|
.Nm cbrtf ,
|
|
.Nm sqrt ,
|
|
.Nm sqrtf
|
|
.Nd ΩÊýº¬´Ø¿ô¤ÈÊ¿Êýº¬´Ø¿ô
|
|
.Sh ½ñ¼°
|
|
.Fd #include <math.h>
|
|
.Ft double
|
|
.Fn cbrt "double x"
|
|
.Ft float
|
|
.Fn cbrtf "float x"
|
|
.Ft double
|
|
.Fn sqrt "double x"
|
|
.Ft float
|
|
.Fn sqrtf "float x"
|
|
.Sh ²òÀâ
|
|
.Fn cbrt
|
|
´Ø¿ô¤È
|
|
.Fn cbrtf
|
|
´Ø¿ô¤Ï
|
|
.Ar x
|
|
¤ÎΩÊýº¬¤ò·×»»¤·¤Þ¤¹¡£
|
|
.Pp
|
|
.Fn sqrt
|
|
´Ø¿ô¤È
|
|
.Fn sqrtf
|
|
´Ø¿ô¤Ï¡¢
|
|
.Ar x
|
|
¤ÎÉé¤Ç¤Ê¤¤Ê¿Êýº¬¤ò·×»»¤·¤Þ¤¹¡£
|
|
.Sh Ìá¤êÃÍ
|
|
.Fn cbrt
|
|
´Ø¿ô¤È
|
|
.Fn cbrtf
|
|
´Ø¿ô¤Ï¡¢Í׵ᤵ¤ì¤¿Î©Êýº¬¤òÊÖ¤·¤Þ¤¹¡£
|
|
.Fn sqrt
|
|
´Ø¿ô¤È
|
|
.Fn sqrtf
|
|
´Ø¿ô¤Ï¡¢¥¨¥é¡¼¤¬È¯À¸¤·¤¿¾ì¹ç¤ò½ü¤¤¤Æ¡¢Í׵ᤵ¤ì¤¿Ê¿Êýº¬¤òÊÖ¤·¤Þ¤¹¡£
|
|
.Tn VAX
|
|
¤Þ¤¿¤Ï
|
|
.Tn Tahoe
|
|
¥×¥í¥»¥Ã¥µ¤Ï¡¢Éé¤Î
|
|
.Fa x
|
|
¤Î
|
|
.Fn sqrt
|
|
¤ò¼è¤í¤¦¤È¤¹¤ë¤È¥¨¥é¡¼¤¬È¯À¸¤·¤Þ¤¹¡£¤³¤Î¾ì¹ç¡¢
|
|
¥°¥í¡¼¥Ð¥ëÊÑ¿ô
|
|
.Va errno
|
|
¤¬
|
|
.Dv EDOM
|
|
¤ËÀßÄꤵ¤ì¡¢Í½È÷¤Î¥ª¥Ú¥é¥ó¥É¾ã³²¤¬À¸À®¤µ¤ì¤Þ¤¹¡£
|
|
.Sh ¥¨¥é¡¼ (ÀÚ¤ê¼Î¤Æ¤Ê¤É¤Ë¤è¤ë¤â¤Î)
|
|
.Fn cbrt
|
|
´Ø¿ô¤Ï¡¢
|
|
0.7
|
|
.Em ulp
|
|
¤Þ¤ÇÀµ³Î¤Ç¤¹¡£
|
|
.Pp
|
|
.Tn VAX
|
|
¾å¤Î
|
|
.Fn sqrt
|
|
´Ø¿ô¤Ï
|
|
0.501
|
|
.Em ulp
|
|
Æâ¤Þ¤ÇÀµ³Î¤Ç¤¹¡£
|
|
.Tn IEEE
|
|
754 ¤Ë½àµò¤¹¤ë¥Þ¥·¥ó¾å¤Î
|
|
.\" .Fn sqrt
|
|
sqrt ¤Ï¡¢¼Â»ÜÃæ¤Î´Ý¤á¥â¡¼¥É¤Ë½¾¤Ã¤ÆÀµ³Î¤Ë´Ý¤á¤é¤ì¤Þ¤¹¡£¥¨¥é¡¼
|
|
¤Ï¡¢¥Ç¥Õ¥©¥ë¥È¥â¡¼¥É(»Í¼Î¸ÞÆþ)¤Ç
|
|
.Em ulp
|
|
¤ÎȾʬ̤Ëþ¤Ç¤¹¡£
|
|
.Em ulp
|
|
¤Ï¡¢¼Â¹Ô¤µ¤ì¤¿
|
|
ºÇ¸å¤Î¾ì½ê¤Îñ°Ì
|
|
(
|
|
.Em U Ns nit
|
|
in the
|
|
.Em L Ns ast
|
|
.Em P Ns lace
|
|
)
|
|
¤Ç¤¹¡£
|
|
.Sh ´ØÏ¢¹àÌÜ
|
|
.Xr math 3
|
|
.Pp
|
|
.Sh µ¬³Ê
|
|
.Nm sqrt
|
|
´Ø¿ô¤Ï
|
|
.St -ansiC
|
|
¤Ë½àµò¤·¤Æ¤¤¤Þ¤¹¡£
|
|
.Sh Îò»Ë
|
|
.Fn cbrt
|
|
´Ø¿ô¤Ï
|
|
.Bx 4.3
|
|
¤Ç¸½¤ì¤Þ¤·¤¿¡£
|