Question: Define an anonymous function approx _ factorial which will calculate an approximate value of n ! using the first three terms of the Stirling series:
Define an anonymous function approxfactorial which will calculate an approximate
value of n using the first three terms of the Stirling series:
n n n
e n
n
n
The function should be able to take vector input, eg
approxfactorial:
ans
Calculate the relative error of the approximations for n
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
