| Crates.io | stoichkit |
| lib.rs | stoichkit |
| version | 0.6.0 |
| created_at | 2020-07-19 07:34:11.000901+00 |
| updated_at | 2022-02-12 22:32:08.101029+00 |
| description | A stoichiometry toolkit |
| homepage | |
| repository | https://github.com/ttymck/stoichkit |
| max_upload_size | |
| id | 266770 |
| size | 79,899 |
A toolkit for stoichiometry.
balance: Balances a chemical equationyield: Calculates percent yield
moles calculates moles given formula and mass (grams)theoretical-yield: Calculate theoretical yield of all products
stoichkit 0.6.0
A stoichiometry toolkit.
USAGE:
stoichkit <SUBCOMMAND>
OPTIONS:
-h, --help Print help information
-V, --version Print version information
SUBCOMMANDS:
balance
help Print this message or the help of the given subcommand(s)
moles
theoretical-yield
yield
$ stoichkit balance H2O O2 = H2O2
2*H2O + O2 = 2*H2O2
$ stoichkit balance -x H2O O2 = H2O2
2*H2O + 1*O2 = 2*H2O2
$ stoichkit moles C4H6 0.7254
0.013410485 mol
$ stoichkit theoretical-yield "2*H2O2" 4.0 = "2*H2O" O2
H2O 2.1185393 g
O2 1.8814605 g
$ stoichkit theoretical-yield --units moles "2*H2O2" 4.0 = "2*H2O" O2
H2O 0.11759864 mol
O2 0.05879932 mol
$ stoichkit yield '2*H2O2' 4.0 = '2*H2O' 2.1184621`
H2O 0.9999635 %
cargo build --release./target/release/stoichkit or copy that binary to a bin folder.stoichkit equation balancer uses the nalgebra-linalg solver, which requires a BLAS installation.
On macOS BLAS can be installed via brew install openblas.
stoichkitweb available here)