Description Usage Arguments Details Value Author(s) References See Also Examples
Converts an mpoly object to a simple list representing a multivariate polynomial or a simple list to an mpoly object
1 |
poly |
an mpoly object or a list giving powers and coefficients defining the polynomial |
The list representation consists of 2 components: 'powers' is a matrix with each row representing the powers of X in one term of the multivariate polynomial. 'coeff' is a vector with each element being the coefficient of the corresponding term in powers
if poly is of class 'mpoly', it is a list with two components shown below. If poly is such a list, the value is the corresponding mpoly object
Kem Phillips <kemphillips@comcast.net>
K Phillips, Symbolic Computation of the Central Moments of the Multivariate Normal Distribution, Journal of Statistical Software, 2010.
convert.multipol, evaluate.expected.polynomial, integrate.polynomial
1 2 3 4 5 6 7 8 | # create an mpoly object here (requires library mpoly) (not run)
# convert from mpoly to list representation
# t0 <- mpoly::mpoly(list(c(coef=3,x1=2),c(coef=2,x1=1,x2=3),
# c(coef=-4,z=2),c(coef=1,x1=1,x2=2,z=1)))
# t1 <- convert.mpoly(t0)
# convert from list representation back to an mpoly object
# t2 <- convert.mpoly(t1)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.