Jump to content
Sal's RuneScape Forum

Recommended Posts

Posted (edited)

So I'm trying to use GNU Octave (ie. pretty much MATLAB) to create Julia and Mandlebrot sets. I've managed to actually program the Julia set properly and the Mandelbrot set shouldn't be problematic by way of actually letting the points iterate and then keeping the initial points that don't tend to infinity. But that aside, whenever I try to use around 10000 points, ie. about enough to actually get anything that looks like a filled-in Julia set, Octave tells me that memory is exhausted. I've got 2GB of RAM, so I'd imagine that's the problem. Is there a way of fixing this without getting more RAM?EDIT: It might be relevant to mention that as initial points I used a unifrand(-2,2,n), so uniformly distributed random numbers in an nxn matrix.EDIT2: Never mind, I fixed it with a little creativity. Rather than throw a 1000x1000 matrix in there I can just abuse the fact that unless you explicitly tell it to Octave won't get rid of plotted points, so I can simply run the same program several times to get a reasonably accurate picture.

Edited by reepicheep

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Guidelines and Privacy Policy.