Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Please help me with this. please follow the instruction given. Thank you Write a matlab program to determine the result for the problem below. Evaluate
Please help me with this. please follow the instruction given. Thank you
Write a matlab program to determine the result for the problem below. Evaluate e-* using two series approximation x2 e-x = 1 x++ x3 + 3! 2 and 1 e- = = 1+x+ +x+ + 3! and compare with the true value of x. Use n significant figures to determine the stopping criterion Es. Evaluate each series and compute approximate value and approximate estimate error Eq as terms are added. Programming Requirements: 1. Implement modularization 2. Two user inputs x and n 3. At least three modules which includes a main module, module for the first series and module for the second series 4. Provide a re-run (try again) program segment 5. Output must be in tabular form that shows that column for no. of terms, approximate value, and approximate estimate error. 6. Also show the comparison of the true value and approximate value after the last iteration. Sample Output: Refer to the output below. Since there are two series approximations, your output must have two tables. (the sample output only shows one) Enter x and sf : 1.3*pi, 9] True Value : 0.587785252 Error criterion : 0.000000050 Result Ea (%) Terms 1 1.000000000 100.000000000 2 0.555867802 79.898888997 0.588743370 5.584023513 4 0.587769964 0.165610123 5 0.587785404 0.002626816 6 0.587785251 0.000025926 7 0.587785252 0.000000174 8 0.587785252 0.000000001 Approximate Error : 0.000000001 is less than Error Criterion : 0.000000050 No. of Terms : True Value : 0.587785252292473 VS Approx. Value: 0.587785252292455 Try Again[y]? |Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started