is.subformula will test for all elements of one chemical formula (f_sub) to be present in another (f_main).
Supposed chemical sub formula.
Supposed chemical main formula.
To achieve the task formulas are split into elements and counted using CountChemicalElements.
Logical indicating if f_sub is potentially a subformula of f_main.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.