On this page:
molar-mass
7.1

6.3 Molar Mass

procedure

(molar-mass comp)  Molar-Mass

  comp : (Un Element Compound)
finds the molar mass of the element or compound.

Examples:
> (require typed/racket)
> (require typed/measures-with-dimensions/chemistry)
> (molar-mass H)

- : Molar-Mass

(m: 1.00794 g/mol)

> (molar-mass O)

- : Molar-Mass

(m: 15.9994 g/mol)

> (molar-mass (compound: H2O))

- : Molar-Mass

(m: 18.01528 g/mol)