%OP%TNT
%OP%BON
%OP%PL64
%OP%DPF
%OP%TM1
%OP%HM2
%OP%FM0
%OP%BM1
%OP%LM5
%OP%HE/%H2%Z88 Users' Club Software Library%H2%/
%OP%FO/Z187/@P@/
%CO:A,12,70%
%R%%H2%MolarMass%H2% by Tom Hawkins
%R%Instructions
%R%28th April 1992

This program calculates the molar mass (relative molecular mass) of a 
chemical compound from its molecular formula.

To start the program, go to BASIC and either CHAIN it or LOAD it and 
then type RUN.

To calculate the molar mass of a compound, type in the formula as 
written, eg:

H2SO4
CH3COOCH2CH3
Ca(OH)2
CuSO4.10H2O

Parentheses and dots can be used as follows:

Typed in

2Cu(OH)2.10H2O.4HCl
Ni(NH(CH3)2)4

A dot cannot be used inside parentheses.

The molar mass will be given in grammes per mole (g mol%H6%-1%H6%), to an 
accuracy appropriate to the atomic mass data; ie, the number of 
decimal places in the answer is taken from the atomic mass in the 
formula which is known least accurately.  

If the input line is not an acceptable chemical formula the message 
"Unacceptable formula, try again" will be given and the line will be 
returned for editing.


The symbols for the elements used by %H2%MolarMass%H2% are as follows:

                                                  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 Te Br Kr
Rb Sr   Y  Zr Nb Mo Tc Ru Rh Pd Ag Cd In Sn Sb Te I  Xe
Cs Ba   Lu Hf Ta W  Re Os Ir Pt Au Hg Tl Pb Bi Po At Rn
Fr Ra   Lr

      La Ce Pr Nd Pm Sm Eu Gd Tb Dy Ho Er Tm Yb
      Ac Th Pa U  Np Pu Am Cm Bk Cf Es Fm Md No

In addition, the symbols Me, Et, Bu and Ph can be used in place of 
CH3, C2H5, C4H9 and C6H5 respectively.

%P0%
To exit from the program, press ESC.

The atomic mass values are held in DATA statements at the end of the 
program, one line corresponding to one period.  To alter the values, 
for example if you have more accurate data, edit the appropriate DATA 
statement and SAVE the program again.
%CO:B,12,66%%CO:C,12,54%




















Interpreted as

2xCu(OH)2 + 10xH2O + 4xHCl
Ni + 4xNH(CH3)2
%CO:D,12,42%%CO:E,12,30%%CO:F,18,18%

