Crates.io | operations |
lib.rs | operations |
version | 0.1.2 |
source | src |
created_at | 2023-08-14 12:40:51.109379 |
updated_at | 2023-08-30 02:21:29.063341 |
description | Basic algebraic and mathematical expressions for use with dynamic elements |
homepage | |
repository | |
max_upload_size | |
id | 944129 |
size | 42,989 |
This is a Rust library for performing mathematical operations and manipulating equations.
Add the following to your Cargo.toml
file:
[dependencies]
operations = "0.1.1"
use math::{Operation, EquationMember};
fn main() {
let operation = Operation::Multiply(vec![
Operation::Value(2.0),
Operation::Variable(Rc::new("x")),
]);
println!("{}", operation.equation_repr());
}
// Prints
"2.0 * x"
Contributions are welcome! Open a PR or issue on GitHub to get started!
This library is licensed under the MIT License.