Sie sind auf Seite 1von 3

Semester I 2012/2013 Kohort 1

UNIVERSITI TUN HUSSEIN ONN MALAYSIA BWM 21403 MATEMATIK IV GROUP ASSIGNMENT NO.2

Q1

2 Find the root of f ( x ) = x + 2 x 10 cos 2 x + that lies in the interval [2, 3] by using 3 Bisection method. Iterate until f (ci ) < = 0.005 .

Q2

A biologist has placed three strains of bacteria (denoted I, II and III) in a test tube, where they will feed on three different food sources (A, B and C). Each day 200 units of A, 12,600 units of B and 5,950 units of C are placed in the test tube. Each bacteria consumes a certain number of units of each food per day, as shown in Table Q2 as follows: Table Q2 Bacteria Strain I Food A Food B Food C 1 40 20 Bacteria Strain II 1 60 25 Bacteria Strain III 1 80 40

By assuming x1 as numbers of bacteria of Strain I, x2 as numbers of bacteria of Strain II and x3 as numbers of bacteria of Strain III, the above problem can be formulated as x1 + x2 + x3 = 200 40 x1 + 60 x2 + 80 x3 = 12, 600 20 x1 + 25 x2 + 40 x3 = 5,950 . Determine the number of bacteria of each strain that can coexist in the test tube if they consume all of the food by using Doolittle factorization method.

This assignment is to be submitted on the fifth meeting (15 December 2012)

Semester I 2012/2013 Kohort 1

Answer: (TOTAL MARKS = 91) Q1 M1 apply Bisection method M6 calculate for each a i , ci , bi , f ( a i ) , f (ci ) and f (bi ) A48 calculate for each cell of a i , ci , bi , f ( ai ) , f (ci ) and f (bi )

i
0 1 2 3 4 5 6 7

ai

ci

bi

f ( ai )

f (ci ) 0.278 -1.179 -0.494 -0.119 0.076 -0.022 0.027 0.002

f (bi ) 4.278 0.278 0.278 0.278 0.278 0.076 0.076 0.027

2 2 2.25 2.375 2.438 2.438 2.453 2.453

2.5 2.25 2.375 2.438 2.469 2.453 2.461 2.457

3 2.5 2.5 2.5 2.5 2.469 2.469 2.461

-2.329 -2.329 -1.179 -0.494 -0.119 -0.119 -0.022 -0.022

Since f (c7 ) = 0.002 < = 0.005 , thus the root of f ( x ) is 2.457. M1 stopping criteria, A1 final answer (57 marks)

Q2

The system of linear equations can be written in matrix form: 1 1 1 x1 200 40 60 80 x2 = 12, 600 20 25 40 x 5,950 3 Step 1: From A = LU , solve for L and U . 1 1 1 1 0 0 d 40 60 80 = a 1 0 0 20 25 40 b c 1 0 A2 for each L and U e g 0 f d h = ad bd i e f ae + g af + h be + cg bf + ch + i

M1 matrix multiplication

Compare element by element: M1 comparing values

Semester I 2012/2013 Kohort 1

d =1 ad = 40 a = 40 bd = 20 b = 20

e =1 ae + g = 60 g = 20 be + cg = 25 c = 0.25

f =1 af + h = 80 h = 40 bf + ch + i = 40 i = 10

A9 correct answers for each a, b, c, d, e, f, g, h and i M6 method of finding a, b, c, g, h and I only 0 0 1 1 1 1 L = 40 1 0 and U = 0 20 40 . 20 0.25 1 0 0 10 M2 writing down in terms of A=LU Step 2 : From LY = b , solve for Y by forward substitution. 0 0 y1 200 1 1 0 y2 = 12, 600 40 20 0.25 1 y 5,950 3 M2 substitution in LY=b 200 Y = 4, 600 . 800 A3 correct answers for each y

Step 3 : From Ux = Y , solve for x by backward substitution. 1 1 1 x1 200 0 20 40 x2 = 4, 600 0 0 10 x 800 3 M2 substitution in Ux=Y 50 x = 70 . 80 A3 correct answers for each x

Therefore, the number of bacteria that can coexist in the test tube is 50 bacteria of Strain I, 70 bacteria of Strain II and 80 bacteria of Strain III. M3 giving answers in the point of application view (34 marks)

Das könnte Ihnen auch gefallen