|
static | gcd ($a, $b) |
| Compute greates common denominator, using the Euclidean algorithm. More...
|
|
static | logGamma ($a) |
| Compute log(Gamma($a)) where $a is a positive real number. More...
|
|
static | Factorial ($num) |
| Compute factorial n! for an integer $n using iteration. More...
|
|
static | SemiFactorial ($num) |
| Compute semi-factorial n!! for an integer $n using iteration. More...
|
|
static MathParser\Extensions\Math::Factorial |
( |
|
$num | ) |
|
|
static |
Compute factorial n! for an integer $n using iteration.
- Parameters
-
- Return values
-
static MathParser\Extensions\Math::gcd |
( |
|
$a, |
|
|
|
$b |
|
) |
| |
|
static |
Compute greates common denominator, using the Euclidean algorithm.
Compute and return gcd($a, $b)
- Parameters
-
- Return values
-
static MathParser\Extensions\Math::lanczosApproximation |
( |
|
$x | ) |
|
|
staticprivate |
Compute log(Gamma($x)) using Lanczos approximation.
- Parameters
-
- Return values
-
static MathParser\Extensions\Math::logGamma |
( |
|
$a | ) |
|
|
static |
Compute log(Gamma($a)) where $a is a positive real number.
For large values of $a ($a > 171), use Stirling asympotic expansion, otherwise use the Lanczos approximation
- Parameters
-
- Exceptions
-
InvalidArgumentException | if $a < 0 |
- Return values
-
static MathParser\Extensions\Math::logStirlingApproximation |
( |
|
$x | ) |
|
|
staticprivate |
Compute log(Gamma($x)) using Stirling asympotic expansion.
- Parameters
-
- Return values
-
static MathParser\Extensions\Math::SemiFactorial |
( |
|
$num | ) |
|
|
static |
Compute semi-factorial n!! for an integer $n using iteration.
- Parameters
-
- Return values
-
The documentation for this class was generated from the following file:
- src/MathParser/Extensions/Math.php