Finite Differences - ODEs
Mar 01, 2020
(7.1)
From Taylor exapnsion around we know:
So the approximation error is:
(7.2) & (7.3)
(7.4)
For the platform, we define . Our initial conditions are . For the pendulum, we solve numerically using Runge Kutta, where the step size is the actual time passed between frames (multiplied by some configurable factor). The step is similar to (7.2) except the second derivative is expressed as:
Here is a live animation generated by :
Alternatively, to play around with different parameters, open this JSFiddle