Description Usage Arguments Value References Examples
Ramanujan's formula is another factorial approximation method known for its accuracy in comparison to other factorial approximation approaches including Stirling's and Gosper's approximations. Ramanujan's formula is defined as:
n! \approx √{π} ≤ft(\frac{n}{e}\right)^n √[6]{8n^3 + 4n^2 + n + \frac{1}{30}}
1 | ramanujan(n)
|
n |
integer to approximate factorial |
the approximated factorial, n!, as per Ramanujan's approximation.
Mortici, Cristinel. On Gosper's Formula for the Gamma Function. Valahia University of Targoviste, Department of Mathematics. Retrieved from http://files.ele-math.com/articles/jmi-05-53.pdf
1 2 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.