How to Calculate Factorials

Stirling's approximation formula helps you calculate large factorials.
••• Jupiterimages/Polka Dot/Getty Images

The factorial of an integer number “n” (abbreviated as “n!”) is the product of all integer numbers that are less or equal to “n.” For example, the factorial of 4 is 24 (the product of the four numbers from 1 to 4). Factorial is not defined for negative numbers and 0!=1. Stirling's formula – n!=[sqrt(2 x pi x n)] x (n/e)^n – allows one to approximately calculate factorials given the number n is large (50 or greater). In this equation, “sqrt” is an abbreviation for the square-root operation, “pi” is 3.1416 and “e” is 2.7183. The steps below demonstrate an algorithm of the factorial calculations, using the number 5, as well as an application of the Stirling's formula.

    Write down all integer numbers from 1 to 5, separating them with the multiplication sign “x": 1 x 2 x 3 x 4 x 5.

    Perform the multiplication of the numbers in the expression from left to right. Multiply “1” and “2” to get "2." Then multiply the product “2” and "3" to get" 6." Then multiply the product “6” and “4” to get “24,” etc. Finally you would obtain 5!= 1 x 2 x 3 x 4 x 5=120.

    Calculate the factorial of 50 using Stirling's formula. 50!= [sqrt(2 x 3.1416 x 50)] x (50/2.7183)^50=sqrt(314.16)] x (18.39)^50=3.035E64. Note that this value is rounded to the thousandth; the notation “E64” means “ten in power 64.”

Related Articles

How to Calculate Aggregate Production Function
How to Solve a Parabola
How to Find a Z Score
How to Calculate Arctan
How to Simplify Exponents
How to Figure Out the Slope of a Line
How to Calculate Moles from Molecular Weight
How to Convert Pounds Per Square Foot to PSI
How to Find Equations of Tangent Lines
What Does YX Mean on a Calculator?
How to Find the Minimum or Maximum in a Quadratic Equation
How to Calculate the Geometric Mean
How to Type a Mixed Fraction in a TI-83 Plus
How to Find the X Intercept of a Function
How to Multiply Fractions With Negative Numbers
Definition of Successor and Predecessor in Math
What Is a Factor Pair?
How to Factor Trinomials on a TI-84
How to Calculate Significant Figures
How do I Calculate the Geometric Mean on an HP 12C?

Dont Go!

We Have More Great Sciencing Articles!