 | BigProductMultiplyFactorial Method |
Multiplies the
BigProduct's value by
n factorial raised to
pow.
Namespace:
NumberStone
Assembly:
WhetStone (in WhetStone.dll) Version: 1.0.4.0 (1.0.0.0)
Syntaxpublic void MultiplyFactorial(
int n,
int pow = 1
)
Parameters
- n
- Type: SystemInt32
The inverse factorial of the root of the multiplicand. - pow (Optional)
- Type: SystemInt32
The power of the multiplicand.
RemarksThis uses Legendre's formula for divisibility of factorials.
For sufficiently small n (under approximately 20,000, see Primes(Int32)), running time is O(log(n)^2)
See Also