Displaying 1 result from an estimated 1 matches for "mathfunc".
Did you mean:
mainfunc
2001 Apr 06
2
symbolic manipulations
Hi All,
I copied code from an Splus manual to take symbolic derivatives:
my.deriv <- function( mathfunc, var )
{
tmp <- substitute(mathfunc)
name <- deparse(substitute(var))
D(tmp, name)
}
(The code also works in R).
When I try this on x^2 I...