NT Formula Cheat
NT Formula Cheat
Definition • Relative error may not be meaningful if the true value is zero.
Errors are the differences between the true value and the approximate/computed value of a number. Example
Types of Errors
1. Inherent Errors
Present before the solution of the problem, due to assumptions or limitations of data.
2. Truncation Errors
Occur when an infinite process is approximated by a finite one (e.g., using only part of a series).
3. Round-off Errors
Occur when numbers are rounded to fit a certain number of significant digits.
Advantages
Advantages
Disadvantages
Example
Definition
• If the digit after rounding position is < 5, leave it. 1. Bisection Method
• If it's exactly 5, round up only if the digit before is odd (Banker’s rounding). A root-finding method that repeatedly bisects an interval and then selects a subinterval in which a root must lie.
It’s based on the Intermediate Value Theorem.
Advantages
If f(a)⋅f(b)<0f(a) \cdot f(b) < 0, then there exists a root c∈(a,b)c \in (a, b) such that f(c)=0f(c) = 0.
• Makes computations simpler and quicker.
Formula
• Removes insignificant digits that don't affect results much.
Midpoint:
Disadvantages
Advantages
Disadvantages
Advantages
Disadvantages
Examples
Definition
Improves on bisection by using a secant line between the endpoints of the interval instead of the midpoint.
Formula • Not guaranteed to bracket the root.
Example
Advantages
Disadvantages
Example
4. Secant Method
Definition
Like Newton-Raphson but does not require derivatives. Uses two previous approximations to generate a new one.
Formula
Advantages
Disadvantages
Formula
Advantages
Disadvantages
Definition Formula
Interpolation is the process of estimating unknown values that fall within a known range of data points.
It is used to find the value of a function for intermediate points from a given set of values.
Advantages
Advantages
• Best suited when interpolating near the beginning of the data set.
Disadvantages
Example:
Formula
Advantages
Disadvantages
Advantages
Disadvantages
Example:
Formula
Advantages
Disadvantages
Numerical Integration is the process of finding the approximate value of a definite integral when it cannot be
computed analytically or exact values of the function are known only at certain points.
A. Trapezoidal Rule
Definition
Formula
Definition
A more accurate rule using cubic polynomials. Requires that the number of intervals be a multiple of 3.
Formula
Approximates the area under a curve using parabolas. Requires an even number of intervals. • Useful when Simpson’s 1/3 Rule can't be applied due to odd number of subintervals.
Formula Disadvantages
Example:
Advantages
Disadvantages
Example
D. Gaussian Quadrature
Definition
A technique that chooses both nodes and weights to achieve the exact result for polynomials of the highest
possible degree.
Formula (for interval [-1, 1]): Disadvantages
Advantages Example:
Disadvantages
Examples
Formula
Advantages
Disadvantages
Example:
A. Euler’s Method
Definition
Formula
Advantages
C. Runge-Kutta Methods
Example:
Advantages
• Highly accurate.
Disadvantages
Formula