DaleSpam said:
Sure. It is not commented, but hopefully it is clear anyway. Ask me if you have any questions.
The question is what integration method is actually implemented by Wolfram for those functions. I also can't find where is the time step or integration resolution initialized.
There are several commonly used integration methods, like Euler method, Velocity verlet and Runge-Kutta, plus many variants and hybrid methods. They may produce the same result for some scenarios, but generally they produce different results and thus some are more suited for certain scenarios than others.
All these methods struggle with the same thing and are trying to beat it in their own way. It's resolution. Every curve must be integrated over line segments. Smaller segments or shorter dt time intervals lead to better approximation, but take more time to compute. So what these methods are attempting is to make computationally cheap predictions and produce more line segments than they actually compute by extrapolating calculated values and so save the time.
It is not obvious that while they can produce "smoother" curves, their only real purpose is just to save the time, they can't actually increase accuracy. They work great for some, but produce errors in other types of scenarios. They were important fifty years ago when computers were slow, but in my opinion many of these methods should be obsolete as they can do more harm than good.
The problem of which method to use and how to implement it is very subtle really. For example, some say Euler method is non-conservative, that in this particular case it would end up with ever increasing velocity no matter how high the resolution is set, but others disagree. They are obviously not using the same implementation, and these different implementations of what is supposed to be the same method make everything that much more unclear.
This is a huge topic on its own. It's relevant here for the unfortunate reason that numerical integration doesn't necessarily have to match the reality. Ideally the line segments should be infinitesimal, and then things like instantaneous acceleration or instantaneous velocity make some sense, but practically that's not possible, it has to be approximated and averaged, somehow. Mathematically integrals tell us what needs to be integrated, but they don't really say how. There is more than one way, they produce different results, and it is not quite clear which one is the right one for any particular application. Sadly, integration by itself is not sufficient, arguments like these should be settled with or along some actual experiment and measurement data.