Professional Documents
Culture Documents
Assainment #3
Write a program in MATLAB to find the root of the following polynomial by Newton‐Raphson Method:
𝑓(𝑥) = 𝑥 3 + 5𝑥 2 − 𝑥 − 6
Solution:
The chosen initial guess was is 0.8. because the intersection with the x-axis is around 1 +or- 0.2.
Ali A. Abukhzam 1
Step 2: The computer program was based on the following flow chart:
Delta = -f(x)/df(x)
X = x+delta
No
If |delta|<= tol
Yes
End
Ali A. Abukhzam 2
Results:
Ali A. Abukhzam 3