Q1. Attempt all questions. The marks for each question are indicated against it.
- (a)) Explain round-off error and truncation error, with one example of each. (320 words)
- (b)) The series for e^x can be written as: e^x = 1 + x + x^2/2! + x^3/3! + ... Calculate the truncation error when the first four terms of the series are used to evaluate e^1.5 (320 words)
- (c)) Explain why a polynomial is a useful choice for an interpolating function. (160 words)
- Round-off error: Due to finite machine precision in number representation.
- Truncation error: Arises from approximating infinite mathematical processes with finite ones.
- e^x series: Truncation error is True Value minus Approximate Sum.
- Polynomials for interpolation: Easy to evaluate, differentiate, and integrate computationally.
Answer: In computational physics, understanding the sources and nature of errors is fundamental to ensuring the accuracy and reliability of numerical solutions. Two primary categories of errors are round-off error and truncation error, arising from the finite precision of computer arithmetic and the approximation of infinite mathematical processes, respectively. Furthermore, effective numerical methods often rely on choosing appropriate functions for tasks like interpolation, where polynomials frequentl...