63 releases (34 stable)

1.5.3 Oct 5, 2024
1.5.1 Aug 10, 2024
1.5.0 Jul 10, 2024
1.4.6 Mar 28, 2024
0.1.11 Nov 27, 2020

#1266 in Math

Download history 193/week @ 2024-07-17 186/week @ 2024-07-24 208/week @ 2024-07-31 346/week @ 2024-08-07 136/week @ 2024-08-14 109/week @ 2024-08-21 153/week @ 2024-08-28 135/week @ 2024-09-04 503/week @ 2024-09-11 284/week @ 2024-09-18 221/week @ 2024-09-25 440/week @ 2024-10-02 217/week @ 2024-10-09 156/week @ 2024-10-16 146/week @ 2024-10-23 173/week @ 2024-10-30

712 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