Re: [R] deSolve: Problem solving ODE including modulo-operator

2011-01-30 Thread Thomas Petzoldt
Dear Albert2002, there is no problem with deSolve and, of course, no problem with R's modulo operator, but there are at least two errors in your model formulation: 1.) The order of the returned derivatives must be exactly the same as specified in the state variables. This is documented in th

[R] deSolve: Problem solving ODE including modulo-operator

2011-01-25 Thread apokaly
I have a problem integrating the 'standard map' ( http://en.wikipedia.org/wiki/Standard_map http://en.wikipedia.org/wiki/Standard_map ) with deSolve: By using the modulo-operator '%%' with 2*pi in the ODEs (standardmap1), the resulting values of P and Theta, should not be greater than 2pi. Becaus