Question: please do 2 and use matlab for 2 floating point number systems 1. Determine the number of significant decimal digits and the number of significant
floating point number systems 1. Determine the number of significant decimal digits and the number of significant binary digits to which each of these two numbers agree, 355/113 and T. finite difference approximation 2. (1st derivative) Let f(x) be a given function and recall the forward difference approximation of f'(o), D+f(x) = f(x+h) f(x) where h > 0 is the step size. (a) Take f(x) = sin 2, r = 7/4, h=2-" for n = 1, 2.....6. Following the example in class, plot the error versus h and make a table with the following format: column 1: h, column 2: D+ f(x), column 3: f'(x) - D+ f(x), column 4: f'(x) - D f(x))/h, column 5: (f'(x) - D+ f()/h2. You may modify the Matlab code given in class. Present at least eight decimal digits (type "format long" in Matlab to get the full 15 digits)
Step by Step Solution
There are 3 Steps involved in it
To compl... View full answer
Get step-by-step solutions from verified subject matter experts
