Equation
A Rust library for mathematical expression evaluation and simplification.
TODO
- Rewrite pest parsing as PrattParser;
- Modulo
%& exponent**support; - Unary minus operator support;
- Support fractions as
f32; - Support basic triggernomic ratio functions sine, cosine & tangent as
sin,cos&tan; - Support evaluate
stepsparameter to break evaluation steps into aVec<&str>; - Support simplification & evaluation of algebraic expressions;
- Create simplify
Getting started
Add the following lines to your Cargo.toml dependencies:
[]
= "0.1.0"
Examples
Evaluate basic arithmetic equations and return a i32.
use evaluate;
License
Licensed under MIT license (LICENSE-MIT | https://opensource.org/licenses/MIT) or under the Apache 2.0 (LICENSE-APACHE | https://opensource.org/license/apache-2-0/).