Learn R Programming

resultant (version 1.0.0)

squareFreeFactorization: Square-free factorization of a polynomial

Description

Square-free factorization of a polynomial with rational coefficients.

Usage

squareFreeFactorization(qspray)

Value

A list with two fields constantFactor and

nonConstantFactors. In the field constantFactor, there is a bigq rational number, the constant factor of the factorization. In the field nonConstantFactors, there is a list providing the square-free and pairwise coprime qspray polynomials of the factorization with their multiplicity.

Arguments

qspray

a qspray polynomial having at most nine variables

Examples

Run this code
library(resultant)
x <- qlone(1)
y <- qlone(2)
p <- x^8*y^7 + 2*x^7*y^5 + x^6*y^4 + 2*x^5*y^2
squareFreeFactorization(p)

Run the code above in your browser using DataLab