Crates.io | calculator-lib |
lib.rs | calculator-lib |
version | 0.1.1 |
source | src |
created_at | 2024-08-25 20:38:38.491877 |
updated_at | 2024-08-26 09:34:05.714922 |
description | A simple calculator library. |
homepage | |
repository | |
max_upload_size | |
id | 1351459 |
size | 39,273 |
This calculator support simple calculations including: Addition, Subtraction, Division, Multiplication, Power.
// Create calculator instance
let calculator = Calculator::new("((5^3 + 4^2) * (12^2 - 6^3)) / (3^2 + 7) + (144/12 + 8^2) - (2^4 * 7) + 3^3").unwrap();
// Calculate
let result = calculator.calculate(None);
. . .