Java Gamma gamma(int alpha)

Here you can find the source of gamma(int alpha)

Description

gamma

License

Open Source License

Declaration

public static double gamma(int alpha) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {
    public static double gamma(int alpha) {
        return factorial(alpha - 1);
    }/* w  w  w. ja  v a 2 s.c om*/

    public static double factorial(int val) {
        double result = 1.0;
        for (int i = 2; i <= val; i++) {
            result *= i;
        }
        return result;
    }
}

Related

  1. gamma(double x)
  2. gamma(double x)
  3. gamma(double x)
  4. gamma(double x)
  5. Gamma(double z)
  6. gamma(int rgb)
  7. gammaCdf(double a, double x)
  8. gammaCdf(double a, double x)
  9. gammaCorrection(final float gamma, final float x)