Class Polynomial<S>
java.lang.Object
dk.jonaslindstrom.ruffini.polynomials.elements.recursive.Polynomial<S>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionadd
(Polynomial<S> other, AdditiveGroup<S> group) Add this polynomial with another and return the result.static <T> Polynomial<T>
create
(int variables) Create a new polynomial with the given number of variables.Pair<Polynomial<S>,
Polynomial<S>> divide
(Polynomial<S> other, Ring<S> ring) protected Pair<Polynomial<S>,
Polynomial<S>> divideInternal
(Polynomial<S> d, Polynomial<S> q, Ring<S> ring) protected java.util.stream.Stream<Pair<S,
LinkedList<Integer>>> getTerms()
boolean
isZero
(AdditiveGroup<S> group) multiply
(Polynomial<S> other, Ring<S> ring) Multiply this polynomial with another and return the result.protected Polynomial<S>
void
void
java.util.stream.Stream<dk.jonaslindstrom.ruffini.polynomials.elements.recursive.Monomial<S>>
terms()
Returns a stream of the monomials/terms of the polynomial in increasing lexicographical order.toString()
zero
(int variables) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.function.BiFunction
andThen
-
Constructor Details
-
Polynomial
protected Polynomial(int variables)
-
-
Method Details
-
create
Create a new polynomial with the given number of variables. -
add
Add this polynomial with another and return the result. -
multiply
Multiply this polynomial with another and return the result. -
getTerms
-
terms
public java.util.stream.Stream<dk.jonaslindstrom.ruffini.polynomials.elements.recursive.Monomial<S>> terms()Returns a stream of the monomials/terms of the polynomial in increasing lexicographical order. -
get
-
set
-
set
-
apply
-
isZero
-
zero
-
divideInternal
protected Pair<Polynomial<S>,Polynomial<S>> divideInternal(Polynomial<S> d, Polynomial<S> q, Ring<S> ring) -
replace
-
divide
-
toString
-