EquationSolver

Trait EquationSolver 

Source
pub trait EquationSolver {
    // Required methods
    fn solve(&self, equation: &Expression, variable: &Symbol) -> SolverResult;
    fn solve_with_explanation(
        &self,
        equation: &Expression,
        variable: &Symbol,
    ) -> (SolverResult, StepByStepExplanation);
    fn can_solve(&self, equation: &Expression) -> bool;
}
Expand description

Common interface for equation solvers

Required Methods§

Source

fn solve(&self, equation: &Expression, variable: &Symbol) -> SolverResult

Solve equation for given variable

Source

fn solve_with_explanation( &self, equation: &Expression, variable: &Symbol, ) -> (SolverResult, StepByStepExplanation)

Solve with step-by-step explanation

Source

fn can_solve(&self, equation: &Expression) -> bool

Check if solver can handle this equation type

Implementors§

Source§

impl EquationSolver for EducationalODESolver

Implement the EquationSolver trait for integration with SmartEquationSolver

Source§

impl EquationSolver for EducationalPDESolver

Implement the EquationSolver trait for integration with SmartEquationSolver

Source§

impl EquationSolver for LinearSolver

Source§

impl EquationSolver for MatrixEquationSolver

Source§

impl EquationSolver for PolynomialSolver

Source§

impl EquationSolver for QuadraticSolver

Source§

impl EquationSolver for SystemSolver