Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
P R E P A R E D B Y : D R . S I T I N U R U L ’A I N B I N T I Y U S O P
EXAMPLE 1
• A spherical storage tank contains oil. The tank has a diameter of 6ft.
Calculate the height, h to which a dipstick with 8 ft long would be
wet with oil when immersed in the tank when it contains 6ft3 of oil
by using Newton Raphson method. Given that the equation that
gives the height, h of the liquid in the spherical tank for the given
volume and radius is:
• 𝑓 ℎ = ℎ3 − 9ℎ2 + 3.8197 = 0
• use the initial h, ho= 1
• Calculate until the percentage error less than 5%
EXAMPLE 1 - SOLUTION
𝑓(ℎ)
(1) Formula of Newton Raphson method: ℎ1 = ℎ𝑜 −
𝑓′ (ℎ)
(2) 𝑓 ℎ = ℎ3 − 9ℎ2 + 3.8197 = 0
(3) 𝑓 ′ ℎ = 3ℎ2 − 18ℎ differentiate f(h)
(4) Iteration 1: ℎ𝑜 = 1
(1)3 −9 1 2 +3.8197 −4.1803
ℎ1 = 1 − =1− = 0.7213
3(1)2 −18(1) −15
1.36 0.0433
𝑓 𝑣 = 𝑣 − 0.03183 + − − 24.6162
𝑣 𝑣2
1.36 0.0865
(4) 𝑓 ′ 𝑣 = 1 − +
𝑣2 𝑣3
EXAMPLE 2(a) - SOLUTION
(5) Iteration 1: initial guess, 𝑣𝑜 = 24.62𝐿/𝑚𝑜𝑙
1.36 0.0433
𝑓(𝑣) 24.62−0.03183+24.62− −24.6162
24.622
𝑣1 = 𝑣𝑜 − = 24.62 − 1.36 0.0865
𝑓′ (𝑣) 1− +
24.622 24.623
24.62−0.03183+0.0552−0.0000714−24.6162
= 24.62 −
1−0.00224+0.0000058
0.0271
= 24.62 −
0.9978
= 24.59𝐿/𝑚𝑜𝑙
𝑣1 −𝑣𝑜 24.59−24.62
(6) Calculate % error: × 100 = × 100 = 0.001%
𝑣1 24.59