[R] differential equation

Timothy Sharac timothysharac at mybluelight.com
Sat Nov 2 04:06:23 CET 2002


I'm trying to write differential equations into R code. Can anyone help me with the following equation:

(dy/dt) = v

(dv/dt) = y - y^3 + c(sin t)

where c is a constant. I've been using the "deriv()" function and it seems to work out the best, but I'm having trouble converting the above formula to R code.

Thank you,

Tim Sharac



Sign up for Internet Service under $10 dollars a month, at http://isp.BlueLight.com
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list