4.8.3 · HinglishNumerical Methods

Machine epsilon — what it means in practice

1,660 words8 min readRead in English

4.8.3 · Maths › Numerical Methods


Machine epsilon exist KYUN karta hai?


Floating-point number KIYA hota hai?


Hum KAISE derive karte hain?

Figure — Machine epsilon — what it means in practice

Worked examples


Forecast-then-Verify

Verify: (1) . (2) ke paas; ke paas gap hai — gaps magnitude ke saath badhte hain. (3) Nahi — yeh underflow/denormals hai, ek alag limit (sabse chota normalized , sabse chota subnormal ).


Flashcards

Machine epsilon kya hai?
aur next representable float ke beech ka gap; , number system ki relative precision.
IEEE double precision ke liye ki value?
( mantissa bits).
kyun?
Mantissa mein fractional bits hain; se upar sabse chota increment last bit flip karna hai = .
aur sabse chote positive float mein fark?
Epsilon = ke paas relative precision (~); sabse chota positive float = underflow limit (sabse chota normalized ~, sabse chota subnormal ~). Alag concepts hain.
Unit roundoff kya hai?
Max relative rounding error , kyunki rounding half a gap ke andar land karti hai.
0.1+0.2 != 0.3 kyun?
0.1, 0.2, 0.3 binary mein exactly representable nahi hain; rounding order ka residue chhodti hai (observed ).
Do floats compare karne ka sahi tarika?
with , kabhi == nahi.
Catastrophic cancellation kya hai?
Do nearly-equal numbers subtract karna tiny rounding-error ko large relative error mein promote kar deta hai.
Kya literal 1.0 exactly store hota hai?
Haan — 1.0 exactly representable hai; mein error ko round karne se aata hai, store karne se nahi.
Floats ke beech gap magnitude ke saath kaise badalta hai?
size ke number ke paas gap hai — gaps magnitude ke saath badhte hain.
Single precision () ke liye ?
.

Recall Feynman: 12-saal ke bachche ko samjhao

Socho ek ruler jo number 1 ke paas sirf bahut paas-paas lines dikhata hai, lekin numbers ke bade hone ke saath lines aur door ho jaati hain. Computer sirf ek line par point kar sakta hai, kabhi do lines ke beech nahi. Machine epsilon number 1 ke bilkul baad waali do lines ke beech ka sabse chota gap hai. Agar aap computer se us gap se patli cheez mark karne kahein, toh woh nearest line par snap kar leta hai — woh tiny snapping error hi wajah hai ki thoda sa galat aata hai. Computer baavla nahi hai; uske paas bas ek sabse chota "pencil width" hai, aur epsilon wahi width hai.


Connections

Concept Map

forces

leaves residue bounded by

stores number as

flip last bit gives

defines

gives eps approx 2.2e-16

halved gives

bounds relative rounding error

contrasted with

is really about

Finite memory

Rounding real numbers

Floating-point format

Mantissa with t bits

Machine epsilon = 2^-t

Gap between 1 and next float

Double precision t=52

Unit roundoff u = eps/2

Not smallest positive number

Underflow / exponent range