Package | Description |
---|---|
org.mathIT.algebra |
Provides classes for algebra and linear algebra.
|
Modifier and Type | Method and Description |
---|---|
PolynomialZ[] |
PolynomialZ.divide(PolynomialZ v)
Divides this polynomial by the given polynomial v
and returns an array {q,r} holding the quotient q as the first
entry and the remainder r as the second entry.
|
PolynomialZ[] |
PolynomialZ.divideMod(PolynomialZ v,
BigInteger m)
Divides this polynomial by the given polynomial v modulo m
and returns an array {q,r} holding the quotient q as the first entry
and the remainder r as the second entry.
|
PolynomialZ |
PolynomialZ.minus(PolynomialZ q)
Returns the difference this - q of this polynomial and the specified
polynomial q.
|
PolynomialZ |
PolynomialZ.minus(PolynomialZ q,
BigInteger m)
Returns the difference this - q of this polynomial and the specified
polynomial q, with coefficients modula m.
|
PolynomialZ |
PolynomialZ.mod(PolynomialZ y)
Returns the remainder of the division of this polynomial by the given
polynomial y.
|
PolynomialZ |
PolynomialZ.mod(PolynomialZ y,
BigInteger m)
Returns the remainder of the division of this polynomial by the given
polynomial y modulo m.
|
PolynomialZ |
PolynomialZ.modPow(BigInteger e,
int r,
BigInteger n)
Returns se mod (xr - 1, n)
where s is this polynomial.
|
PolynomialZ |
PolynomialZ.modPow(int e,
BigInteger n)
Returns the polynomial qe mod (p, n)
where q is this polynomial.
|
PolynomialZ |
PolynomialZ.modPow(PolynomialZ p,
BigInteger e,
BigInteger n)
Returns the polynomial qe mod (p, n)
where q is this polynomial.
|
PolynomialZ |
PolynomialZ.multiply(PolynomialZ q)
Multiplies this polynomial with the given polynomial q.
|
PolynomialZ |
PolynomialZ.multiplyMod(PolynomialZ q,
BigInteger n)
Multiplies this polynomial with the given polynomial q modulo n.
|
PolynomialZ |
PolynomialZ.multiplyMod2(PolynomialZ q,
BigInteger n)
Multiplies this polynomial with the given polynomial q modulo n.
|
PolynomialZ |
PolynomialZ.plus(PolynomialZ q)
Returns the sum this + q of this polynomial and the specified
polynomial q.
|
PolynomialZ |
PolynomialZ.plus(PolynomialZ q,
BigInteger m)
Returns the sum this + q of this polynomial and the specified
polynomial q, with coefficients modulo m.
|
Modifier and Type | Method and Description |
---|---|
PolynomialZ[] |
PolynomialZ.divide(PolynomialZ v)
Divides this polynomial by the given polynomial v
and returns an array {q,r} holding the quotient q as the first
entry and the remainder r as the second entry.
|
PolynomialZ[] |
PolynomialZ.divideMod(PolynomialZ v,
BigInteger m)
Divides this polynomial by the given polynomial v modulo m
and returns an array {q,r} holding the quotient q as the first entry
and the remainder r as the second entry.
|
PolynomialZ |
PolynomialZ.minus(PolynomialZ q)
Returns the difference this - q of this polynomial and the specified
polynomial q.
|
PolynomialZ |
PolynomialZ.minus(PolynomialZ q,
BigInteger m)
Returns the difference this - q of this polynomial and the specified
polynomial q, with coefficients modula m.
|
PolynomialZ |
PolynomialZ.mod(PolynomialZ y)
Returns the remainder of the division of this polynomial by the given
polynomial y.
|
PolynomialZ |
PolynomialZ.mod(PolynomialZ y,
BigInteger m)
Returns the remainder of the division of this polynomial by the given
polynomial y modulo m.
|
PolynomialZ |
PolynomialZ.modPow(PolynomialZ p,
BigInteger e,
BigInteger n)
Returns the polynomial qe mod (p, n)
where q is this polynomial.
|
PolynomialZ |
PolynomialZ.multiply(PolynomialZ q)
Multiplies this polynomial with the given polynomial q.
|
PolynomialZ |
PolynomialZ.multiplyMod(PolynomialZ q,
BigInteger n)
Multiplies this polynomial with the given polynomial q modulo n.
|
PolynomialZ |
PolynomialZ.multiplyMod2(PolynomialZ q,
BigInteger n)
Multiplies this polynomial with the given polynomial q modulo n.
|
PolynomialZ |
PolynomialZ.plus(PolynomialZ q)
Returns the sum this + q of this polynomial and the specified
polynomial q.
|
PolynomialZ |
PolynomialZ.plus(PolynomialZ q,
BigInteger m)
Returns the sum this + q of this polynomial and the specified
polynomial q, with coefficients modulo m.
|