bt_math

Crates.iobt_math
lib.rsbt_math
version0.1.0
sourcesrc
created_at2024-11-19 09:16:23.360424
updated_at2024-11-19 09:16:23.360424
descriptionBasic math expression evaluator library. Support basic math operators (+,-,*,/,^), parenthesis, and some functions such as log, ln, log2, exp, sin, cos, tan, asin, acos, atan, abs, sqrt
homepagehttps://github.com/bachuetech/bt_math
repositoryhttps://github.com/bachuetech/bt_math.git
max_upload_size
id1453045
size14,088
(bachuetech)

documentation

README

Project Title

BT MATH

Description

A simple implementation of an expression evaluator that can handle basic arithmetic operations, parentheses, and some mathematical functions that provide a way to evaluate mathematical expressions using RPN (Reverse Polish Notation) implemented in two parts: parsing and evaluation.

Usage

let expression = "2 + 3 * 4";
 .......
let f = evaluate_expression(expression).unwrap();

Version History

  • 0.1.0
    • Initial Release

License

GPL-3.0-only

Commit count: 3

cargo fmt