pub struct PolynomialSystem {
pub polys: Vec<String>,
pub vars: Vec<String>,
}Expand description
Polynomial system: a system of polynomial equations.
Fields§
§polys: Vec<String>The polynomial generators (as strings).
vars: Vec<String>Variable names.
Implementations§
Source§impl PolynomialSystem
impl PolynomialSystem
Sourcepub fn solve_over_algebraic_closure(&self) -> Vec<String>
pub fn solve_over_algebraic_closure(&self) -> Vec<String>
Solve over the algebraic closure using Gröbner bases.
Computes the variety V(f_1,…,f_m) ⊆ k̄^n via the Shape Lemma: for 0-dimensional ideals, the reduced Gröbner basis in lex order gives a triangular system solvable by back-substitution.
Sourcepub fn count_solutions(&self) -> usize
pub fn count_solutions(&self) -> usize
Count solutions (degree of the ideal) for 0-dimensional systems.
By Bézout’s theorem, the number of solutions (counted with multiplicity) equals the product of degrees of the generators (for generic systems).
Auto Trait Implementations§
impl Freeze for PolynomialSystem
impl RefUnwindSafe for PolynomialSystem
impl Send for PolynomialSystem
impl Sync for PolynomialSystem
impl Unpin for PolynomialSystem
impl UnsafeUnpin for PolynomialSystem
impl UnwindSafe for PolynomialSystem
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more