Viste, Stephanie R.
CPE115 - B2
1. Evaluate for the unknown variables. Show the step-by-step solution for all the
iterations and then create a tabulated result. Terminate if Ea ≤ 0.00001 for all
variables.
3 = 6X2 – X1 – 2X3
25 = –X1 + 11X3 – 2X2
-11 = -4X3 – 3X2 + 5X1
Using the following:
a. Gauss-Jacobi Method
b. Gauss-Seidel Method
c. Relaxation Method
2. Determine the linear function using linear regression. Show the step-by-
step tabulated solution and the solution for each variable similar to the solution
in the lecture notes. Fit the following data points using linear regression and
determine the corelation coefficient r. Determine the function at x = 40.
x 5 6 10 14 16 20 22 28 36 38
f(x) 30 28 22 21 16 14 12 8 4 0
3. Determine the quadratic function using quadratic regression. Show the
step-bystep tabulated solution and the solution for each variable similar to the
solution in the lecture notes. Fit the following data points using quadratic
regression. Determine the function at x = 21.
x 2.5 3.5 5 6 7.5 10 12.5 15 17.5 20
f(x) 7 5.5 3.9 3.6 3.1 2.8 2.6 2.4 2.3 2.1
4. Determine the function using Interpolation. Show the step-by-step process
for each interpolation similar to the solution in the lecture notes. Fit the following
data points using Lagrange Interpolating polynomial. Show the simplified
expression for each Lagrange term only. Determine the function at x = 5.5
x -2 0 3 7
f(x) -34 -2 -6.5 15.5
5. Fit the following data points using Newton’s Divided Difference
Interpolating polynomial. Show the step-by-step divided difference up to the last
forward finite divided difference. Do not simplify the final function. Determine
the function at x = 9.5
x 0 2 4 6 8 10 12
f(x) 52.698 53.414 49.002 41.718 35.354 35.238 48.234