Professional Documents
Culture Documents
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
3 1.704279 0.563355757
2. Use the standard LU decomposition method to solve for the following matrix system:
(15 marks)
Page 1 of 6
3. Given the following data, x y a) Fit a power equation 1 0.4 2 1.8 3 3.6 4 5.5
Page 2 of 6
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.
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
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
(b)
(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
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