Question: I need the matlab script (Gilat, Chapter 1, problem 39) Gosper's approximation for factorials is given by n! = |(2n +3va n*e** n! = (2n
I need the matlab script

(Gilat, Chapter 1, problem 39) Gosper's approximation for factorials is given by n! = |(2n +3va n*e** n! = (2n - n"e-n Use this formula to calculate approximate values of the following numbers and their percent error from the exact value. Calculate the exact value using the Matlab built-in function, factorial(). If you are running the checker, use the following variable naming convention: for the approximate values, fact approx a, fact approx b, etc., and for the percent error values, pct_err_3a, pct_err_3b, etc. a. 3! b. 10! C. 19 NOTE: Recall that the definition of percent error: pctError = (approximate val - exact val/exact val * 100
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
