On this page:
element
Element
Molar-Mass
Molar-Mass-Unit
g/  mol
elements/  sym
elements/  n
->element
7.7

6.1 Elements

struct

(struct element (atomic-number symbol atomic-mass))

  atomic-number : Positive-Integer
  symbol : Symbol
  atomic-mass : Molar-Mass

type

Element

A struct and a type for elements.

The Periodic Table of 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

 

La

 

Ce

 

Pr

 

Nd

 

Pm

 

Sm

 

Eu

 

Gd

 

Tb

 

Dy

 

Ho

 

Er

 

Tm

 

Yb

 

Lu

 

Hf

 

Ta

 

W

 

Re

 

Os

 

Ir

 

Pt

 

Au

 

Hg

 

Tl

 

Pb

 

Bi

 

Po

 

At

 

Rn

Fr

 

Ra

 

Ac

 

Th

 

Pa

 

U

 

Np

 

Pu

 

Am

 

Cm

 

Bk

 

Cf

 

Es

 

Fm

 

Md

 

No

 

Lr

 

Rf

 

Db

 

Sg

 

Bh

 

Hs

 

Mt

 

Ds

 

Rg

 

Cn

 

Uut

 

Fl

 

Uup

 

Lv

 

Uus

 

Uuo

Warning: The element U conflicts with the type constructor for unions. To work around this, you can import it as Un using (require (only-in typed/racket/base [U Un])).

Since mols are dimensionless in this library, these are equivalent to the Mass and Mass-Unit types.

A gram per mol.

Two hash tables containing the elements 1-118. The first maps the element symbols to the elements, and the second maps the atomic numbers to the elements.

procedure

(->element e)  Element

  e : (Un Element Symbol Positive-Integer)
If given an element, returns that element. If given a symbol or atomic-number, returns the element with that symbol or atomic-number.