View source: R/symmetricPolynomials.R
PSPexpression | R Documentation |
Expression of a symmetric qspray
polynomial as a
polynomial in the power sum polynomials.
PSPexpression(qspray)
qspray |
a symmetric |
A qspray
polynomial, say P
, such that
P(p_1, ..., p_n)
equals the input symmetric polynomial,
where p_i
is the i-th power sum polynomial (PSFpoly(n, i)
).
PSPcombination
# take a symmetric polynomial
( qspray <- ESFpoly(4, c(2, 1)) + ESFpoly(4, c(2, 2)) )
# compute the power sum expression
( pspExpr <- PSPexpression(qspray) )
# take the involved power sum polynomials
psPolys <- lapply(1:numberOfVariables(pspExpr), function(i) PSFpoly(4, i))
# then this should be TRUE:
qspray == changeVariables(pspExpr, psPolys)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.