996d2f02f9
Submitted by: Yuko Sasaki <yuko@veltec.co.jp>
132 lines
3.6 KiB
Groff
132 lines
3.6 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: @(#)lgamma.3 6.6 (Berkeley) 12/3/92
|
|
.\" %FreeBSD: src/lib/msun/man/lgamma.3,v 1.7.2.5 2001/12/17 10:08:36 ru Exp %
|
|
.\"
|
|
.\" $FreeBSD$
|
|
.Dd December 3, 1992
|
|
.Dt LGAMMA 3
|
|
.Os
|
|
.Sh ̾¾Î
|
|
.Nm lgamma ,
|
|
.Nm lgammaf ,
|
|
.Nm gamma ,
|
|
.Nm gammaf
|
|
.Nd ¥¬¥ó¥Þ´Ø¿ô¤ª¤è¤Ó¥¬¥ó¥Þ´Ø¿ô¤ÎÂпô·×»»
|
|
.Sh ¥é¥¤¥Ö¥é¥ê
|
|
.Lb libm
|
|
.Sh ½ñ¼°
|
|
.Fd #include <math.h>
|
|
.Ft extern int
|
|
.Fa signgam ;
|
|
.sp
|
|
.Ft double
|
|
.Fn lgamma "double x"
|
|
.Ft float
|
|
.Fn lgammaf "float x"
|
|
.Ft double
|
|
.Fn gamma "double x"
|
|
.Ft float
|
|
.Fn gammaf "float x"
|
|
.Sh ²òÀâ
|
|
.Fn lgamma x
|
|
¤ª¤è¤Ó
|
|
.Fn lgammaf x
|
|
¤Ï x ¤Î¥¬¥ó¥Þ´Ø¿ô¤Î¼«Á³Âпô¤òÊÖ¤·¤Þ¤¹¡£
|
|
.Pp
|
|
³°ÉôÊÑ¿ô
|
|
.Fa signgam
|
|
¤Ë¤Ï x ¤Î¥¬¥ó¥Þ´Ø¿ô¤ÎÉä¹æ¤¬ÊÖ¤µ¤ì¤Þ¤¹¡£
|
|
.Pp
|
|
.Fn gamma x
|
|
¤ª¤è¤Ó
|
|
.Fn gammaf x
|
|
¤Ç¤Ï
|
|
.Fa signgam
|
|
¤Ï»ÈÍѤµ¤ì¤Þ¤»¤ó¡£
|
|
.Sh Æõ»ö¹à
|
|
g := \(*G(x) ¤Î·×»»¤Ë¤ª¤¤¤Æ
|
|
.Dq Li signam\(**exp(lgamma(x))
|
|
¤Î¤è¤¦¤Êµ½Ò¤ÏÉÔŬÀڤǤ¹¡£
|
|
°Ê²¼¤Î¤è¤¦¤Ê (C ¸À¸ì) ¥×¥í¥°¥é¥à¥³¡¼¥Ç¥£¥ó¥°¤Ë¤·¤Þ¤¹¡£
|
|
.Bd -literal -offset indent
|
|
lg = lgamma(x); g = signam\(**exp(lg);
|
|
.Ed
|
|
.Pp
|
|
signgam ¤Ï¡¢
|
|
.Fn lgamma
|
|
¤¢¤ë¤¤¤Ï
|
|
.Fn lgammaf
|
|
¤Î½èÍý¤¬´°Î»¤·¤¿Ãʳ¬¤Ç¤Ê¤¤¤ÈÀµ¤·¤¤ÃͤòÆÀ¤ë¤³¤È¤¬¤Ç¤¤Þ¤»¤ó¡£
|
|
.Pp
|
|
°ú¿ô¤ÎÃÍ°è¤Ë¤Ä¤¤¤Æ¤Ï¡¢
|
|
.Fn gamma
|
|
¤ª¤è¤Ó
|
|
.Fn gammaf
|
|
¤Î¤â¤Î¤¬Í¥À褵¤ì¤Þ¤¹¡£
|
|
ÀµÃÍ°ú¿ô¤Î¾ì¹ç¤ÏÁ´¤Æ¤Î·×»»Í×ÁǤޤÇÀµ³Î¤Ë·×»»¤µ¤ì¤Þ¤¹¡£
|
|
.Fn lgamma
|
|
¤Î¥Ù¥»Ø¿ô¤Î͸ú¥µ¥¤¥º¤Ï 2 ¤Î 10 ¾è¤Þ¤Ç¤Ç¤¹¡£
|
|
.Sh Ìá¤êÃÍ
|
|
.Fn gamma ,
|
|
.Fn gammaf ,
|
|
.Fn lgamma ,
|
|
¤ª¤è¤Ó
|
|
.Fn lgammaf
|
|
¤Ï°ú¿ô¤ÎÃͤ¬Å¬Àµ¤ÊÈϰϤǤ¢¤ì¤ÐÀµ¤·¤¤·ë²Ì¤òÊÖ¤·¤Þ¤¹¡£
|
|
À©¸Â¤ò±Û¤¨¤¿Â礤ʷå¤ÎÀµÀ°¿ôÃͤäÉéÉä¹æ¤Î
|
|
À°¿ôÃͤò»ØÄꤹ¤ë¤È·å¤¢¤Õ¤ì¥¨¥é¡¼¤È¤Ê¤ê¤Þ¤¹¡£
|
|
.Tn VAX
|
|
¤Ç¤Ï¡¢Í½Ìó¸ì¤Î¥ª¥Ú¥ì¡¼¥¿¤¬ÊÖ¤µ¤ì¡¢
|
|
Éé¤ÎÂ礤ÊÈóÀ°¿ôÃͤ˴ؤ·¤Æ¤Ï
|
|
.Fn gamma
|
|
´Ø¿ô¤Ç¥¢¥ó¥À¥Õ¥í¡¼¥¨¥é¡¼¤¬È¯À¸¤·¡¢
|
|
.Va errno
|
|
¤Ë
|
|
.Er ERANGE
|
|
¤¬¥»¥Ã¥È¤µ¤ì¤Þ¤¹¡£
|
|
.Sh ´ØÏ¢¹àÌÜ
|
|
.Xr math 3
|
|
.Sh Îò»Ë
|
|
.Nm lgamma
|
|
¤Ï
|
|
.Bx 4.3
|
|
¤Ë¼ÂÁõ¤µ¤ì¤¿´Ø¿ô¤Ç¤¹¡£
|
|
.Nm gamma
|
|
¤Ï
|
|
.Bx 4.4
|
|
¤Ë¼ÂÁõ¤µ¤ì¤¿´Ø¿ô¤Ç¤¹¡£
|
|
.Fn gamma
|
|
¤Î̾¾Î¤Ï´Ø¿ô̾
|
|
.Fn lgamma
|
|
¤Î¸µ¤Ë¤Ê¤Ã¤Æ¤¤¤Þ¤¹¤¬¡¢
|
|
µì¤¤¥³¡¼¥É¤ÎÉôʬ¤Ç¤Ï¸ß´¹À¤¬¼º¤ï¤ì¤Æ¤¤¤ë¾ì¹ç¤â¤¢¤ê¤Þ¤¹¡£
|