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)

Value

Returns a multipol

Arguments

a

A multipol

maxorder

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

Author

Robin K. S. Hankin

See Also

Ops.multipol

Examples

Run this code
a <- matrix(0,7,7)
a[1:3,1:4] <- 1:12
a <- as.multipol(a)
a
trim(a)
taylor(a,2)

Run the code above in your browser using DataCamp Workspace