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

2008-08-15 Thread Ben Bolker
Gabor Grothendieck wrote: > If they are on Windows installing Yacas is just a matter > of issuing a single R command with no arguments. > yacas grabs it from the net and installs it automaticaly > without any further user interaction. It also reminds you > to give the command and tells you exactly

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

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 wh

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 much

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

2008-08-14 Thread Gabor Grothendieck
Its a valid R function. ?"{" On Thu, Aug 14, 2008 at 1:07 PM, Ben Bolker <[EMAIL PROTECTED]> wrote: > 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 appe

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 th

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 '`{`'