Partial differentiation with respect to any variable
# S3 method for multipol
deriv(expr, i, derivative = 1, ...)
A multipol
Dimension to differentiate with respect to
How many times to differentiate
Further arguments, currently ignored
# NOT RUN { a <- as.multipol(matrix(1:12,3,4)) deriv(a,1) # standard usage: derivfferentiate WRT x1 deriv(a,2) # differentiate WRT x2 deriv(a,1,2) # second derivative deriv(a,1,3) # third derivative (zero multipol) # }