65 releases (36 stable)

1.5.5 Nov 16, 2024
1.5.2 Sep 15, 2024
1.5.0 Jul 10, 2024
1.4.6 Mar 28, 2024
0.1.11 Nov 27, 2020

#1335 in Math

Download history 204/week @ 2024-10-29 111/week @ 2024-11-05 394/week @ 2024-11-12 209/week @ 2024-11-19 188/week @ 2024-11-26 116/week @ 2024-12-03 332/week @ 2024-12-10 106/week @ 2024-12-17 101/week @ 2024-12-24 148/week @ 2024-12-31 164/week @ 2025-01-07 199/week @ 2025-01-14 190/week @ 2025-01-21 199/week @ 2025-01-28 218/week @ 2025-02-04 610/week @ 2025-02-11

1,249 downloads per month
Used in 3 crates

MIT license

380KB
13K SLoC

fend-core

This library implements most of the features of fend.

It requires no dependencies and can easily be used by other Rust programs.

Example

extern crate fend_core;

fn main() {
    let mut context = fend_core::Context::new();
    let result = fend_core::evaluate("1 + 1", &mut context).unwrap();
    assert_eq!(result.get_main_result(), "2");
}

lib.rs:

This library implements most of the features of fend.

Example

extern crate fend_core;

fn main() {
    let mut context = fend_core::Context::new();
    let result = fend_core::evaluate("1 + 1", &mut context).unwrap();
    assert_eq!(result.get_main_result(), "2");
}

No runtime deps