Re: [Rd] Extending deriv3()

2007-10-15 Thread Prof Brian Ripley
On Mon, 15 Oct 2007, Thomas Yee wrote: Hello, I was wondering if the functions deriv3(), deriv() etc. could be extended to handle psigamma() and its special cases (digamma(), trigamma() etc.). From the error message it seems that 'psigamma' needs to be added to the derivatives table. This

Re: [Rd] Extending deriv3()

2007-10-15 Thread Gabor Grothendieck
If you are modifying it it would also be nice to add { to the derivative table so one can write this: f - function(x) x*x deriv(body(f), x, func = TRUE) Currently, one must do: deriv(body(f)[[2]], x, func = TRUE) On 10/15/07, Prof Brian Ripley [EMAIL PROTECTED] wrote: On Mon, 15

Re: [Rd] Extending deriv3()

2007-10-15 Thread Prof Brian Ripley
BTW, this has come up several times before, e.g. http://tolstoy.newcastle.edu.au/R/e2/help/07/08/22447.html is a call for patches. On Mon, 15 Oct 2007, Prof Brian Ripley wrote: On Mon, 15 Oct 2007, Thomas Yee wrote: Hello, I was wondering if the functions deriv3(), deriv() etc. could be

[Rd] Extending deriv3()

2007-10-14 Thread Thomas Yee
Hello, I was wondering if the functions deriv3(), deriv() etc. could be extended to handle psigamma() and its special cases (digamma(), trigamma() etc.). From the error message it seems that 'psigamma' needs to be added to the derivatives table. This might be easy since psigamma() has a deriv