home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Datafile PD-CD 5
/
DATAFILE_PDCD5.iso
/
utilities
/
f
/
fractal112
/
!Fractal
/
Help
/
NewtonBasi
< prev
next >
Wrap
Text File
|
1996-10-09
|
785b
|
20 lines
NewtonBasin
-----------
This function calculates the n-th root of -1 ie. z^n-1=0, using the
Newton-Raphson method. Floating point arithmetic is required so don't expect
it to zip along. This function plots the colour based on the root we are
converging to. Contrast this with NewtonIters which uses the iteration count.
There are 2 data variables:
Max Iter : iteration limit.
e : The accuracy check value. The iteration is stopped when a root is found
that solves the equation to within the 'e' accuracy value. Higher values of
'e' force greater accuracy and more iterations to be used, useful when
zooming in.
A 3d version can be drawn directly by turning on the 3d X/Y Plot option.
See the 3d section of !MainHelp for details.
Thanks to Joyce Haslam for providing this function.