6a00dc5ed2
Submitted by: Yuko Sasaki <yuko@veltec.co.jp>
129 lines
3.3 KiB
Groff
129 lines
3.3 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
|
||
.\" %FreeBSD: src/lib/msun/man/sqrt.3,v 1.6.2.3 2001/12/17 10:08:36 ru Exp %
|
||
.\"
|
||
.\" $FreeBSD$
|
||
.Dd May 6, 1991
|
||
.Dt SQRT 3
|
||
.Os
|
||
.Sh ̾¾Î
|
||
.Nm cbrt ,
|
||
.Nm cbrtf ,
|
||
.Nm sqrt ,
|
||
.Nm sqrtf
|
||
.Nd ΩÊýº¬¤ª¤è¤ÓÊ¿Êýº¬´Ø¿ô
|
||
.Sh ¥é¥¤¥Ö¥é¥ê
|
||
.Lb libm
|
||
.Sh ½ñ¼°
|
||
.In 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
|
||
¤ò
|
||
.Er EDOM
|
||
¤ËÀßÄꤷ¡¢Í½Ì󤵤줿¥ª¥Ú¥é¥ó¥É¥Õ¥©¥ë¥È¤¬À¸À®¤µ¤ì¤Þ¤¹¡£
|
||
.Sh ¥¨¥é¡¼ (´Ý¤á¤Ê¤É¤Ë¤è¤ë¤â¤Î)
|
||
.Fn cbrt
|
||
´Ø¿ô¤Ï¡¢0.7
|
||
.Em ulp
|
||
¤ÎÈÏ°ÏÆâ¤ÇÀµ³Î¤Ç¤¹¡£
|
||
.Pp
|
||
.Tn VAX
|
||
¾å¤Î
|
||
.Fn sqrt
|
||
´Ø¿ô¤Ï¡¢0.501
|
||
.Em ulp
|
||
¤ÎÈÏ°ÏÆâ¤ÇÀµ³Î¤Ç¤¹¡£
|
||
.Tn IEEE
|
||
754 ¤ËŬ¹ç¤·¤Æ¤¤¤ë¥Þ¥·¥ó¾å¤Î sqrt ¤Ï¡¢¼Â»ÜÃæ¤Î´Ý¤áÊýË¡¤Ë½¾¤Ã¤Æ¡¢
|
||
Àµ³Î¤Ë´Ý¤á¤é¤ì¤Þ¤¹¡£
|
||
¤½¤Î¸íº¹¤Ï¡¢¥Ç¥Õ¥©¥ë¥È¤ÎÊýË¡ (»Í¼Î¸ÞÆþ) ¤Ç¤Ï¡¢
|
||
.Em ulp
|
||
¤ÎȾʬ̤Ëþ¤Ç¤¹¡£
|
||
.Em ulp
|
||
¤È¤Ï¡¢ºÇ¸å¤Ë·«¤ê¾å¤²¤é¤ì¤¿°ÌÃÖ¤Î°Ì (
|
||
.Em U Ns nit
|
||
in the
|
||
.Em L Ns ast
|
||
.Em P Ns lacce
|
||
) ¤Ç¤¹¡£
|
||
.Sh ´ØÏ¢¹àÌÜ
|
||
.Xr math 3
|
||
.Sh µ¬³Ê
|
||
.Fn sqrt
|
||
´Ø¿ô¤Ï¡¢
|
||
.St -isoC
|
||
¤ËŬ¹ç¤·¤Æ¤¤¤Þ¤¹¡£
|
||
.Sh Îò»Ë
|
||
.Fn cbrt
|
||
´Ø¿ô¤Ï¡¢
|
||
.Bx 4.3
|
||
¤ÇÅо줷¤Þ¤·¤¿¡£
|