use-equation
Install
[]
= "0.0.6"
Optional low-degree polynomial bridging:
[]
= { = "0.0.6", = ["polynomial"] }
What belongs here
use-equation owns small, explicit equation-solving primitives over f64.
It provides direct helpers for:
- linear equations of the form
ax + b = 0 - quadratic equations of the form
ax^2 + bx + c = 0 - small
2x2linear systems - reusable solving traits and equation wrapper structs
The crate stays intentionally small. It does not add symbolic algebra, arbitrary-precision arithmetic, iterative numerical methods, complex roots, or large linear system solvers in v1.
Neighboring crates
| Crate | Responsibility |
|---|---|
use-equation |
Direct equation-solving helpers, result enums, and solving traits |
use-polynomial |
Polynomial representation and direct polynomial operations |
use-linear |
Higher-level linear algebra workflows and typed matrix-driven solves |
use-matrix |
Matrix primitives |
use-vector |
Vector primitives |
use-calculus |
Calculus workflows and derivative or integral helpers |
use-optimization |
Optimization routines that may consume equation models |
use-complex |
Complex numbers and complex roots |
use-numerical |
Iterative numerical root-finding methods |
Examples
Solve a linear equation
use ;
assert_eq!;
Solve a quadratic equation
use ;
assert_eq!;
Solve a 2x2 system
use solve_2x2;
let solution = solve_2x2;
assert_eq!;
Use the RootSolver trait
use ;
let equation = new;
assert_eq!;
Status
use-equation is a concrete pre-1.0 crate in the RustUse math workspace. It
keeps equation solving explicit and reusable so neighboring polynomial,
numerical, linear algebra, simulation, optimization, and physics crates can
build on a small shared surface.