mathhook-core 0.2.0

Core mathematical engine for MathHook - expressions, algebra, and solving
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use mathhook_core::{expr, symbol};

fn main() {
    let _x = symbol!(x);
    let a = expr!(x + 1);
    let b = expr!(x + 2);

    println!("a = {:?}", a);
    println!("b = {:?}", b);

    let result = a.gcd(&b);
    println!("GCD result: {:?}", result);
}