Question: Here, we will look at numerical errors that occur due to the addition of small numbers and the subtraction of similar numbers. Start with x
Here, we will look at numerical errors that occur due to the addition of small numbers and the subtraction
of similar numbers. Start with x and calculate R according to
R
x
j
x
for the values of To compute the term in brackets, first compute x and then
add again to yield x until you reach the final addition in the sum. Note: Do not attempt to store all
intermediate values!
a Analytically, what should the value of R be in each case?
b Implement this in Julia and plot R as a function of with the xaxis on a logarithmic scale.
c What happens as decreases? W
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
