Lost in Math
by philx - uploaded on May 17, 2025, 2:43 pm
*there were too many things wrong with this really.
latest simplified firefox friendly version: drive.google.com/file/d/1jpM-zbTVTP5Mr6rFndw1hz3jwjYMIkE3/view?usp=drive_link
so while numeria likes math and seems to be able to keep khaos at bay, its really not possible. math makes models of the world which work within their limits. gravity is great until you have three 'bodies' and then you are likely to be flung out of the nice warm solar system you grew up in. numeria and khaos dance with each other.
this is a three body problem simulator translated to svg. there were a bunch of presets on the 'real one' below but i could only get 2 to work. otherwise, you can enter the parameters as a query ?1, ?2 or ?a,whole,bunch,of,numbers described in a title...
please, remix and improve! the 'real' one, in html: evgenii.com/blog/three-body-problem-simulator/
lost in math: a book by en.wikipedia.org/wiki/Sabine_Hossenfelder (the current muse of math?)
Liu Cixin - en.wikipedia.org/wiki/The_Three-Body_Problem_(novel) (a very cool novel and novelist!)
Sick on chronic mathematics / I just wanted to feel music - neko case winnie
Comments
@j4p4n
2025-05-17 16:35:14+00Is this suppose to be an interactive animation? I cant personally figure it out. I like your effort though :)
@philx
2025-05-17 17:32:22+00@j4p4n so its like a 'half interactive' animation. it needs an html wrapper with a form to set the long,list,of,numbers and an iframe to run in. but, you can type/change the url. once it starts it just uses 'animation paths' to simulate motion of the orbs (purple button). but you have all of newtons gravity to play with :-)
@m1981
2025-05-18 20:35:58+00@philx I confirm Firefox doesn't like it (almost made my laptop crash). I saw it on a Chromium base browser. It's more a kind of program/simulation if I correctly understand.
The svg is pretty tiny, but the active script part is a bit out of the context of clipart library.
This part also left me a little puzzled : I know it's not the case here, but does an imported SVG in OCAL could be a vector for a potential malware ?
@philx
2025-05-18 21:09:36+00@m1981 yeah i sent in a bug report. i didnt do much explanation - i guess i should have - but the 'real' one was there so i thought... anyway, i took the physics part and used it generate orbital paths for 3 gravitating bodies. also, like some previous 'orreries', i connected the dots into triangles. these paths are dependent only on the parameters you give it in the url - mass, position, velocity (in polar coordinates :-) x 3. once generated, thats it - the svg 'animate motion' makes the circles follow the orbits, in time sync. you could do it differently - for example calculate everything in an html and generate an svg with the paths already there. or use javascript animation. or... and no i dont think javascript can be used to inject malware anymore. maybe at one time (internet explorer comes to mind :-)
@philx
2025-05-18 21:39:40+00ps the 'figure 8' is a very rare 'solution' to the three body problem. aka 'how not to get flung out of your solar system'. and it looks cool. the lower blue buttons should fill in parameters - nudge them a bit to see what happens. its called 'sensitive dependence on initial conditions'. or khaos.
Log in to comment.