Numericals Reviewer
Numericals Reviewer
Numericals Reviewer
Mga wala
-Simple Fixed
-Graphical method ng Root Finding
-Gauss Jordan
SIGNIFICANT FIGURES
• Non-zero digits are ALWAYS significant
13.55 has four significant figures (1, 3, 5, 5).
• any zero contained between two non-zero numbers is significant
1.05 has three significant figures (1, 0, 5); the zero is enclosed by non-
zero digits and should be counted.
• leading zeroes are never significant
0.0501 - three significant figures (5, 0, 1); the leading zeroes are
ignored, the third zero is enclosed by two non-zero digits and is
therefore significant.
• final or trailing zeroes are significant only after a decimal point
0.00500 - three significant figures (5, 0, 0); the leading zeroes do
not count (as per Rule 3) but the two trailing zeroes are considered to
be significant as they come after a decimal point. So in this example
the three significant figures are the 5 and the final two zeroes.
500 - one significant figure (5); there is no decimal point and
therefore the two zeroes do not add anything to the "precision" of the
number. However, if a decimal point is present then these zeroes will
become significant, as per example 5).
Error Definition
• truncation errors, which result when approximations are used to represent exact
mathematical procedures
• round-off errors, which result when numbers having limited significant figures are used to
represent exact numbers.
𝑋𝑛𝑒𝑤−𝑋𝑜𝑙𝑑
𝐸𝑎 = 𝑥100% (always Absolute)
𝑋𝑛𝑒𝑤
1
Area of Triangle: 𝐴 = (𝑏)(ℎ)
2
-If a function changes sign over an interval, the function value at the midpoint is evaluated. The
location of the root is then determined as lying at the midpoint of the subinterval within which
the sign change occurs. The process is repeated to obtain refined estimates.
Example:
Solve: 𝑓(𝑥) = 𝑥 2 − 3.
Given the interval [1,2]
Iteration Xl Xu F(Xl) F(Xu) Xm F(Xm)
(A) (B) (C) (D) (E) (F)
1 1 2 -2 1 1.5 -0.75
2 1.5 2 -0.75 1 1.75 0.062
3 1.5 1.75 -0.75 0.062 1.625 -0.359
4 1.625 1.75 -0.359 0.062 1.6875 -0.1523
Calculator Method
𝐴+𝐵
𝐶 = 𝐴2 − 3: 𝐷 = 𝐵2 − 3: 𝐸 = : 𝐹 = 𝐸2 − 3
2
SAMPLE PROBLEM
SOLVE: f(x) =𝑥 2 − 3. Given the interval [1,2]
FALSE POSTION METHOD
-if f(xl) is much closer to zero than f(xu), it is likely that the root is closer to xl than to xu
-An alternative method that exploits this graphical insight is to join f(xl) and f(xu) by a straight
line.
-The intersection of this line with the x axis represents an improved estimate of the root. The
fact that the replacement of the curve by a straight linengives a “false position” of the root is the
origin of the name, method of false position, or in Latin, regula falsi.
-It is also called the linear interpolation method.
Formula
𝑓(𝑥𝑙)
𝑋𝑛 = 𝑋𝑙 + (𝑋𝑢 − 𝑋𝑙)((𝑓(𝑥𝑙)−𝐹(𝑥𝑢)))
Example Problem
Calculator Method
𝑐
𝐶 = 𝐴3 − 𝐴 − 1: 𝐷 = 𝐵3 − 𝐵 − 1: 𝐸 = 𝐴 + (𝐵 − 𝐴) ( ) : 𝐹 = 𝐸3 − 𝐸 − 1
𝐶−𝐷
OPEN METHOD
SIMPLE FIXED POINT ITERATION (HINDI KASAMA SA EXAM)
-also called, one-point iteration or successive substitution)
by rearranging the function f(x) = 0 so that x is on the left-
hand side of the equation:
x = g(x)
Example problem.
Use simple fixed-point iteration to locate the root of
e -x- x. = 0
𝑇𝑣 − 𝐴𝑝𝑝𝑟𝑜𝑥
𝐸𝑡 = (100)
𝑇𝑣
NEWTHON RHAPSON METHOD
Example
3x+2y=18
-x+2y=2
Solution
[3x+2y=18 ]-1 (X=4,Y=3)
[-x+2y=2 ]3
NAIVE GAUSS ELIMINATION
- Forward Elimination of Unknowns. The first phase is designed to reduce the set of equations to
an upper triangular system (Fig. 9.3). The initial step will be to eliminate the first unknown, x1,
from the second through the nth equations.
Suppose that for conciseness we limit ourselves to a 3 X 3 set of equations. If the diagonal
elements are all nonzero, the first equation can be solved for X 1, the second for X2, and the third
for X3; to yield
𝑏1 − 𝑎12𝑥2 − 𝑎13𝑥3
𝑋1 =
𝑎11
Solve the linear system by Jacobe and Gauss-Seidel Method
Calculator Method: Jacobe
2𝐵 − 3𝐶 − 1 3𝐴 − 𝐶 + 2 −2𝐴 + 𝐵 + 3
𝐴: 𝐵: 𝐶: 𝐷 = :𝐸 = :𝐹 =
5 4 −7