polyprod: Multivariate polynomial product

polyprodR Documentation

Multivariate polynomial product

Description

Gives an generalized outer product of two multipols

Usage

polyprod(m1, m2, overlap = 0)

Arguments

m1,m2

multipols to be combined

overlap

Integer indicating how many variables are common to m1 and m2; default of zero corresponds to no variables in common

Author(s)

Robin K. S. Hankin

See Also

Ops.multipol

Examples

a <- as.multipol(matrix(1,2,2))     # 1+x+y+xy

polyprod(a,a)       # (1+x+y+xy)*(1+z+t+zt)   --- offset=0
polyprod(a,a,1)     # (1+x+y+xy)*(1+y+z+yz)
polyprod(a,a,2)     # (1+x+y+xy)^2


multipol documentation built on Aug. 21, 2023, 9:10 a.m.