1 2 /* 3 * ==================================================== 4 * Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved. 5 * 6 * Developed at SunSoft, a Sun Microsystems, Inc. business. 7 * Permission to use, copy, modify, and distribute this 8 * software is freely granted, provided that this notice 9 * is preserved. 10 * ==================================================== 11 * 12 */ 13 14 #include <sys/cdefs.h> 15 /* gamma(x) 16 * Return the logarithm of the Gamma function of x. 17 * 18 * Method: call gamma_r 19 */ 20 21 #include "math.h" 22 #include "math_private.h" 23 24 extern int signgam; 25 26 double 27 gamma(double x) 28 { 29 return gamma_r(x,&signgam); 30 } 31