ramanujan ( x -- y )


Vocabulary
math.extras

Inputs
xa number


Outputs
ya number


Word description
Return the Ramanujan approximation of factorial(x).

Definition


:: ramanujan ( x -- y )
pi sqrt x e / x ^ * x 8 * 4 + x * 1 + x * 1/30 + 1/6 ^ * ;