trim | R Documentation |
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.
trim(a)
taylor(a,maxorder=NULL)
a |
A multipol |
maxorder |
The multivariate order of the expansion returned;
default of |
Returns a multipol
If a
is a zero multipol (that is, a multivariate polynomial
with all entries zero) of any size, then trim(a)
is a zero
multipol of the same arity as a
but with extent 1 in each
direction.
Robin K. S. Hankin
Ops.multipol
a <- matrix(0,7,7)
a[1:3,1:4] <- 1:12
a <- as.multipol(a)
a
trim(a)
taylor(a,2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.