Re: [Rd] extending the derivs table/fools rushing in

2008-08-14 Thread Gabor Grothendieck
While you are at it could you add { to the table so that this works: # this is ok f - function(x) x*x D(body(f), x) x + x # but not g which is same as f # except it has { ... } surrounding its body g - function(x) { x*x } D(body(g), x) Error in D(body(g), x) : Function '`{`' is not in the

Re: [Rd] extending the derivs table/fools rushing in

2008-08-14 Thread Ben Bolker
http://www.zoology.ufl.edu/bolker/deriv_patch2.txt has this change added as well. However, I'm not as confident that this is the right thing to do? Should curly brackets even be appearing in mathematical expressions? Ben Gabor Grothendieck wrote: While you are at it could you add { to

Re: [Rd] extending the derivs table/fools rushing in

2008-08-14 Thread Prof Brian Ripley
The derivative of plogis is surely dlogis. (And yes, there is a good reason why we have such a function: take a look at its C code.) That means we would need an entry for dlogis too, I guess. I am not convinced that there is a real need for these (and where does this stop?) What would be

Re: [Rd] extending the derivs table/fools rushing in

2008-08-14 Thread Ben Bolker
Prof Brian Ripley wrote: The derivative of plogis is surely dlogis. (And yes, there is a good reason why we have such a function: take a look at its C code.) Doh. That means we would need an entry for dlogis too, I guess. I am not convinced that there is a real need for these (and where

Re: [Rd] extending the derivs table/fools rushing in

2008-08-14 Thread Gabor Grothendieck
You could see if Ryacas package can do what you want: http://ryacas.googlecode.com 2008/8/14 Ben Bolker [EMAIL PROTECTED]: Prof Brian Ripley wrote: The derivative of plogis is surely dlogis. (And yes, there is a good reason why we have such a function: take a look at its C code.) Doh.