Violet's Molecular Mass Calculating Function