2 releases

0.1.1 Aug 26, 2024
0.1.0 Aug 25, 2024

#844 in Math

Custom license

19KB
402 lines

A simple calculator library written for rust.

This calculator support simple calculations including: Addition, Subtraction, Division, Multiplication, Power.

Example

// 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);
. . .

Dependencies

~2.7–8.5MB
~86K SLoC