Jab machine f(x) store karti hai toh actually f~(x)=f(x)(1+δ) store karti hai jahan ∣δ∣≤εmach.
Forward difference ke liye, numerator f(x+h)−f(x) mein absolute error ∼εmach∣f(x)∣ hoti hai. h se divide karne par:
ER≈hεmach∣f(x)∣
h se divide kyun? Numerator mein error roughly fixed hoti hai (order εmach∣f∣), lekin hum tiny h se divide karte hain, isliye h→0 ke saath relative damage badh jaata 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?
O(h), equal to −2hf′′(ξ).
Central-difference truncation error ka order?
O(h2), equal to −6h2f′′′(ξ).
Central difference forward se better kyun hai?
Symmetric subtraction f′′ term ko cancel kar deti hai, O(h2) reh jaata hai.
Forward difference mein round-off error h ke saath kaise scale karti hai?
≈εmach∣f∣/h, h→0 ke saath badh jaati hai.
Forward difference ke liye optimal h?
hopt=2εmach∣f∣/∣f′′∣∼εmach≈10−8 doubles ke liye.
IEEE double ke liye machine epsilon kya hai?
≈2.22×10−16.
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.