|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.gwoptics.mathutils.mathUtils
public final class mathUtils
Mathutils is a class that provides a set of utility functions for mathematical operations. History 0.3.5 Added lookup tables for factorial and binomial functions, added gamma function as well.
Constructor Summary | |
---|---|
mathUtils()
|
Method Summary | |
---|---|
static long |
binomial(int n,
int k)
This function computes the binomial coefficient b(n,k). |
static long |
factorial(long n)
This function computes the factorial of an long integer |
static java.lang.Double |
hermite(int n,
double x)
This function computes the Hermite polynomial H_n(x). |
static java.lang.Double |
laguerre(int p,
int l,
double x)
Function to compute the associated Laguerre Polynomial L_p^l(x). |
static double |
logFactorial(int n)
This function returns the logarithmic factorial log(n!). |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public mathUtils()
Method Detail |
---|
public static long factorial(long n)
n
- long integer
public static double logFactorial(int n)
n
- input argument
public static long binomial(int n, int k)
n
- input argument (integer)k
- input argument (integer)
public static java.lang.Double hermite(int n, double x)
n
- order of the polynomial (integer)x
- argument (real number)
public static java.lang.Double laguerre(int p, int l, double x)
p
- radial mode indexl
- azimuthal mode indexx
- argument
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |