Partial differentitation

Share:

Description

Partial differentiation with respect to any variable

Usage

1
2
## S3 method for class 'multipol'
deriv(expr, i, derivative = 1, ...)

Arguments

expr

A multipol

i

Dimension to differentiate with respect to

derivative

How many times to differentiate

...

Further arguments, currently ignored

Author(s)

Robin K. S. Hankin

See Also

substitute

Examples

1
2
3
4
5
6
7
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)