34900323048_SayanSarkarECE
34900323048_SayanSarkarECE
ENGINEERING COLLEGE
Department of Electronics & Communication Engineering
CA - 1
• Examples:
• Numerical methods provide stable and controlled approaches to find solutions with desired
accuracy.
2. Approximation in Numerical Computation (Short Note)
Approximation in numerical computation refers to the process of finding an estimated solution to
a mathematical problem when an exact solution is difficult to obtain. This is done using different
numerical techniques that balance accuracy and computational efficiency.
Types of Approximations
1. Truncation Approximation:
o Occurs when infinite processes (like infinite series) are cut off after a finite number
of terms.
o Example: Approximating sinx using the Taylor series expansion and keeping only the
first few terms.
2. Round-off Approximation:
Importance of Approximation
• Helps solve real-world problems in engineering, physics, and finance where exact solutions
are not feasible.
• Allows faster computation using iterative methods like the Newton-Raphson method for
root-finding.
ex x2 x3
The difference between the actual value and the approximation is the truncation error.
Rounding Error
• This error occurs due to the finite precision of representing numbers in a computer.
Floating-Point Representation
• In floating-point representation, numbers are stored in the form: x = m × 10e where m is
the mantissa and e is the exponent.
• Example: The number 0.0000123 can be written as 1.23 × 10⁻⁵ in floating-point format.
Propagation of Errors
• When numerical errors accumulate during calculations, they can propagate and
significantly affect results.
• Example:
o Suppose we compute A = 3.14 and B = 2.71, but due to rounding errors, we use A
= 3.1 and B = 2.7.
Newton’s Interpolation:
Newton’s Interpolation is based on divided differences and provides an efficient way to compute
interpolating polynomials.
Advantages:
• It is more computationally efficient when adding new points.
Lagrange’s Interpolation:
Lagrange’s Interpolation constructs a polynomial by using Lagrange basis polynomials.
Advantages:
• Simple and straightforward to implement.
Trapezoidal Rule:
• The Trapezoidal Rule approximates the area under a curve by dividing the integral into
trapezoids instead of rectangles.
• The formula for the Trapezoidal Rule for an interval [a, b] with one subinterval is:
b b−a
[f(x0) + 2 ∑i=1
Graphical Explanation:
• This method is accurate for linear functions but introduces errors for curved functions.
Simpson’s 1/3 Rule:
• Simpson’s 1/3 Rule improves accuracy by approximating the curve using a parabolic
function instead of straight-line segments.
Graphical Explanation:
• Instead of straight lines, this method fits parabolas through consecutive points.
• It provides a higher accuracy than the Trapezoidal Rule for smooth functions.
Comparison:
MethodAccuracy Complexity Suitable for
Trapezoidal Rule
Low Simple Linear functions or rough estimates