Install libchemistry-formula-perl by entering the following commands in the terminal:
sudo apt update sudo apt install libchemistry-formula-perl
Description:
enumerate elements in a chemical formula
This module provides a function which parses a string containing a chemical formula and returns the number of each element in the string. It can handle nested parentheses and square brackets and correctly computes stoichiometry given numbers outside the (possibly nested) parentheses.
Homepage: http://cars9.uchicago.edu/~ravel/software/
Version: 3.0.1-1.2
Section: universe/perl