Skip to content

farkon00/mol-mass-solver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Molecular Mass Solver

Compute the molecular mass of your favorite compound whether or not it can or will exist.

Requires: Python 3

Setup:

git clone https://github.com/farkon00/mol-mass-solver
cd mol-mass-solver
python3 main.py

Usage:

$ python3 main.py
H2O
18
Ca(OH)2
97
^C
$ python3 main.py -v
CO2
1 * 12 + 2 * 16 = 44
^C

Exit using Ctrl + C

You can use verbose mode using -v flag to display the underlying calculations. Consider using rlwrap for line history available on both apt (ubuntu/debian) and dnf (fedora). i.e. use arrow keys for history.

rlwrap python3 main.py

Releases

No releases published

Packages

No packages published

Languages