You are on page 1of 3

CHE555 NUMERICAL METHODS & OPTIMIZATION

TUTORIAL CHAPTER 3 & 4


For question 1-3, solve using
i. Chapter 4: Curve fitting (Linear, Second order & Third order) To generate the matrices
form.
ii. Chapter 4: Excel - Plot the graph & generate the equation
iii. Chapter 4: Matlab - Plot the graph & generate the equation
iv. Chapter 3: Linear Algebraic Equation (Naive Gauss Elimination, Gauss Jordan Methods and
Gauss Seidel Methods) To solve the matrices & generate the equation.
v. Chapter 3: Excel To solve the matrices & generate the equation.
vi. Chapter 3: Matlab To solve the matrices & generate the equation.
Standardize all calculation up to 4 decimal points.
Question 1: Linear Regression (Naive Gauss
Elimination)
T(oC)
0
10
20
30
40
50
60
70
80
90
100

R
27.6
31
34
37
40
42.6
45.5
48.3
51.1
54
56.7

Question 2: Second order of polynomial


(Gauss-Jordan Methods)
x
1.2
1.5
1.8
2.6
3.1
4.3
4.9
5.3
5.7
6.4
7.1

y
4.5
5.1
5.8
6.7
7
7.3
7.6
7.4
7.2
6.9
6.6

7.6
8.6
9.2
9.8

5.1
4.5
3.4
2.7

Question 3: Third order of polynomial


(Gauss Seidel Methods)
Volts
0
0.25
0.5
0.75
1
1.25
1.5
1.75
2
2.25
2.5
2.75
3
3.25
3.5
3.75
4
4.25
4.5
4.75
5

Amps
0
0.01
0.03
0.05
0.08
0.11
0.14
0.18
0.23
0.28
0.34
0.42
0.5
0.6
0.72
0.85
1
1.18
1.39
1.63
1.91

For question 4, solve using


i. Chapter 4: Curve fitting (Non-linear) To generate the matrices form.
ii. Chapter 3: Linear Algebraic Equation (Naive Gauss Elimination, Gauss Jordan Methods and
Gauss Seidel Methods) To solve the matrices & generate the equation.
iii. Chapter 4: Excel (Solver function) - Generate the equation
iv. Chapter 3: Excel To solve the matrices & generate the equation.
v. Chapter 3: Matlab To solve the matrices & generate the equation.
Standardize all calculation up to 4 decimal points.

Question 4: Non-Linear

k max c 2
cs c 2

4(a) Naive Gauss Elimination

vev
v
0.1
0.2
0.4
0.6
0.9
1.3
1.5
1.7
1.8

0.75
1.25
1.45
1.25
0.85
0.55
0.35
0.28
0.18

4(b) Gauss-Jordan Methods

y ax b
x
2.5
3.5
5
6
7.5
10
12.5
15
17.5
20

y
13
11
8.5
8.2
7
6.2
5.2
4.8
4.6
4.3

4(c) Gauss Seidel Methods

c
0.5
0.8
1.5
2.5
4

k
1.1
2.4
5.3
7.6
8.9

You might also like