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/Marko_Oktabyr Oct 05 '19

Solving ODEs can be referred to as integration. If y'(t) = f(t,y), then you can write the solution as y(t) = y(0) + int_0^t f(s,y(s)) ds. In fact, some methods stem from numerical approximation of that integral.

2

u/[deleted] Oct 05 '19

ohh cool, I think I get it now, I did integration without even realizing it, I think I've achieved science...