Answered step by step
Verified Expert Solution
Link Copied!

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!

image text in transcribed

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 result

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Systems An Application Oriented Approach Complete Version

Authors: Michael Kifer, Arthur Bernstein, Richard Lewis

2nd Edition

0321268458, 978-0321268457

More Books

Students also viewed these Databases questions