MATH 5 Sample Question 2
MATH 5 Sample Question 2
1. 14𝑥 + 10𝑦 + 8𝑧 = 21
Given the linear system 10𝑥 − 2𝑦 + 3𝑧 = 19 .
5𝑥 + 6𝑦 + 15𝑧 = 16
a. Reduce the above system to diagonally dominant form.
b. Solve the reduced system in (a) by Gaussian elimination with pivoting and back
substitution.
c. Write down the Gauss-Seidel iteration formula corresponding to the system in (a).
Compute two iterations to estimate the roots to 2 d.p. starting with the initial value
𝑥0 = 1.5, 𝑦0 = −1 and 𝑧0 = 1.
d. Write MATLAB codes to solve by left division (backslash) operator.
Page 1 of 2
c. Find the time, to the nearest second, when the speed will be 𝑣 = 50 𝑚𝑠 −1.
d. Use MATLAB function a = lsqcurvefit(fun, a0 , xdata, ydata) to fit all the above
problems
Page 2 of 2