Question: matlab assignment: please write a code and present a plot in matlab Please write a short computer code to compute the relative error of calculating
matlab assignment: please write a code and present a plot in matlab

Please write a short computer code to compute the relative error of calculating 0.9....98" for n=-2.5 versus the number of accurate places if we take up the binomial approximation up to the second order term. For example, in this case, 0.98 = 1 0.02, or we can say 2 decimal places, 0.998 = 1 -0.002, or 3 decimal places, etc. Present your results in a plot in MATLAB: for x-axis, you can plot the decimal places of 2, 3, 4, ...., for the y-axis, you can plot relative error in log-scale. Please write a short computer code to compute the relative error of calculating 0.9....98" for n=-2.5 versus the number of accurate places if we take up the binomial approximation up to the second order term. For example, in this case, 0.98 = 1 0.02, or we can say 2 decimal places, 0.998 = 1 -0.002, or 3 decimal places, etc. Present your results in a plot in MATLAB: for x-axis, you can plot the decimal places of 2, 3, 4, ...., for the y-axis, you can plot relative error in log-scale
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
