Answered step by step
Verified Expert Solution
Question
1 Approved Answer
PLEASE SHOW HOW TO DO PART B IN MATLAB. SHOW THE CODE! 3. Consider the function 1- cos f(x) sin Notice that, for small ,
PLEASE SHOW HOW TO DO PART B IN MATLAB. SHOW THE CODE!
3. Consider the function 1- cos f(x) sin Notice that, for small , the numerator consists of a subtraction of two numbers close to each other in size, and the denominator is also a small number (a) Find the solution for-0.001 to six significant digits. Be sure to chop. your result to 6 digits at each calculation step. (b) Use MATLAB (format long) to calculate f(0.001). Consider this to be the true value Find the true relative error between cases (a) and (b) 1+cosr (c) Multiply (x) lyr Lisyes, c al al be : nr" L** ::?m)(lily yvwanrv.xjww a n DR1. T?DU"XI E tnl tkne. valIN. ??? the new f( for 0.001 to 6 significant digits. (Chop at each step in the calculation.) Find the true relative error, and compare with your results in (b). Explain your resultStep 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