Question: Programming Language: MatLab .38 n this prob ern, you are going to look into the error due to the addition of smal numbers and the
Programming Language: MatLab
.38 n this prob ern, you are going to look into the error due to the addition of smal numbers and the subtraction o verv similar numbers ou should start v the large number di erent ways to add to this number and then subtract x rom the result f the calculation is pert ct.the ina resu shou be l there are round o errors orchop in errors. you wil e want to okat not Define a small number . In this problem, you will consider the values E-0.1, 0.01, , 10-10. Your program should perform the following calculation for each value of E where R is the final result of the calculation. To compute the term in brackets, compute the value of x e, then add e to that answer to get the value of x +2, add to that answer to get x +3, and so on so that computing the term in brackets invo ves the a dition o very di erent sized numbers n other words do not compute the sun mation and then ac tto ou s ou not store the value o ever step in calculation for-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 you write it wel. Your program should make a semilogx plot the value of R as a function of E
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
