Question: Show how to write the following expressions to avoid cancellation of nearby numbers: (x+1-1)/x, x0, sin(x) - sin(y), xy. - (b) (3 points) Consider
Show how to write the following expressions to avoid cancellation of nearby numbers: (x+1-1)/x, x0, sin(x) - sin(y), xy. - (b) (3 points) Consider the sequence n = 2 (2-n +1 1). Plot the values for x against the index n in Matlab for n = 1,..., 100. Explain what you observe. (c) (3 points) Improve the formula in (b) by using a mathematically equivalent expression which avoids the encountered numerical difficulty. Plot again for n = 1,..., 100 using this new formula.
Step by Step Solution
There are 3 Steps involved in it
1 a To avoid cancellation of nearby numbers in the expressions ... View full answer
Get step-by-step solutions from verified subject matter experts
