4.8.1 · HinglishNumerical Methods

Sources of error — truncation error, round-off error

1,400 words6 min readRead in English

4.8.1 · Maths › Numerical Methods


1. The two error sources


2. Derive truncation error from scratch (forward difference)

Humein chahiye. Taylor's theorem se shuru karte hain (yeh ek exact tool hai):

Yeh step kyun? Taylor expansion exact hai (remainder ke saath), isliye jo bhi error milegi woh honest hai, assumed nahi.

ke liye solve karo:

Yeh step kyun? Rearrange karne se finite-difference formula isolate hota hai aur precisely woh discarded tail dikhayi deti hai.

kyun aur kyun nahi? Taylor's remainder form leftover ko kisi unknown point par rakhta hai — exact, koi infinite sum nahi.


3. Quantify round-off error

Jab machine store karti hai toh actually store karti hai jahan .

Forward difference ke liye, numerator mein absolute error hoti hai. se divide karne par:

se divide kyun? Numerator mein error roughly fixed hoti hai (order ), lekin hum tiny se divide karte hain, isliye ke saath relative damage badh jaata hai.

Figure — Sources of error — truncation error, round-off error

4. Worked numerical example


5. Common mistakes


6. Active recall flashcards

Truncation error kya hai?
Error jo exact operation ko approximate/finite operation se replace karne se hoti hai (e.g. Taylor series kaat dena); infinite precision ke saath bhi exist karti hai.
Round-off error kya hai?
Error jo numbers ko finitely many digits (finite floating-point precision) ke saath store karne se hoti hai.
Forward-difference truncation error ka order?
, equal to .
Central-difference truncation error ka order?
, equal to .
Central difference forward se better kyun hai?
Symmetric subtraction term ko cancel kar deti hai, reh jaata hai.
Forward difference mein round-off error ke saath kaise scale karti hai?
, ke saath badh jaati hai.
Forward difference ke liye optimal ?
doubles ke liye.
IEEE double ke liye machine epsilon kya hai?
.
Catastrophic cancellation kya hai?
Do almost equal numbers subtract karne par significant digits ka loss.
Dono errors mein fark batane ka test?
Kya error perfect-precision calculator par vanish hogi? Haan → truncation, Nahi → round-off.

Recall Feynman: explain to a 12-year-old

Socho tum ek curved pahaadi ki steepness measure kar rahe ho. Tum ek kadam aage chalte ho aur gained height ko step length se divide karte ho. Agar tumhara kadam bahut bada hai, toh tum curve ki wiggle miss kar lete ho — yeh hai truncation error (tumhara "math shortcut" bahut rough tha). Agar tum bahut chhota kadam lete ho, toh donon heights almost same hain, aur tumhara ruler sirf itne hi digits read kar sakta hai — tiny difference rounding mein kho jaata hai — yeh hai round-off error. Isliye ek medium kadam best answer deta hai: na bahut bada, na bahut chhota.

Connections

Concept Map

corrupted by

corrupted by

derives

derives

has

smaller

bounds

shrinks as h to 0

amplifies

grows as h to 0

determines

Numerical computation

Truncation error

Round-off error

Taylor theorem

Forward difference O h

Central difference O h2

Machine epsilon

Subtract near-equal numbers

Error trade-off

Optimal step size h