You are on page 1of 16

Department of Electrical and Computer Engineering

Air University Islamabad


5th Semester
Numerical Methods
Homework#3
Chapter #12
Osama Anees Mirza Rayyan Munir
210286 210301
05 December 2023

1
Contents
1 Problem#12.3 3
1.1 Solution: . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3

2 Problem#12.15 9
2.1 Solution: . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
2.2 Part (C): . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
2.2.1 Output . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16

2
1 Problem#12.3
1.1 Solution:

CamScanner

Figure 1: Problem#12.3 - Page 1

3
CamScanner

Figure 2: Problem#12.3 - Page 2


4
CamScanner

Figure 3: Problem#12.3 - Page 3


5
CamScanner

Figure 4: Problem#12.3 - Page 4


6
CamScanner

Figure 5: Problem#12.3 - Page 5


7
CamScanner

Figure 6: Problem#12.3 - Page 6


8
2 Problem#12.15
2.1 Solution:

CamScanner

Figure 7: Problem#12.15 - Page 7

9
CamScanner

Figure 8: Problem#12.15 - Page 8


10
CamScanner

Figure 9: Problem#12.15 - Page 9


11
CamScanner

Figure 10: Problem#12.15 - Page 10


12
CamScanner

Figure 11: Problem#12.15 - Page 11


13
CamScanner

Figure 12: Problem#12.15 - Page 12


14
CamScanner

Figure 13: Problem#12.15 - Page 13


15
2.2 Part (C):

1 fun = @(x) [
2 x(1)^2 - x(1) + x(2) - 0.75;
3 x(2) + 5*x(1)*x(2) - x(1)^2
4 ];
5
6 [x, fx] = fsolve(fun, [1.2; 1.2])

2.2.1 Output

16

You might also like