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§
Sourcefn solve(&self, equation: &Expression, variable: &Symbol) -> SolverResult
fn solve(&self, equation: &Expression, variable: &Symbol) -> SolverResult
Solve equation for given variable
Sourcefn solve_with_explanation(
&self,
equation: &Expression,
variable: &Symbol,
) -> (SolverResult, StepByStepExplanation)
fn solve_with_explanation( &self, equation: &Expression, variable: &Symbol, ) -> (SolverResult, StepByStepExplanation)
Solve with step-by-step explanation
Sourcefn can_solve(&self, equation: &Expression) -> bool
fn can_solve(&self, equation: &Expression) -> bool
Check if solver can handle this equation type
Implementors§
impl EquationSolver for EducationalODESolver
Implement the EquationSolver trait for integration with SmartEquationSolver
impl EquationSolver for EducationalPDESolver
Implement the EquationSolver trait for integration with SmartEquationSolver