Professional Documents
Culture Documents
Newton's Method, Root Finding With MATLAB and Excel PDF
Newton's Method, Root Finding With MATLAB and Excel PDF
TOPIC 1
Finding the Roots of
Equations
Copyright The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Review: Classification of Equations
y(xi)
Tangent
Line: Slope =
y(xi)
Initial guess xi
xi
y(xi)/y(xi)
For x = 10:
y = 1350
y = 580
For x = 7.6724:
y = 368.494
y = 279.621
Initial
value =
New x-value = 7.6724
6.3546
Continue iterations:
To find the
other roots,
use different
initial guess
values
x = -2.0764 x = 1.4187
x = 5.6577
Output root x
Engineering Computation: An Introduction Using MATLAB and Excel
MATLAB Code
>> Newton
Enter initial guess
10
Root found: 5.6577
>> Newton
Enter initial guess
0
Root found: 1.4187
>> Newton
Enter initial guess
-10
Root found: -2.0764
Equation 1: Equation 2: