Question: Use Matlab, keep it simple An approximation for the In(1+x) can be done using the Maclaurin series: x2 x3 Y4 In(1+x) X- + + x5

Use Matlab, keep it simple
An approximation for the In(1+x) can be done using the Maclaurin series: x2 x3 Y4 In(1+x) X- + + x5 5 2 3 4 Also, we have seen in MATLAB, there is a function for In called log. Write a continuously running MATLAB program to investigate the value of In(1+x) using different methods. It prompts user to enter the value of x and then ask him to enter an option from the following: 1. To print the value of In(1+x) using the MATLAB build in function. 2. To prompt the user to entr number of series terms, n, then find and print the approximate values using the expression series. The value of n should be as large as possible to get good result. 3. Use a loop to find and print an approximated value for In(1+x) using the Maclaurin series just given. Loop should stop when the difference between the actual and approximated values become 100. 4. Exit the program
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
