NEWTON-RAPHSON
By James Darbyshire
*** MORE GAMES AND PROGRAMS FOR CASIO CALCULATORS AT ***
******** http://www.student.uwa.edu.au/~wedgey *********
This is a simple program which will determine the x values
for which a function equals zero. You need to enter the function
which is equal to zero, and assign it to a function memory (below).
No need to differentiate - the program will do it for you!
You need to make sure that your function is equal to zero.
e.g. 2X + ln X - 2 = 0
NOT 2X + ln X = 2
If you can't make something equal to zero, then you probably
shouldn't have the need to do Newton-Raphson!
To use function memories, press shift+F-MEM (usually shift+zero)
and for f1, press fn+1. You must use the variable X in the formula.
SYMBOLS USED:
@ display symbol (triangle)
-> assign key (arrow)
d/dx( derivative sign
f1 function memory 1 (above)
SIZE: 145 bytes
THE CODE:
'NEWTON-RAPHSON
Rad (for calculus - trig derivatives)
"ENTER FORMULA=0"
"SHIFT 0:STO 1"? -> O
"START VALUE"? -> X
"APPROXIMATIONS:"
Lbl 0
f1 -> V
d/dx(f1,X) -> W d/dx( is derivative sign
X-(V/W) -> X@
Int V=0 => Frac Abs V<1+E-11 => Goto 1
Goto 0