One cannot escape the feeling that these mathematical formulas have an independent existence and an intelligence of their own, that they are wiser than we are, wiser even than their discoverers (Heinrich Hertz)
I love spending my time doing mathematics: transforming formulas into drawings, experimenting with paradoxes, learning new techniques … and R is a perfect tool for doing it. Maths are for me a the best way of escape and evasion from reality. At least, doing maths is a stylish way of wasting my time.
When I read something interesting, many times I feel the desire to try it by myself. That’s what happened to me when I discovered this fabolous book by Julien C. Sprott. I cannot stop doing images with the formulas that contains. Today I present you a mix of mandalas and galaxies that I called Mandalaxies:
This time, the equation that drives these drawings is this one:
The equation depends on six parameters (from a1 to a6). Searching randomly for values between -1.2 and 1.3 to each of them, you can generate an infinite number of beautiful images:
Here you can find the code to do your own images. Once again,
Rcpp is key to generate the set of points to plot quickly since each of the previous plots contains 4 million points.
1 thought on “Mandalaxies”
Based on your R code for the starting math (there seems to be an error in the formulas on this blog post), I made made a few modifications to how things are drawn. The system is very sensitive to initial conditions, so I pick a color, a random starting place, and draw for a while, then change colors and pick a new starting place; repeat a few times. The results are fun: https://lingweenie.org/img/mandalaxy.png