mpoly (version 1.1.1)

deriv.mpoly: Compute partial derivatives of a multivariate polynomial.

Description

This is a deriv method for mpoly objects. It does not call the stats::deriv().

Usage

# S3 method for mpoly
deriv(expr, var, ...)

Arguments

expr

an object of class mpoly

var

character - the partial derivative desired

...

any additional arguments

Value

An object of class mpoly or mpolyList.

Examples

Run this code
# NOT RUN {
m <- mp("x y + y z + z^2")
deriv(m, "x")
deriv(m, "y")
deriv(m, "z")
deriv(m, c("x","y","z"))
deriv(m, "a")
is.mpoly(deriv(m, "x"))
is.mpolyList( deriv(m, c("x","y","z")) )
# }

Run the code above in your browser using DataLab