Question: Problem 2 (MATLAB) One useful method to approximating large factorials is Stirlings Formula. For any positive integer , the approximated factorial is: Write a script
Problem 2 (MATLAB) One useful method to approximating large factorials is Stirlings Formula. For any positive integer , the approximated factorial is: Write a script named HW11_ login .m that calculates both the factorial and approximated factorial of all integers from 1 to 50. Create a single scatter plot that includes both the true factorial and approximation versus the integer. Include a helpful legend and title. Your script must also create a graph that plots the percent error of approximation versus the integer. Save your plots as HW11_ login _factorials.png and HW11_ login _error.png, respectively.

Problem 2 (MATLAB) One useful method to approximating large factorials is Stirling's Formula. For any positive integern, the approximated factorial is: Write a script named HW11_login.m that calculates both the factorial and approximated factorial of all integers from 1 to 50. Create a single scatter plot that includes both the true factorial and approximation versus the integer. Include a helpful legend and title. Your script must also create a graph that plots the percent error of approximation versus the integer. Save your plots as HW11_login_factorials.png and HW11_login_error.png, respectively
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
