- param kwargs
The percentage compositions of elements in the compound
(<Element symbol> = <Percentage Composition> ...)
- return
The empirical formula of the compound.
- rtype
chemlib.chemistry.Compound
- raises ValueError
If the sums of the percentages is not equal to 100.
Get the empirical formula of a compound that is composed of 80.6% C, and 19.4% H by mass:
>>> from chemlib import empirical_formula_by_percent_comp as efbpc >>> efbpc(C = 80.6, H = 19.4) 'C1H3'
- param CO2
The grams of carbon dioxide formed as a result of the combustion of the hydrocarbon.
- param H2O
The grams of water formed as a result of the combustion of the hydrocarbon.
- return
The empirical formula of the hydrocarbon.
- rtype
str
A hydrocarbon fuel is fully combusted with 18.214 g of oxygen to yield 23.118 g of carbon dioxide and 4.729 g of water. Find the empirical formula for the hydrocarbon.
>>> from chemlib.chemistry import combustion_analysis >>> combustion_analysis(23.118, 4.729) 'CH'