pPoly | R Documentation |
The function returns the product between polynomials without constant term.
pPoly( L = NULL)
L |
lists of the coefficients of the polynomials |
vector |
the coefficients of the polynomial output of the product |
Called by the nKS
and nKM
functions in the kStatistics
package.
Elvira Di Nardo elvira.dinardo@unito.it,
Giuseppe Guarino giuseppe.guarino@rete.basilicata.it
# c(1,-3) are the coefficients of (x-3x^2), c(2) is the coefficient of 2x # Return c(0, 2,-6), coefficients of 2x^2-6x^3 =(x-3x^2)*(2x) pPoly(list(c(1,-3), c(2))) # c(0,3,-2) are the coefficients of 3x^2-2x^3, c(0,2,-1) are the coefficients of (2x^2-x^3) # Return c(0,0,0,6,-7,2), coefficients of 6x^4-7x^5+2x^6=(3x^2-2x^3)*(2x^2-x^3) pPoly(list(c(0,3,-2),c(0,2,-1)))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.