Escolar Documentos
Profissional Documentos
Cultura Documentos
dv cd 2
g v
dt m
cd = drag coefficient
m = mass of the jumper
g = gravitational acceleration
CE 205: Numerical Methods Dr. Tanvir Ahmed
Analytical solution
dv cd 2 gm gc
g v vt tanh d
t
dt m cd m
Considering
m = 68.1 kg
cd = 0.25 kg/m
dv v vti1 vti
dt t ti1 ti
dv cd 2
=g v
dt m
cd
v(ti+1) = v(ti) + g v(ti)2 (ti+1 ti)
m
CE 205: Numerical Methods Dr. Tanvir Ahmed
Comparison with analytical solution
cd
v(ti+1) = v(ti) + g v(ti)2 (ti+1 ti)
m
remainder term is
of the order hn+1
Problem 2.
The Mclaurin series expansion for sinx is the following:
x3 x5 x7
sin x x ...
3! 5! 7!
Starting from sinx = x, add terms one at a time to estimate sin(π/3).
Compute the true, approximate % relative errors at each step after
a new term is added.
CE 205: Numerical Methods Dr. Tanvir Ahmed
Truncation errors in Numerical diff.
Forward:
f (x i1 ) f (x i )
f (x i )
'
O(h)
h
Backward:
f (x i ) f (x i1)
f (x i )
'
O(h)
h
Centered:
f (x i1 ) f (x i1)
f (x i )
'
O(h 2 )
2h
CE 205: Numerical Methods Dr. Tanvir Ahmed
Problem: T.E. in numerical diff.
f x 0.1x 4 0.15x3 0.5x 2 0.25x 1.2
Using forward, backward and centered differences, calculate the
derivative of f(x) using step size of h = 0.5 and h = 0.25. Compute
the truncation errors for each of the methods applied.