| Crates.io | pemel |
| lib.rs | pemel |
| version | 0.2.1 |
| created_at | 2025-01-22 19:52:57.063616+00 |
| updated_at | 2025-03-08 13:20:38.586122+00 |
| description | Parsing and Evaluating of Math Expressions Library |
| homepage | https://github.com/MikulasBar/pemel |
| repository | https://github.com/MikulasBar/pemel |
| max_upload_size | |
| id | 1527052 |
| size | 37,951 |
pemel is a Rust library providing a utilities for parsing and evaluating mathematical expressions.
Here is a simple example of how to use pemel:
use pemel::prelude::*;
fn main() {
let input = "2 * x^2 - 5 * log(x)";
let expr = Expr::parse(input, true).unwrap();
let result = expr.eval_with_var("x", 10.0).unwrap();
println!("{}", result); // Output: 195.0
}
Untill I create a CONTRIBUTING.md file, I will not accept any pull requests.
This project is licensed under the MIT License. See the LICENSE file for details.