radium-0.3: Chemistry

Portabilityportable
Stabilityalpha
MaintainerKrzysztof Langner <klangner@gmail.com>
Safe HaskellSafe-Inferred

Chemistry.Element

Description

This module contains Periodic Table with information about all known elements.

Synopsis

Documentation

data Element Source

Instances

Eq Element 
Show Element 

electronConfig :: Element -> [Int]Source

Show number of electrons in each shell For elements which are exception to Aufbau principle configuration is given manually Is it possible to calculate it for all elements based only on atom properties?

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

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 

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