Last data update: 2014.03.03

R: Compute partial derivatives of a multivariate polynomial.
deriv.mpolyR Documentation

Compute partial derivatives of a multivariate polynomial.

Description

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

Usage

## S3 method for class '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

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')) )

Results