home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ARM Club 3
/
TheARMClub_PDCD3.iso
/
hensa
/
graphics
/
fractal_1
/
!Fractal
/
Help
/
Newton
< prev
next >
Wrap
Text File
|
1996-10-09
|
1KB
|
28 lines
Newton
------
This function calculates the cube root of -1 ie. z*z*z-1=0, using the
Newton-Raphson method. There are three possible roots which are: z=1,
z=-0.5+0.8666i, z=-0.5-0.866i. Floating point arithmetic is required so
don't expect it to zip along. Initially 32 bit accuracy is used which is
reasonably fast, then it switches to 64 bit. The menu options are:
Plot Root: in this mode, the colour is chosen depending on which root we are
converging to. This is the quickest option, but not very spectacular.
Plot Iters: in this mode the colour is set from the number of iterations
required to reach the root. This produces Mandelbrot type displays of
infinite complexity, but it can take a lot of time.
There are 2 data variables:
Max Iter : iteration limit, mainly of use when using Plot Iters and zooming
in.
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.