Class PolynomialAlgebra
java.lang.Object
org.episteme.core.mathematics.algebra.polynomials.PolynomialAlgebra
Advanced polynomial operations: GCD, factorization, resultants.
Algorithms for symbolic computation and computer algebra.
- Since:
- 1.0
- Author:
- Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classExtended Euclidean algorithm: finds s, t such that gcd(a,b) = s*a + t*b -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Integercontent(Polynomial<Integer> p) Content of polynomial (GCD of all coefficients).static Polynomial<Integer> Computes derivative of polynomial.static Polynomial<Integer> derivative(Polynomial<Integer> p, int n) Computes nth derivative.static IntegerDiscriminant of polynomial.static Polynomial<Integer> gcd(Polynomial<Integer> a, Polynomial<Integer> b) Euclidean algorithm for polynomial GCD.static booleanChecks if polynomial is irreducible.static Polynomial<Integer> Primitive part: polynomial / contentstatic Integerresultant(Polynomial<Integer> a, Polynomial<Integer> b) Resultant of two polynomials.static List<Polynomial<Integer>> Square-free factorization: f = ∠f_i^i
-
Constructor Details
-
PolynomialAlgebra
public PolynomialAlgebra()
-
-
Method Details
-
gcd
Euclidean algorithm for polynomial GCD.gcd(a, b) = gcd(b, a mod b) Works for polynomials over fields.
- Parameters:
a- first polynomialb- second polynomial- Returns:
- greatest common divisor
-
resultant
Resultant of two polynomials.Res(a, b) = 0 iff a and b have common root. Computed using Sylvester matrix determinant.
-
discriminant
Discriminant of polynomial.ÃŽâ€(f) = (-1)^(n(n-1)/2) * Res(f, f') / lc(f) Zero iff f has repeated root.
-
squareFreeFactorization
Square-free factorization: f = ∠f_i^iSeparates polynomial into square-free parts. First step in complete factorization.
-
content
Content of polynomial (GCD of all coefficients). -
primitivePart
Primitive part: polynomial / contentpp(f) * cont(f) = f
-
isIrreducible
Checks if polynomial is irreducible.Uses Eisenstein's criterion and other tests.
-
derivative
Computes derivative of polynomial. -
derivative
Computes nth derivative.
-