[R-sig-dyn-mod] Damped oscillator with deSolve

Suzen, Mehmet msuzen at gmail.com
Thu Dec 6 20:02:29 CET 2012


Hello Felix,

You need to introduce new variable y=dx/dt  and your equation reads
dy/dt= eta*x + zeta*y.  So solution
will be for states (x, y) and paramaters (eta, zeta). Remember that
any higher order ODE can be expressed as first order.

Best,
-Mehmet

On 6 December 2012 18:54, Felix Schönbrodt <gmx at nicebread.de> wrote:
> Hi all,
>
> I have some trouble setting up a damped oscillator in deSolve. It seemed like a straightforward task, but I did not succeed …
> The goal is to model following differential equation:
> d2x/dt2 = eta*x + zeta*dx/dt
>
> (Quite similar to http://en.wikipedia.org/wiki/Damping; it's a somewhat simplified version of the standard damped oscillator).
>
> Any help is appreciated!
> Felix
>         [[alternative HTML version deleted]]
>
>
> _______________________________________________
> R-sig-dynamic-models mailing list
> R-sig-dynamic-models at r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-dynamic-models
>



More information about the R-sig-dynamic-models mailing list