Tolerance for real number comparisons
Square root of Pi
Return true if x == y approximately.
Return true if x == y approximately.
the first value to compare
the second value to compare
Compute the beta function B(a, b) for the following two cases: (1) when a or b are integers and (2) when a or b are integers + 1/2.
Compute the beta function B(a, b) for the following two cases: (1) when a or b are integers and (2) when a or b are integers + 1/2.
the first parameter, a real number satisfying (1) or (2)
the second parameter, a real number satisfying (1) or (2)
http://mathworld.wolfram.com/BetaFunction.html
Compute trinomial coefficients: n choose (k, l), combinations of n things, (k, l) at a time, using Pascal's Tetrahedron.
Compute trinomial coefficients: n choose (k, l), combinations of n things, (k, l) at a time, using Pascal's Tetrahedron. Ex: Given n balls, counts ways in which k are chosen for group 1 and l are chosen for group 2.
the total number of items
the of items to choose
the of items to choose (requires 0 <= k + l <= n)
http://people.sju.edu/~pklingsb/bintrin.pdf
Compute binomial coefficients: n choose k, combinations of n things, k at a time, using Pascal's Triangle.
Compute binomial coefficients: n choose k, combinations of n things, k at a time, using Pascal's Triangle.
the total number of items
the of items to choose (requires k <= n)
http://www.mathsisfun.com/pascals-triangle.html
Compute n choose k (combinations of n things, k at a time).
Compute n choose k (combinations of n things, k at a time). A more efficient implementation is given below.
the total number of items
the of items to choose (requires k <= n)
Compute k! (k factorial).
Compute k! (k factorial).
the argument to the factorial function
Show the flaw by printing the error message.
Show the flaw by printing the error message.
the method where the error occurred
the error message
Compute the gamma function gamma(a) for the following two cases: http://mathworld.
Compute the gamma function gamma(a) for the following two cases: http://mathworld.wolfram.com/GammaFunction.html (1) when a is an integer and (2) when a is an integer + 1/2.
the parameter, a real number satisfying (1) or (2)
Compute Gauss's Hypergeometric function 2F1(z; a, b, c) via an approximation.
Compute Gauss's Hypergeometric function 2F1(z; a, b, c) via an approximation. @see
the variable, a real/complex number s.t. |z| < 1
the first paramater, a real/complex number
the second parameter, a real/complex number
the third parameter, a real/complex number, may not be a negative integer
Compute the incomplete beta function B(z; a, b), a generalization of the beta function (z = 1).
Compute the incomplete beta function B(z; a, b), a generalization of the beta function (z = 1).
the variable, a real/complex number s.t. 0 <= |z| <= 1
the first parameter, a real/complex number > 0
the second parameter, a real/complex number > 0
http://mathworld.wolfram.com/IncompleteBetaFunction.html
Initial part of Pascal's Tetrahedron, precomputed to speed calculations (Trinomial Coefficients)
Initial part of Pascal's Tetrahedron, precomputed to speed calculations (Trinomial Coefficients)
https://sites.google.com/site/pascalloids/pascal-s-pyramid-3-var
Initial part of Pascal's Triangle, precomputed to speed calculations (Binomial Coefficients)
Compute permutations of k items selected from n total items.
Compute permutations of k items selected from n total items.
the total number of items
the of items selected
Compute the regularized (incomplete) beta function I(z; a, b).
Compute the regularized (incomplete) beta function I(z; a, b).
the variable, a real/complex number s.t. 0 <= |z| <= 1
the first parameter, a real/complex number > 0
the second parameter, a real/complex number > 0
http://mathworld.wolfram.com/RegularizedBetaFunction.html
Compute the kth degree rising factorial of x.
Compute the kth degree rising factorial of x. When x = 1, this is the regular factorial function k!.
the number of factors in the product
the base number to start the product
This trait provides several common combinatorics functions, such as factorial permutations, combinations, gamma and beta functions.