Question: Consider the following two evaluations from MATLAB command prompt. >> log (1+ 1e-16)/1e-16 ans = 0 >> log(1+1e-16)/((1+1e-16) -1) ans = NaN Which of

 Consider the following two evaluations from MATLAB command prompt. >> log(1 + 1e-16)/1e-16 ans = 0 >> log  

Consider the following two evaluations from MATLAB command prompt. >> log (1+ 1e-16)/1e-16 ans = 0 >> log(1+1e-16)/((1+1e-16) -1) ans = NaN Which of the following is TRUE? The different answers are due to truncation error. The different answers are due to mathematical error. O The different answers are due to round-off error. O The different answers are due to coding error.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

The detailed answer for the above question is provided below The screenshot presents two different M... View full answer

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 Programming Questions!