[−][src]Module s5::formulas
Formulas
Formulas are expression that can evaluate to some value. Can be combined into an Equation
.
Examples
use solver::formulas::*; use solver::variables::*; let s = Variable::new("s", "speed of satellite"); let me = Variable::new("E", "specific mechanical energy of orbit"); let r = Variable::new("r", "distance of satellite from center of Earth"); let u = Variable::new("u", "gravitational parameter of Earth"); let f: Formula = s^2 / 2 - u / r;
Structs
Formula | Represents an expression that (may) simplify to an int or float value. |
Enums
SimplifyErr | Error returned by |
SymbolicSolveErr | Error returned by |