radium-0.4.1: Chemistry

Safe HaskellSafe-Inferred
LanguageHaskell2010

Radium.Element

Description

Module Radium.Element Copyright : Copyright (C) 2014 Krzysztof Langner License : BSD3

Maintainer : Krzysztof Langner klangner@gmail.com Stability : alpha Portability : portable

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

Synopsis

Documentation

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 -> Element Source

Find element by its atomic number

atomicNumber (element 8) == 8 

elementBySymbol :: String -> Element Source

Find element by its symbol

atomicNumber (elementBySymbol "O") == 8 

valanceElectrons :: Element -> Int Source

Number of valance electrons

let e = element 8
valanceElectrons e == 6 

covalentBounds :: Element -> Int Source

Number of covalent bounds in element

let e = element 8
covalentBounds e == 2