Joined: 08 Jul 2000
Location: Oklahoma USA
|Posted: Sat Jan 05, 2002 5:44 am Post subject: Chaos Theory Demo...
|I got this algorithm off the net and put together
a demo with it. It generates "chaotic" numbers
simply by repeating itself. It's a simple one line
formula, but I thought it was kinda interesting.
Some combinations (such as x = .5 and y = 4)
will stabilize the equation at zero.
OPTION SCALE, 96
OPTION DECIMALSEP, "."
TITLE By Mac
DIALOG CREATE,Chaos Theory Demo,-1,0,240,60
DIALOG ADD,TEXT,T1,3,5,,,"Enter number between 0 and 1"
DIALOG ADD,TEXT,T2,23,5,,,"Enter number from 1 through 4"
%x = @dlgtext(E1)
%y = @dlgtext(E2)
if @not(@numeric(%x))@greater(%x, .999)@greater(.001, %x)@not(@numeric(%y))@greater(%y, 4)@greater(1, %y)
INFO Invalid entry... @tab()
rem -- Algorithm will stabilize at some entries. --
%x = @fmul(@fmul(%y, %x), @fsub(1, %x))
DIALOG SET, STAT, %x
%e = @event()
VDSug.dll does file IO, check/disable menu items,
non-VDS dlls, draw functions and more...
Free download (30k dll size) at: