Re: [R] algorithmic or automatic differentiation

From: Simon Blomberg <>
Date: Thu, 08 May 2008 13:35:11 +1000

No, computer algebra systems such as yacas do symbolic differentiation. Automatic differentiation is a numerical technique that can be used to find derivatives of functions that can be implemented as computer programs, through successive uses of the chain rule on the computer code itself. It would be cool if R could either do AD or interface to an AD package. R can be used with ADmodelbuilder (see , a proprietry program, but an open source solution would be nice.



On Thu, 2008-05-08 at 03:09 +0000, David Winsemius wrote:
> "Erin Hodgess" <> wrote in
> > Is there a package for automatic differentiation, please?
> >
> Have you looked at Goedman, Grothendieck, Hojsgaard, and Pinkus' Ryacas?
> >From the Ryacas documentation:
> Analytical derivatives of functions can be evaluated with the D() and
> deriv() functions:
> > yacas("D(x) Sin(x)")
> expression(cos(x))

Simon Blomberg, BSc (Hons), PhD, MAppStat. 
Lecturer and Consultant Statistician 
Faculty of Biological and Chemical Sciences 
The University of Queensland 
St. Lucia Queensland 4072 
Room 320 Goddard Building (8)
T: +61 7 3365 2506

1.  I will NOT analyse your data for you.
2.  Your deadline is your problem.

The combination of some data and an aching desire for 
an answer does not ensure that a reasonable answer can 
be extracted from a given body of data. - John Tukey.

______________________________________________ mailing list
PLEASE do read the posting guide
and provide commented, minimal, self-contained, reproducible code.
Received on Thu 08 May 2008 - 03:38:17 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Thu 08 May 2008 - 04:30:36 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.

list of date sections of archive