multipol (version 1.0-7)

trim: Remove redundant entries from a multipol

Description

Remove redundant entries from a multivariate polynomial: function trim() trims the array of non-significant zeroes as far as possible without altering its value as a multipol; function taylor() returns the multivariate Taylor expansion to a specified order.

Usage

trim(a)
taylor(a,maxorder=NULL)

Arguments

a

A multipol

maxorder

The multivariate order of the expansion returned; default of NULL means to return a unaltered

Value

Returns a multipol

See Also

Ops.multipol

Examples

# NOT RUN {
a <- matrix(0,7,7)
a[1:3,1:4] <- 1:12
a <- as.multipol(a)
a
trim(a)
taylor(a,2)
# }