Trait operations::math::EquationMember
source · pub trait EquationMember {
// Required methods
fn equation_repr(&self) -> String;
fn value(&self) -> f64;
// Provided methods
fn simplify(&self) -> Option<Operation> { ... }
fn is_zero(&self) -> bool { ... }
fn latex_string(&self) -> String { ... }
fn as_operation(&self) -> Option<&Operation> { ... }
}
Required Methods§
sourcefn equation_repr(&self) -> String
fn equation_repr(&self) -> String
Returns a string representation of the equation
Provided Methods§
sourcefn simplify(&self) -> Option<Operation>
fn simplify(&self) -> Option<Operation>
Returns a simplified version of the equation reducing the number of operations involved
sourcefn is_zero(&self) -> bool
fn is_zero(&self) -> bool
Returns true if the value of the equation is zero This is important for the required array solver traits
sourcefn latex_string(&self) -> String
fn latex_string(&self) -> String
Returns a latex representation of the equation for the front end
sourcefn as_operation(&self) -> Option<&Operation>
fn as_operation(&self) -> Option<&Operation>
Returns Some(Operation) if the equation is representable as an operation