Here you can find the source of gammaFunction(double in)
public static double gammaFunction(double in)
//package com.java2s; //License from project: Open Source License public class Main { /**/* w w w. j av a 2 s .co m*/ * Returns gamma value for a double in. */ public static double gammaFunction(double in) { if (in == 1.0) { return 1.0; } if (in == 0.5) { return Math.sqrt(Math.PI); } return (in - 1) * gammaFunction(in - 1); } }