Presentation is loading. Please wait.

Presentation is loading. Please wait.

Machine epsilon eps returns the distance from 1.0 to the next largest floating point number. When eps is machine epsilon, the logic 1+eps>1 is TRUE.

Similar presentations


Presentation on theme: "Machine epsilon eps returns the distance from 1.0 to the next largest floating point number. When eps is machine epsilon, the logic 1+eps>1 is TRUE."— Presentation transcript:

1 Machine epsilon eps returns the distance from 1.0 to the next largest floating point number. When eps is machine epsilon, the logic 1+eps>1 is TRUE

2 Conversion binary data to decimal data
Binary  Decimal form Binary  Decimal form

3 If computer cannot distinguish between EPS+1 and 1, the value EPS is smaller than the machine epsilon.

4 >>format long e >> eps ans = e-016 >>1+eps>1 1 >> 1+eps<1 >> (1+eps/2)>1

5 e = 0; EPS = 1.0; while (1+EPS)>1 EPS = EPS/2 e = e+1 end machineEPS = EPS*2


Download ppt "Machine epsilon eps returns the distance from 1.0 to the next largest floating point number. When eps is machine epsilon, the logic 1+eps>1 is TRUE."

Similar presentations


Ads by Google