mathhook-core 0.2.0

Core mathematical engine for MathHook - expressions, algebra, and solving
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//! Efficient Sparse Polynomial Representation for Gröbner Basis
//!
//! This module provides an optimized polynomial representation using:
//! - HashMap<Monomial, Coefficient> for O(1) term lookup
//! - Efficient monomial ordering for Gröbner basis computation
//! - Optimized arithmetic operations (O(n) addition, O(n²) multiplication)
//!
//! This achieves SymPy-level performance by avoiding Expression tree explosion.

mod conversion;
mod monomial;
mod polynomial;

pub use conversion::{expression_to_sparse_polynomial, sparse_polynomial_to_expression};
pub use monomial::Monomial;
pub use polynomial::SparsePolynomial;