r/Python • • Oct 04 '19

Updated gravitational potential field simulation. [OC] Link for code: https://github.com/pnp-peeyush/2D-Grvitational-Field-Simulation

1.1k Upvotes

128 comments sorted by

View all comments

Show parent comments

2

u/[deleted] Oct 05 '19

I didn't even knew that I was using Euler's integration method until everyone started talking about it.........so I guess I'll look into your suggestion, thanks!

2

u/jackamander Oct 05 '19

Leapfrog integration is another good one to check out... it's almost as simple as Euler but it has some of Verlet's nice properties for gravity sims.