Question: please explain each step. Use matlab 1.38 In this problem, you are going to look into the error due to the addition of small numbers

 please explain each step. Use matlab 1.38 In this problem, you

are going to look into the error due to the addition of

please explain each step. Use matlab

1.38 In this problem, you are going to look into the error due to the addition of small numbers and the subtraction of very similar numbers. You should start with the large number 1010. We want to look at different ways to add 1 to this number and then subtract x from the result. If the calculation is perfect, the final result should be 1. If there are round-off errors or chopping errors, you will not get 1. Define a small number . In this problem, you wil consider the values 0.1, 0.0.. 10-10, Your program should perform the following calculation for each value of where R is the final result of the calculation. To compute the term in brackets, compute the value of s+ then aded e to that answer to get the value of x +2, add e to that answer to get r+3e, and so on so that computing the term in brackets involves the addition of very different sized numbers. In other words, do not compute the summation and then add it to x. You should not store the value of every step in the calculation-fore = 10-10 this would be a huge memory cost and your program would take a very long time to run. This entire program should execute in less than a minute on a reasonable computer if

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!