Packages / rupm

rs-math-expr 0.1.0

Parse and evaluate arithmetic expressions with variables and functions

Install

cargo add rs-math-expr --registry rupm

In Ruststudio: Packages, search for rs-math-expr, Install.

Owner: Rust Studio. Licence: MIT OR Apache-2.0. Total downloads: 0. Published 2026-11-23.

Versions

README

# rs-math-expr

Parse and evaluate arithmetic expressions with variables and functions

Add it with `rupm add rs-math-expr` (or `cargo add rs-math-expr --registry rupm`).

```rust
let mut ctx = rs_math_expr::Context::new();
ctx.set("x", 3.0);
assert_eq!(rs_math_expr::eval("2 * x + sqrt(16)", &ctx)?, 10.0);
```