Skip to content

Elisp package to calculate molar mass of a given molecule

License

Notifications You must be signed in to change notification settings

sergiruiztrepat/molar-mass

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 

Repository files navigation

molar-mass.el

Molar-mass is an utility that calculates molar mass (aka molecular mass or molecular weight) of a given molecule.

Installation

After installing the package (or copying it to your load-path), add this to your init file:

(require 'molar-mass)

Usage

It works interactively (entering your formula at the minibuffer) and also with region.

M-x molar-mass goes to the minibuffer. Enter formula (Ex. KMnO4):

./img/img1.jpg

It returns:

./img/img2.jpg

It also accepts parentheses at the formula. By example:

Fe(OH)2

“Molar mass of Fe(OH)2 : 89.860 g/mol (uma)”

You can use it with region. Select a region with your formula and call M-x molar-mass:

./img/img3.jpg

It returns:

./img/img4.jpg

About

Elisp package to calculate molar mass of a given molecule

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published