An example page containing a REBOL program


This page contains an ebeded Rebol program to solve a problem of the form f(x) = 0 using the Newton Raphson method.



This script will allow entry of a function (& its derivative) and use the Newton-Raphson method.

You should be aware of the Syntax of operators in REBOL and the lack of precedence of operators (if in doubt .... read the Manual!)

For example the function

f(x) = x^3 + 4   shoud be entered as  :  (x ** 3) + 4
Its derivative
df(x)/dx = 3x^2  should be entered as :  3 * (x ** 2)


There are some shortcut for some standard maths functions

sin x is equivilent to sine/radians x
cos x is equivilent to cosine/radians x
tan x is equivilent to tangent/radians x

sqr x is equivilent to square-root x



This page was last updated on 22nd June 2000