Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 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 ifStep 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