Click here to Skip to main content
15,917,808 members
Home / Discussions / Algorithms
   

Algorithms

 
GeneralRe: algorithm help!?! Pin
Dan Neely7-Sep-07 10:17
Dan Neely7-Sep-07 10:17 
GeneralRe: algorithm help!?! Pin
Luc Pattyn7-Sep-07 10:50
sitebuilderLuc Pattyn7-Sep-07 10:50 
GeneralRe: algorithm help!?! Pin
Daniel Grunwald7-Sep-07 11:42
Daniel Grunwald7-Sep-07 11:42 
GeneralRe: algorithm help!?! Pin
Luc Pattyn7-Sep-07 12:15
sitebuilderLuc Pattyn7-Sep-07 12:15 
AnswerRe: algorithm help!?! Pin
Russell'8-Sep-07 0:22
Russell'8-Sep-07 0:22 
QuestionMagic squares in matlab Pin
Rami Y.5-Sep-07 17:19
Rami Y.5-Sep-07 17:19 
AnswerRe: Magic squares in matlab Pin
Russell'5-Sep-07 22:26
Russell'5-Sep-07 22:26 
QuestionFRACTAL FORMULAS Pin
cyndy_northrup4-Sep-07 21:50
cyndy_northrup4-Sep-07 21:50 
FRACTAL FORMULAS


Hey folks!

I am hoping to experiment with some simple fractal formulas in VB. I have some running ok, but some
I seem to be having trouble with. I am using VB 4.0, and am hoping someone out there in cybertopia
might be able to share insights or code snippets? I don't need anything fancy like complex graphic
rendering of the fractals, although if you are excited about this stuff and feel ambitious I'm happy to
check out any graphic stuff you might want to share.

Simply, all I'm looking for is simple number in and number out routines, i.e. you stick a number(s)
into the formula, set the iteration ceiling and then watch what ever numbers get pumped out, thats it really.

So we might have say two text boxes for inputs,

textbox1 = any number value, i.e. 129
textbox2 = any number value, i.e. 234

Then we feed those values into the fractals formula loop and for every interation the newly generated
values get dumped to some other textbox.


=================

Barry Martin - Hopalong

This one is probably one of the most interesting ones, it seems Barry Martin released a really old dos version called hopalong
and there are various exe takes on this floating about, but most of them don't work anymore because they are so old.

I had trouble with this one because I don't really understand the "sign" function, and the VB 4 sign function doesn't seem
to work in a way thats compatible with the formula, but then I'm just as likely ignorant of how to properly apply it.


2 plots resemble organic structures like cells

xnew=y-sqrt (abs(b*x-c))sign(x)
ynew = a-x

different values for constants a,b,c give different patterns and periodicities
========

For the Lorentz function, I'd like to get a really simple rudimentary one working, but I'm also curious about what would happen
if we had two parallel Lorentz functions working together, one accepting outputs from the other and then feeding back into the first one,
i.e.

Lorentz function (1) outputs cycle iteration values to Lorentz (2)

And then Lorentz(2) inputs to Lorent(1) and so on.....

By the way, does anyone know if a single Lorentz function can operate on more than the default # of inputs

Lorentz Function


xnew = x+d*a*(y-x)
ynew = y+d*(x*(c-2)-y)
znew = z+d*(x*y-b*z)

where a,b,c,d are contants, i.e. values of 10,8/3,28,0.003
========

I tried coding this one also, but instead of getting a rich set of chaotic values all I got were two values
that repeated exactly the same over and over again????

Mandlebrot

z ; iterate via ; z^2 + c

==========

For this one I tried implementing this but for some reason, when I coded this to VB, it only generated
the same values over and over again.... no chaotically generated values......
(folds and remaps oval onto itself
)

Michael Henons;
Germaine to stellar orbits

xnew = y + 1 - 1.4 * x^2

ynew = 0.3 * x



AnswerRe: FRACTAL FORMULAS Pin
Russell'4-Sep-07 22:57
Russell'4-Sep-07 22:57 
GeneralRe: FRACTAL FORMULAS Pin
cyndy_northrup5-Sep-07 15:10
cyndy_northrup5-Sep-07 15:10 
GeneralRe: FRACTAL FORMULAS Pin
Russell'5-Sep-07 22:09
Russell'5-Sep-07 22:09 
AnswerRe: FRACTAL FORMULAS Pin
Luc Pattyn4-Sep-07 23:06
sitebuilderLuc Pattyn4-Sep-07 23:06 
Questioncontiguous bits algorithm. Pin
chandu0042-Sep-07 22:09
chandu0042-Sep-07 22:09 
AnswerRe: contiguous bits algorithm. Pin
Russell'2-Sep-07 22:44
Russell'2-Sep-07 22:44 
AnswerRe: contiguous bits algorithm. Pin
cp98762-Sep-07 22:48
cp98762-Sep-07 22:48 
GeneralRe: contiguous bits algorithm. Pin
chandu0042-Sep-07 23:14
chandu0042-Sep-07 23:14 
GeneralRe: contiguous bits algorithm. [modified] Pin
cp98763-Sep-07 0:04
cp98763-Sep-07 0:04 
GeneralRe: contiguous bits algorithm. Pin
Russell'3-Sep-07 1:09
Russell'3-Sep-07 1:09 
GeneralRe: contiguous bits algorithm. Pin
Russell'3-Sep-07 0:26
Russell'3-Sep-07 0:26 
AnswerRe: contiguous bits algorithm. Pin
rihdus3-Sep-07 2:06
rihdus3-Sep-07 2:06 
AnswerRe: contiguous bits algorithm. Pin
Luc Pattyn3-Sep-07 5:37
sitebuilderLuc Pattyn3-Sep-07 5:37 
GeneralRe: contiguous bits algorithm. Pin
Russell'3-Sep-07 5:46
Russell'3-Sep-07 5:46 
GeneralRe: contiguous bits algorithm. Pin
cp98763-Sep-07 19:55
cp98763-Sep-07 19:55 
AnswerRe: contiguous bits algorithm. Pin
polyhedron4-Sep-07 16:47
polyhedron4-Sep-07 16:47 
AnswerRe: contiguous bits algorithm. Pin
Nelek12-Sep-07 5:05
protectorNelek12-Sep-07 5:05 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.