Displaying 1 result from an estimated 1 matches for "tp2306711p2307241".
2010 Jul 29
2
how to get higher derivatives with "deriv"
Dear ExpeRts,
I have trouble implementing a function which computes the k-th derivative of a specified function f and returns it as a function. I tried to adapt what I found under ?deriv but could not get it to work. Here is how it should look like:
## specify the function
f <- function (x,alpha) x^alpha
## higher derivatives
DD <- function(expr, variable, order = 1) {
if(order <