Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Problem 3) 1-COS X Consider the function f(x) = sin x a) Use the decimal format with six significant digits (apply rounding at each step)
Problem 3) 1-COS X Consider the function f(x) = sin x a) Use the decimal format with six significant digits (apply rounding at each step) to calculate (using a calculator) f(x) for x = 0.007. [Hint: significant digits of a number are the written digits that are meaningful. For example: 12.345 has 5 significant digits. The same number is written as 12.35 with 4 significant digits] b) Use MATLAB (using format long) to calculate the value of f(x). Consider this to be the true value, and calculate the true relative error due to rounding in the value of f(x) that was obtained in part (a). c) Obtain a form of f(x) that is less prone to round off errors and explain how you obtained the new form. With the new form, use the decimal format with six significant digits (apply rounding at each step) to calculate (using a calculator) f(x) for x = 0.007. Compare the value with the values in parts (a) and (b)
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