Vai al contenuto

Calcoli scientifici con Julia/Tavola periodica

Wikibooks, manuali e libri di testo liberi.
Indice del libro

Per ottenere la tabella periodica occorre innanzitutto installare il pacchetto PeriodicTable:

Da REPL digitare:

using Pkg
Pkg.add("PeriodicTable")

Da Jupyter in una cella di codice digitare :

] add PeriodicTable

Gli elementi sono :

using PeriodicTable
elements
Elements(…119 elements…):
H                                                  He 
Li Be                               B  C  N  O  F  Ne 
Na Mg                               Al Si P  S  Cl Ar 
K  Ca Sc Ti V  Cr Mn Fe Co Ni Cu Zn Ga Ge As Se Br Kr 
Rb Sr Y  Zr Nb Mo Tc Ru Rh Pd Ag Cd In Sn Sb Te I  Xe 
Cs Ba    Hf Ta W  Re Os Ir Pt Au Hg Tl Pb Bi Po At Rn 
Fr Ra    Rf Db Sg Bh Hs Mt Ds Rg Cn Nh Fl Mc Lv Ts Og 
Uue                                                   
     La Ce Pr Nd Pm Sm Eu Gd Tb Dy Ho Er Tm Yb Lu    
     Ac Th Pa U  Np Pu Am Cm Bk Cf Es Fm Md No Lr    

Per visualizzare il carbonio :

elements["carbon"]
Carbon (C), number 6:
category	polyatomic nonmetal
atomic mass	12.011 u
density	1.821 g/cm³
molar heat	8.517 J/mol⋅K
phase	Solid
shells	[2, 4]
electron configuration	1s² 2s² 2p²
summary	Carbon (from Latin:carbo "coal") is a chemical element with symbol C and atomic number 6. On the periodic table, it is the first (row 2) of six elements in column (group) 14, which have in common the composition of their outer electron shell. It is nonmetallic and tetravalent—making four electrons available to form covalent chemical bonds.
discovered by	Ancient Egypt
source	https://en.wikipedia.org/wiki/Carbon
Carbon_Spectra.jpg

Per visualizzare l'elemento 3 :

elements[3]
Lithium (Li), number 3:
category	alkali metal
atomic mass	6.94 u
density	0.534 g/cm³
molar heat	24.86 J/mol⋅K
melting point	453.65 K
boiling point	1603.0 K
phase	Solid
shells	[2, 1]
electron configuration	1s² 2s¹
appearance	silvery-white
summary	Lithium (from Greek:λίθος lithos, "stone") is a chemical element with the symbol Li and atomic number 3. It is a soft, silver-white metal belonging to the alkali metal group of chemical elements. Under standard conditions it is the lightest metal and the least dense solid element.
discovered by	Johan August Arfwedson
source	https://en.wikipedia.org/wiki/Lithium


Per visualizzare gli elementi da 2 a 7 :

elements[2:7]
6-element Vector{Element}:
Element(Helium)
Element(Lithium)
Element(Beryllium)
Element(Boron)
Element(Carbon)
Element(Nitrogen)