For large values of a positive integer n, an approximation which is often used for its factorial,

Question:

For large values of a positive integer n, an approximation which is often used for its factorial, n!, is the following, known as Stirling’s formula:

image text in transcribed

Here, the symbol ∼ means that the ratio of the two sides tends to 1 as n → ∞, so that the formula can also be written in the formimage text in transcribed

Calculate the values of the quantityimage text in transcribed

for n = 20, 30, 40, 50, 60, 80,100, 120,150 and plot these points against n on a graph.
Check that even for modest values of n, this gets very close to √
2π.

Step by Step Answer:

Related Book For  book-img-for-question

Introduction To Probability Volume 2

ISBN: 9781118123331

1st Edition

Authors: Narayanaswamy Balakrishnan, Markos V. Koutras, Konstadinos G. Politis

Question Posted: