R-Forge Logo Bouncing ball

deSolve - Differential Equations in R

'deSolve' is an add-on package for the open source data analysis system R for the numerical treatment of systems of differential equations

What is in deSolve?

deSolve contains functions that solve initial value problems of a system of first-order ordinary differential equations (ODE), of partial differential equations (PDE), of differential algebraic equations (DAE), and of delay differential equations (DDE). The functions provide an interface to the FORTRAN functions lsoda, lsodar, lsode, lsodes of the ODEPACK collection, to the FORTRAN functions dvode, zvode, daspk and radau5, and a C-implementation of solvers of the Runge-Kutta family with fixed or variable time steps.

The package contains also routines designed for solving ODEs resulting from 1-D, 2-D and 3-D partial differential equations (PDE) that have been converted to ODEs by numerical differencing.

Project web pages



Manual and Tutorials


Despite of their relatively similar titles, the papers below are describing quite different aspects of the deSolve software and contain different examples.

Books that make use of deSolve

The following books make extensive use of deSolve:

The lab manual of the following book uses the predecessor package "odesolve". It works also with "deSolve":

Conference Talks


Related Packages

Mailing list

Discussions about deSolve should be directed to the mailing list: r-sig-dynamic-models@r-project.org

This Special Interest Group for Dynamic Simulation Models in R is a forum for discussing the use of R for implementation, simulation and analysis of dynamic simulation models. The list covers differential equation models as well as other dynamic systems in different application areas: natural sciences, engineering, economy and many others.

Date: 2013-04-07