POV-Ray : Newsgroups : povray.binaries.images : Brownian Motion : Brownian Motion Server Time
29 Jul 2024 16:31:31 EDT (-0400)
  Brownian Motion  
From: Fractracer
Date: 12 Feb 2014 13:55:01
Message: <web.52fbc2c5eafa50f8b6efa46c0@news.povray.org>
I had some hesitation, I don't know really where post this message (since the
picture was calculated under Povray).
It is about a brownian motion without random numbers, during some graphics
programming tries I have found a method to obtain a brownian motion without
random numbers. I explain with a little algorithm:

x = 1.0
y = 1.0
z = 1.0
d = 3.6

i = 0
iter = 5000 // number of particles //

while (i<iter)

    xnew = x + cos(z*dt)
    ynew = y + sin(z*dt)
    znew = z - (x*y*dt)

    plot(<xnew,ynew>)

    x = xnew
    y = ynew
    z = znew
endwhile

I am not a mathematician, I just use some mathematicals tools for my hobby.

Lionel.
--
Do not judge my words, judge my actions.


Post a reply to this message


Attachments:
Download 'brownian_motion.jpg' (75 KB)

Preview of image 'brownian_motion.jpg'
brownian_motion.jpg


 

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.