Processing math: 100%
Skip to main content
Library homepage
 

Text Color

Text Size

 

Margin Size

 

Font Type

Enable Dyslexic Font
Mathematics LibreTexts

1.10: Machine Epsilon

( \newcommand{\kernel}{\mathrm{null}\,}\)

Machine epsilon (ϵmach) is the distance between 1 and the next largest number. If 0δ<ϵmach/2, then 1+δ=1 in computer math. Also since

x+y=x(1+y/x)

if 0y/x<ϵmach/2, then x+y=x in computer math.

Find ϵmach 

The number 1 in the IEEE format is written as

1=20×1.0000,

with 230 s following the binary point. The number just larger than 1 has a 1 in the 23 rd position after the decimal point. Therefore,

ϵmach =2231.192×107

What is the distance between 1 and the number just smaller than 1? Here, the number just smaller than one can be written as

21×1.1111=21(1+(1223))=1224

Therefore, this distance is 224=ϵmach/2.

The spacing between numbers is uniform between powers of 2, with logarithmic spacing of the powers of 2 . That is, the spacing of numbers between 1 and 2 is 223, between 2 and 4 is 222, between 4 and 8 is 221, etc. This spacing changes for denormal numbers, where the spacing is uniform all the way down to zero.

Find the machine number just greater than 5

A rough estimate would be 5(1+ϵmach )=5+5ϵmach , but this is not exact. The exact answer can be found by writing

5=22(1+14)

so that the next largest number is

22(1+14+223)=5+221=5+4ϵmach 


This page titled 1.10: Machine Epsilon is shared under a CC BY 3.0 license and was authored, remixed, and/or curated by Jeffrey R. Chasnov via source content that was edited to the style and standards of the LibreTexts platform.

Support Center

How can we help?