pPoly {kStatistics}R Documentation

Product of Polynomials

Description

The function returns the product between polynomials without constant term.

Usage

pPoly( L = NULL) 

Arguments

L

lists of the coefficients of the polynomials

Value

vector

the coefficients of the polynomial output of the product

Note

Called by the nKS and nKM functions in the kStatistics package.

Author(s)

Elvira Di Nardo elvira.dinardo@unito.it,
Giuseppe Guarino giuseppe.guarino@rete.basilicata.it

Examples


# 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)))                       


[Package kStatistics version 2.1.1 Index]