Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Compute an approximation to a factorial with Stirling's formula
ResourceFunction["StirlingsFormula"][n] computes an approximation to n! with Stirling’s formula. |
Compute an approximation for 5!:
| In[1]:= |
| Out[1]= |
| In[2]:= | ![]() |
| Out[2]= |
Compute the absolute error by comparing to 5!:
| In[3]:= | ![]() |
| Out[3]= |
Compute the relative error:
| In[4]:= | ![]() |
| Out[4]= |
Compute the relative error for 2018!:
| In[5]:= |
| Out[5]= |
This work is licensed under a Creative Commons Attribution 4.0 International License