lua version of the wxMol (https://github.com/brewbert/wxMol) stoichiometric calculator
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
LICENSE
README.md
molcalc.lua

README.md

MolCalc

Copyright (c) 2010-2018 Ing. Hubert HANGHOFER, Licensed under the GPL (see sources)

This is the lua version of https://github.com/brewbert/wxMol as used as lua-module on https://molcalc.com

Sources are available from the repositories at

Purpose and Usage

MolCalc is a stoichiometric parser. It translates chemical element symbols to their corresponding atomic weights and enables simple arithmetic calculations. For example, to calculate the percentage of Aluminium in Aluminiumsulfate-Hexadecahydrate, you could enter:

Al2/(Al2(SO4)3+16H2O)*100

The converted input is returned along with the result, so that you can check if the calculation was done according to your expectations. MolCalc checks for bracketing (parenthesis) and symbol errors but doesn't detect, if a chemical formula is valid or your computations make sense.

molcalc.lua is a module containing the parser function as used on https://molcalc.com in a WSAPI-fastcgi environment.

If you need a version for your desktop, you could try the python code or download the packages or windows binaries derived thereof from: http://hanghofer.net/~hubert/python/