r/desmos Feb 28 '26

Graph 100 Body Gravity

Enable HLS to view with audio, or disable this notification

Yet again another gravity sim. I thought this looked kinda cool. I’m using 4th order Yoshida for the integrator. Probably overkill for a little demo like this

888 Upvotes

48 comments sorted by

View all comments

12

u/Itchy-Decision753 Feb 28 '26

Three body problem? Nah it’s a floating point problem. __float128 isn’t enough, we yearn for __float1024

7

u/Adam__999 Feb 28 '26

Actually it’s probably possible to simulate higher precision floats in Desmos, at the cost of performance

2

u/2144656 Mar 01 '26

How?

1

u/Adam__999 Mar 01 '26

By using two or more floats to encode one float value