rationalize 0.2.0

rationalize float to ratio
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use chemical_balancer::ChemicalBalancer;
use std::str::FromStr;

#[test]
fn ready() {
    println!("it works!")
}

#[test]
fn test() {
    let co2 = ChemicalBalancer::from_str("C6H5COOH + O2 = CO2 + H2O").unwrap();
    // println!("{:#?}", co2.count_elements());
    println!("{:#?}", co2.solve());
    println!("{:#?}", co2.solve_integers())
}