You are on page 1of 6

PART A (70 marks) 1.

Use the False-position method to estimate the value of when :

Use initial guesses of the 1.00 and 3.00. Perform the computation until a is less than the stopping criterion of s = 0.5 %. (20 marks) The root equation is given as

i 1 2 3 4

xl 1 1.6

xu 3

xr 1.6

fxl 3

fxu -7 -0.06458

fxr -7 0.563355757 +ve, set xl = xr -0.06458275 -ve, set xu = xr 5.30154E-06 +ve, set xl = xr

ea 6.119 0.633 0.018

3 1.704279 0.563355757

1.6 1.704279 1.693554 0.563355757 1.693553893 1.704279 1.693854 0.001859147

-0.06458 0.001859147 +ve, set xl = xr

2. Use the standard LU decomposition method to solve for the following matrix system:

(15 marks)

Page 1 of 6

COEB223/MATB324 Semester 1 2010/11

3. Given the following data, x y a) Fit a power equation 1 0.4 2 1.8 3 3.6 4 5.5

by using a logarithmic transformation of the data. (17 marks)

The data x and y need to be linearized by logarithmic transformation:


Xi = log x 0 0.30103 0.477121 0.60206 1.380211 Yi = log y -0.39794001 0.255272505 0.556302501 0.740362689 1.153997687 Xiyi = log x * log y 0 0.076844681 0.265423747 0.445742754 0.788011183 Xi^2 = (log x) ^2 0 0.090619 0.227645 0.362476 0.68074

The linear regression can be expressed as

From the equations,

Page 2 of 6

COEB223/MATB324 Semester 1 2010/11

b) Find the standard error of the estimate, Sy/x. (3 marks) To calculate standard error of estimate, an additional column is needed to compute Sr:
Xi = log x 0 0.30103 0.477121 0.60206 1.380211 Yi = log y -0.39794001 0.255272505 0.556302501 0.740362689 1.153997687 (yi - a0 - a1xi)^2 0.000822305 0.002569722 0.000257444 0.001448687 0.005098158

4. The following data are the measured shear stresses of material A with various lengths.

Length, cm Shear Stress, Pa

3.1 28.7

4.2 33.5

5.1 43.1

5.8 49.3

Estimate the shear stress of this material if the length is 4.8 cm using the third order Newtons interpolating polynomial. (15 marks)

Page 3 of 6

COEB223/MATB324 Semester 1 2010/11

PART B (30 marks) 5. Miss Mimi owns a cake factory. Every day the factory makes three types of cake, namely icing, mousse and sponge cakes. The three main ingredients required for baking these cakes are eggs, flour and sugar. Every day, Miss Mimi buys 140 eggs, of which 9 eggs are used to bake one sponge cake, 5 eggs to bake one mousse cake, and 2 eggs to bake one icing cake. Miss Mimi also buys 275 packets of flour, of which 11 packets are used to bake one sponge cake, 8 packets to bake one mousse cake, and 10 packets to bake one icing cake. For the sugar, 4 packets are used to bake one mousse cake. Double amount of sugar required for a mousse cake is used to bake one sponge cake, and triple amount of sugar required for a mousse cake is used to bake one icing cake. Miss Mimi only buys 220 packets of sugar per day. (a) Set up the system of equations to model the production run. (3 marks)

Page 4 of 6

COEB223/MATB324 Semester 1 2010/11

(b)

Write the system of equations in the standard matrix form. (3 marks)

(c)

Based on the matrix in (b), use the Gauss-Seidel method to calculate the numbers of cakes that can be produced per day. Use a relaxation factor, = 0.9, and do TWO iterations. Assume an initial value of 10 for all variables. (Note: Solve the simultaneous equations without rearranging the matrix). (18 marks) Initial values are s0 = m0 = i0 = 10 1st iteration,
Relaxation,

Relaxation,

Relaxation,

2nd iteration,
Relaxation,

Page 5 of 6

COEB223/MATB324 Semester 1 2010/11

Relaxation,

Relaxation,

(d)

Explain whether the solution to the equations (obtained using the above GaussSeidel method) will converge. (6 marks) Applying the convergence criterion,
Criterion met Criterion not met Criterion not met

Convergence is only guaranteed if all the conditions are satisfied. Only one of the convergence criteria for the above matrix is met, hence the solution may not converge.

Page 6 of 6

You might also like