Content deleted Content added
→The method: second variant of the method, link to Verlet/Leapfrog |
→Example: Further details for the example |
||
Line 44:
The motion of a [[spring (device)|spring]] satisfying [[Hooke's law]] is given by
:<math>
\frac{dx}{dt} &= v(t)\\[0.2em]
\end{align}</math>
The semi-implicit Euler for this equation is
:<math>\begin{align}
\end{align}</math>
The iteration preserves the modified energy functional <math>E_h(x,v)=\tfrac12\left(v^2+\omega^2\,x^2-\omega^2\Delta t\,vx\right)</math> exactly, leading to stable periodic orbits that deviate by <math>O(\Delta t)</math> from the exact orbits. The exact circular frequency <math>\omega</math> increases in the numerical approximation by a factor of <math>1+\tfrac1{24}\omega^2\Delta t^2+O(\Delta t^4)</math>.
▲:<math>x_{n+1} = x_n + v_{n+1} \,\Delta t. \quad</math>
== References ==
|