radium-0.2: Chemistry

Safe HaskellSafe-Inferred

Chemistry.Element

Synopsis

Documentation

data Element Source

Instances

Eq Element 
Show Element 

element :: Int -> ElementSource

Find element by its atomic number

 atomicNumber (element 8) == 8 

elementBySymbol :: String -> ElementSource

Find element by its symbol

 atomicNumber (elementBySymbol "O") == 8 

shellElectrons :: Element -> [Int]Source

Show number of electrons in each shell

 let e = element 8
 shellElectrons e == [2, 6] 

valanceElectrons :: Element -> IntSource

Number of valance electrons

 let e = element 8
 valanceElectrons e == 6 

covalentBounds :: Element -> IntSource

Number of covalent bounds in element

 let e = element 8
 covalentBounds e == 2