Numerical Chap 1
Numerical Chap 1
Methods
Meng 2052
By:- Million A.
2014
• Molecular Dynamics
• Particle Physics
• Earthquake simulations
• Formulated as F = m.a
F = net force acting on the body
m = mass of the object (kg)
a = its acceleration (m/s2)
t (sec.) V (m/s)
0 0
2 16.40
4 27.77
8 41.10
10 44.87
12 47.49
∞ 53.39
v(ti 1 ) v(ti ) c
g v(ti )
ti 1 ti m
This equation can be rearranged to yield
c
v(ti 1 ) v(ti ) [ g v(ti )](ti 1 ti )
m
t (sec.) V (m/s)
0 0
2 19.60 ∆t = 2 sec
4 32.00
8 44.82
10 47.97
12 49.96 To minimize the error, use a smaller step size, ∆t
∞ 53.39 No problem, if you use a computer!
Saturday, April 12, 2025
Analytical vs. Numerical solution
m=68.1 kg c=12.5 kg/s
g=9.8 m/s ∆t = 2 sec ∆t = 0.5 sec ∆t = 0.01 sec
t (sec.) V (m/s) t (sec.) V (m/s) t (sec.) V (m/s) t (sec.) V (m/s)
0 0 0 0 0 0 0 0
gm c
v(t )
c
1 e (c / m )t v(ti 1) v(ti ) [ g v(ti )]t
m
CONCLUSION: If you want to minimize the
error, use a smaller step size, ∆t
Saturday, April 12, 2025
Comparison of Numerical Method(Δt=2s)
with Analytical solution for Bungee Jumper
Significant Figures
• Number of significant figures indicates precision. Significant digits of a number are
those that can be used with confidence, e.g., the number of certain digits plus one
estimated digit.
Accuracy refers to how closely a computed or measured value agrees with the
true value
Precision refers to how closely individual computed or measured values agree
with each other
5.38 x 104 3
5.3800 x 104 5
Zeros are sometimes used to locate the decimal point not significant figures.
0.00001753 4
0.001753 4 Saturday, April 12, 2025
Identifying Significant Digits
• All non-zero digits are considered significant. For example, 91 has two significant
figures, while 123.45 has five significant figures
• Leading zeros are not significant. Ex: 0.00052 has two significant figures.
• The significance of trailing zeros in a number not containing a decimal point can be
ambiguous. For example, it may not always be clear if a number like 1300 is
accurate to the nearest unit. Various conventions exist to address this issue.
Approximate Error
• For numerical methods, the true value will be known only when we deal with
functions that can be solved analytically.
• In real world applications, we usually do not know the answer a priori.
Approximate error
Approximate Relative Error : a 100%
Approximation
Saturday, April 12, 2025
Iterative approaches (e.g. Newton’s method)
If εs is chosen as:
s (0.5 10(2-n) )%
Then the result is correct to at least n significant figures (Scarborough 1966)
p = 3.1415926535….
• Discrepancy introduced by this omission of significant figures is called
round-off or chopping errors.