File:Brownian hierarchical.svg
An image of Brownian motion, done with three different step sizes. The hierarchical structure is clearly visible. Vector version of Image:Brownian_hierarchical.png made using Mathematica.
Mathematica code:
g = {last = {0, 0}}
Do[g = Append[g, last = last + Sqrt[-Log[Random[]]]{Cos[θ], Sin[θ]} /. θ -> Random[Real, 2π]], {2048}]
g2 = Partition[g, 8][[All, 1]];
g3 = Partition[g2, 8][[All, 1]];
plot = Show[
ListPlot[g, PlotJoined -> True, PlotStyle -> RGBColor[0,.78,1], DisplayFunction -> Identity],
ListPlot[g2,PlotJoined -> True, PlotStyle -> Blue, DisplayFunction -> Identity],
ListPlot[g3,PlotJoined -> True, DisplayFunction -> Identity],
DisplayFunction -> $DisplayFunction, AspectRatio -> Automatic, ImageSize -> 1000]
| I, the copyright holder of this work, release this work into the public domain. This applies worldwide. In some countries this may not be legally possible; if so: I grant anyone the right to use this work for any purpose, without any conditions, unless such conditions are required by law. |