qdivision: Division of a qspray polynomial

View source: R/groebner.R

qdivisionR Documentation

Division of a qspray polynomial

Description

Division of a qspray polynomial by a list of qspray polynomials. See the reference for the definition.

Usage

qdivision(qspray, divisors)

Arguments

qspray

the dividend, a qspray object

divisors

the divisors, a list of qspray objects

Value

The remainder of the division, a qspray object.

References

Michael Weiss, 2010. Computing Gröbner Bases in Python with Buchberger’s Algorithm.

Examples

# a univariate example
library(qspray)
x <- qlone(1)
f <- x^4 - 4*x^3 + 4*x^2 - x # 0 and 1 are trivial roots
g <- x * (x - 1)
qdivision(f, list(g)) # should be zero

qspray documentation built on Sept. 11, 2024, 5:33 p.m.