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