Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
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.
- data Element
- atomicNumber :: Element -> Int
- symbol :: Element -> String
- atomWeight :: Element -> Double
- electroNegativity :: Element -> Double
- ionizationEnergy :: Element -> Double
- electronConfig :: Element -> [Int]
- element :: Int -> Element
- elementBySymbol :: String -> Element
- valanceElectrons :: Element -> Int
- covalentBounds :: Element -> Int
Documentation
atomicNumber :: Element -> Int Source #
atomWeight :: Element -> Double Source #
electroNegativity :: Element -> Double Source #
ionizationEnergy :: Element -> Double Source #
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]
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