search for: c5h12o

Displaying 1 result from an estimated 1 matches for "c5h12o".

Did you mean: c5h12
2010 Dec 26
4
Parsing a Simple Chemical Formula
...nction argument. The formula would be in "Hill order" which is to list C, then H, then all other elements in alphabetical order. My example will have only a limited number of elements, few enough that one can search directly for each element. So some examples would be C5H12, or C5H12O or C5H11BrO (note that for oxygen and bromine, O or Br, there is no following number meaning a 1 is implied). Let's say > form <- "C5H11BrO" I'd like to get the count of each element, so in this case I need to extract C and 5, H and 11, Br and 1, O and 1 (I want to c...