POV-Ray : Newsgroups : povray.binaries.images : Brownian Motion Server Time
1 Nov 2024 04:15:01 EDT (-0400)
  Brownian Motion (Message 1 to 6 of 6)  
From: Fractracer
Subject: Brownian Motion
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


 

From: Thomas de Groot
Subject: Re: Brownian Motion
Date: 13 Feb 2014 03:29:40
Message: <52fc8274$1@news.povray.org>
It /looks/ brownian indeed.

Interesting.

Thomas


Post a reply to this message

From: Christian Froeschlin
Subject: Re: Brownian Motion
Date: 13 Feb 2014 17:27:23
Message: <52fd46cb@news.povray.org>
Fractracer wrote:

> 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. 

Another way to look at this would be to say you found a
formula for generating reasonable random numbers ;)


Post a reply to this message

From: FractRacer
Subject: Re: Brownian Motion
Date: 14 Feb 2014 08:33:53
Message: <52fe1b41$1@news.povray.org>

> Fractracer wrote:
>
>> 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.
>
> Another way to look at this would be to say you found a
> formula for generating reasonable random numbers ;)

Indeed, it seems like a formula for random numbers, but I have not 
enough mathematical knowledge to see if it is really efficient.

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

---

http://www.avast.com


Post a reply to this message

From: Le Forgeron
Subject: Re: Brownian Motion
Date: 17 Feb 2014 02:01:08
Message: <5301b3b4$1@news.povray.org>
Le 14/02/2014 14:38, FractRacer a écrit :
> Le 13/02/2014 23:28, Christian Froeschlin a écrit :
>> Fractracer wrote:
>>
>>> 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.
>>
>> Another way to look at this would be to say you found a
>> formula for generating reasonable random numbers ;)
> 
> Indeed, it seems like a formula for random numbers, but I have not
> enough mathematical knowledge to see if it is really efficient.
> 
The "formula" is not random. It looks erratic, but is not. If you know 1
set of coordinates, you can predict the next ones.

If you are interested on random number without a real source of
randomness, you will get most interesting search results with:
PRNG pseudo random number generator

They usually requires the usage of a hidden state, the generated random
value being only a part of that full state. (such as using a 32 bits
number as internal state, and returning only 16 bits number as random value)

Of course, you know that povray has its own prng... available with
seed() and rand().



-- 
Just because nobody complains does not mean all parachutes are perfect.


Post a reply to this message

From: FractRacer
Subject: Re: Brownian Motion
Date: 17 Feb 2014 07:27:01
Message: <53020015$1@news.povray.org>
Le 17/02/2014 08:01, Le_Forgeron a écrit :
> The "formula" is not random. It looks erratic, but is not. If you know 1
> set of coordinates, you can predict the next ones.
>
> If you are interested on random number without a real source of
> randomness, you will get most interesting search results with:
> PRNG pseudo random number generator
>
> They usually requires the usage of a hidden state, the generated random
> value being only a part of that full state. (such as using a 32 bits
> number as internal state, and returning only 16 bits number as random value)
>
> Of course, you know that povray has its own prng... available with
> seed() and rand().
>

Yes the formula is not random, but how  differentiate a real random 
sequence and a pseudo-random sequence like mine? I actually try to study 
this mathematicals phenomenons.
In fact, while I was looking for formulas like Lorenz Butterfly, I was 
surprised by the drawing of the formula I wrote. As I have already said 
I have not enough mathematical knowledges, but I know a little what is a 
brownian motion, and the act of obtaining this /randomness/ curves with 
non random calculations intrigue me.

Lionel.


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

---
Ce courrier électronique ne contient aucun virus ou logiciel malveillant parce que la
protection avast! Antivirus est active.
http://www.avast.com


Post a reply to this message

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