View source: R/symmetricPolynomials.R
PSPcombination | R Documentation |
Expression of a symmetric qspray
polynomial as a
linear combination of some power sum polynomials.
PSPcombination(qspray)
qspray |
a symmetric |
A list of pairs. Each pair is made of a bigq
number, the
coefficient of the term of the linear combination, and an integer
partition, corresponding to a power sum polynomial.
PSPexpression
.
# take a symmetric polynomial
( qspray <- ESFpoly(4, c(2, 1)) + ESFpoly(4, c(2, 2)) )
# compute the power sum combination
( pspCombo <- PSPcombination(qspray) )
# then the polynomial can be reconstructed as follows:
Reduce(`+`, lapply(pspCombo, function(term) {
term[["coeff"]] * PSFpoly(4, term[["lambda"]])
}))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.