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

Description Usage Arguments Value Examples

View source: R/deriv.mpoly.R

Description

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

Usage

1
2
## 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

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

mpoly documentation built on March 26, 2020, 7:33 p.m.