Closed smenjas closed 1 year ago
Provide a function/method to automatically convert a condensed chemical formula, like Mg(OH)2, to a molecular formula, like MgH2O2 for example.
I did this manually in 5a992920a90b1fc10c3de43d5034f85fe65c90d4, but I still want an automated algorithm.
Provide a function/method to automatically convert a condensed chemical formula, like Mg(OH)2, to a molecular formula, like MgH2O2 for example.