© 2001 by CRC Press LLC
x = –0.60523 F(x) = 0.0016646
x = –0.60556 F(x) = 0.00075666
x = –0.60571 F(x) = 0.00034379
x = –0.60577 F(x) = 0.00015618
x = –0.60580 F(x) = 0.000070940
x = –0.60582 F(x) = 0.000032222
x = –0.60582 F(x) = 0.000014635
x = –0.60583 F(x) = 6.6473x10
–6
Notice that 16 iterations are required to achieve the accuracy that the value of
|F(x)| should be no greater than 0.00001. In Input[1], the equation being solved is
defined in F[x]. 1. is entered instead of an integer 1 so that all computed F(x) values
when printed will be in decimal form instead of in fractional form as indicated in
Output[3]. In Input[4], a pair of parentheses are added to allow long statements be
entered using many lines and broken and listed with better clarity. Also, N[exp,n]
is applied to request that the value of expression, exp, be handled with n significant
figures. The command If is also employed in Input[4]. It should be used in the form
of If[condition, GS1, GS2], which implements the statements in the group GS1 or
in the group GS2 when the condition is true or false, respectively. Abs computes
the absolute value of an expression specified inside the pair of brackets.
3.3 PROGRAM NEWRAPHG — GENERALIZED
NEWTON-RAPHSON ITERATIVE METHOD
Newton-Raphson method
4
has been discussed in the program FindRoot in iterative
solution of polynomials and transcendental equation. Here, for an extended discus-
sion of this method for solving a set of specified equation, we reintroduce this method
in greater detail. This method is based on Taylor’s series.
5
Let us start again with
the case of one equation of one variable. Let F(X) = 0 be the equation for which a
root X
r
is to be found. If this root is known to be in the neighborhood of X
g
, then
based on Taylor’s series expansion we may write:
(1)
where:
(2)
and the prime in Equation 1 represents differentiation with respect to X. Since X
r
is a root of F(X) = 0, therefore F(X
r
) = 0. And if X
g
is sufficiently close to X
r
, X
is small and the terms involving (X)
2
and higher powers of X in Equation 1 can
be neglected. It leads to:
(3)
FX FX F X X F X X
rg g g
()
=
()
+
′
()
+
′′
()
()
+…∆∆
2
2!
∆XX X
rg
=−
XX FXFX
rg g g
=−
()
′
()
[]