Semi-implicit Euler Method - Example

Example

The motion of a spring satisfying Hooke's law is given by

\begin{align} \frac{dx}{dt} &= v(t)\\ \frac{dv}{dt} &= -\frac{k}{m}\,x=-\omega^2\,x.
\end{align}

The semi-implicit Euler for this equation is

\begin{align} v_{n+1} &= v_n - \omega^2\,x_n\,\Delta t \\ x_{n+1} &= x_n + v_{n+1} \,\Delta t.
\end{align}

The iteration preserves the modified energy functional exactly, leading to stable periodic orbits that deviate by from the exact orbits. The exact circular frequency increases in the numerical approximation by a factor of .

Read more about this topic:  Semi-implicit Euler Method

Famous quotes containing the word example:

    Our intellect is not the most subtle, the most powerful, the most appropriate, instrument for revealing the truth. It is life that, little by little, example by example, permits us to see that what is most important to our heart, or to our mind, is learned not by reasoning but through other agencies. Then it is that the intellect, observing their superiority, abdicates its control to them upon reasoned grounds and agrees to become their collaborator and lackey.
    Marcel Proust (1871–1922)