Sei sulla pagina 1di 6

Kuwait University College of Engineering & Petroleum Spring 2014

Numerical Methods for Engineers (ENG 308)

Final Exam

Student Name: …………………………………………………………………

Student ID: ……………………………………………………………………

Show all your work; No credit will be given for providing ONLY final answers

In all your calculation retain 4 significant figures

Only one answer is allowed per problem

 Problem Points Out Of 1 25 2 25 3 25 4 25 Final score 100

Problem # 1 (25 points)

Solve the following non-linear system using Newton-Raphson method.

15 + 2 − 4 = 13

2 + 10 − = 11

2 − 25 = −22

 Start with x 0 = 0 , y 0 = 0 and z 0 = 0. Show two iterations. Solution:

First iteration

 1 1 1

Second iteration

 2 2 2

Problem # 2 ( 25 points)

 a) The velocity of a motorcycle in meter/second is given as a function of time in seconds in the following table t (s) 0 1 3 5 8 11 14 V(m/s) 0 2 4 8 16 32 64

If the motorcyclist is moving on a straight road, what is the total distance traveled? (Use the most accurate methods to determine the total distance).

Total distance = ∫

0

14

V

dt

Solution

b) For the following integral:

Find

= ∫

0

5

( − )

 I. The value of ‘I’ using trapezoidal rule and h=5 II. The value of ‘I’ using 5 points Simpson’s 1/3 rule

Solution

Trapezoidal rule and h=5

I

Simpson’s 1/3 rule with 5 points

I

Problem # 3 (25 points)

Solve the following ODE over the interval from x = 1 to 3 using Huens methods

2 +

2

+ sin( ) = 0

Where

(1) = 1

/ (1) = −3

ℎ = 1

Solution

Problem # 4 (25 points)

Solve the following ODE using finite difference method

Knowing that (0) = 0 and (1) = 1

Step size,

=

0.2

2

2

= 6

Find ’s for the value of between 0 and 1 (USE two iterations of Gauss-Seidal (G.S) method to solve your matrix)

Solution

First iteration

 (x=0.2) (x=0.4) (x=0.6) (x=0.8)

Second iteration

 (x=0.2) (x=0.4) (x=0.6) (x=0.8)