Beruflich Dokumente
Kultur Dokumente
Example:
f (c )
9.8 68.1
1 e ( c / 68.1)10 40
c
Page 1
Method 2:
(a) Open m-file
(b) Type on the m-file:
function f = fx (x)
f = equation ;
(c) After that, click save and run.
(d) Then, type in command window the fzero command to find the root of x.
x = fzero (fx, x0)
%fx is file name , x0 - initial guess
Example:
f (c )
9.8 68.1
1 e ( c / 68.1)10 40
c
In m-file:
Page 2
f (c )
9.8 68.1
1 e ( c / 68.1)10 40
c
Page 3
U ( x , y) x 2 xy 10
V ( x , y) y 3xy 2 57
Page 4
Page 5
Other example:
2. P2(x) = x5 7x4 + 16x2 + 25x + 52
3. P3(x) = x4 28x3 + 289x2 1302x + 2160
Note: Please include terms whose coefficients are equal to zero.
Page 6
Other example:
2. Roots of polynomial: 5, 6, 8, 9
3. Roots of polynomial: -1, -2, -3, -4+5j, -4-5j
at x = 1
Other example:
2. P2 (x) = x6 3x5 5x3 4x2 3x + 2 at x = -3
Prepared by Madam Rabiatul Adawiyah Abdol Aziz (2016)
Page 7
Page 8
Page 9