[R] differential equations

Prof Brian D Ripley ripley at stats.ox.ac.uk
Wed Jul 26 19:31:04 CEST 2000


On Wed, 26 Jul 2000, Timothy H. Keitt wrote:

> A GSL package for R would be great; let me know if I can help.  Getting GSL to
> evaluate R code though may be a bit of a problem; can you pass a pointer to the
> eval function?

That's what call_R achieves: indeed solving ODEs seems
the world's favourite example of call_S/R.

To achieve it that way is easy, but it can be pretty slow. As e.g. the 
optimization functions show, there are slicker ways to call Rf_eval
more directly from a C wrapper.  I can't imagine that ODE solver code
is different in principle.

-- 
Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272860 (secr)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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