Sunteți pe pagina 1din 3

Faculty of Mechanical and Manufacturing Engineering

BDA 34003 Engineering Mathematics IV


Individual Assignment

Instruction:
1.

Answer ALL questions.

2.

Perform all computations in 6 decimal places.

3.

Please pass up your assignment before or by 23 April 2015 (Thursday) 3pm.

4.

Plagiarized source code for C++ will be given zero marks.

Marking Scheme
1.

Knowledge 90 marks

2.

Soft Skill 10 marks (pass up on time)

Q1

It is given that f ( x) sin x 1 9 x 2 , x in radian.


(a)

Show that there is a root of f ( x) 0 in the interval 0.3 x 0.4

(b)

Estimate the root of nonlinear equation in part (a) using bisection method. Apply
stopping criteria bi ai 0.0050.
(15 marks)

Q2

A florist sells roses, tulips and carnations. Each rose can be sold for a profit of RM4, each
tulip for a profit of RM7 and each carnation for a profit of RM9. In March 2015, a total
of 9500 flowers was sold, and the total sales of RM71550 was recorded. The number of
tulips sold is as twice as the number of roses.
The problem is to determine how many roses, tulips and carnations have been sold in
March 2014.
(a)

Derive all the related equations and write the equations in the matrix form.
(6 marks)

(b)

Solve the problem written in part (a) by


(i)

Gauss Elimination Method.


(10 marks)
Gauss Seidel Method. Iterate until the error | xi 1 xi | 0.0005 .

(ii)

(7 marks)
(c)

By using dev C++, develop a user-friendly program for Gauss Seidel method.
Subsequently, verify your answer in part (b)(ii) with the developed program.
(12 marks)

Q3

Given f ( x) e x .
(a)

Complete the following table.


x

0.25

0.75

f ( x) e x

(2 marks)
(b)

Hence, find f (0.4) by using newton's divided-difference method.


(10 marks)

(c)

If (0.5,0.607) is added into the data above, find f (0.4) by using newton's divided
difference method.
(10 marks)

Q4

Given that f ( x) e x . By taking h 10 k where, k 1.2 find approximate values of

f '(2.2) using
(a)

2-point forward difference formula


(3 marks)

(b)

2-point backward difference formula


(3 marks)

(c)

3-point central difference formula


(3 marks)

(d)

3-point forward difference formula


(3 marks)

(e)

3-point backward difference formula


(3 marks)

(f)

5-point difference formula


(3 marks)

S-ar putea să vă placă și