The SDL Component Suite is an industry leading collection of components supporting scientific and engineering computing. Please visit the SDL Web site for more information....



ChemAtWeight


Unit:SDL_cdata
Class:none
Declaration:function ChemAtWeight (AtNr: integer): double;

The function ChemAtWeight returns the chemical atomic weight (the average mass) for the atom with the atomic number AtNr. AtNr may take values between 1 and 103 (MaxChemElem), for any other values, ChemAtWeight returns 0.0.

Hint: Elements which don’t have any stable (or long living) isotopes are not occurring in nature. It is therefore meaningless to specify an average mass. For those elements (e.g. Tc) ChemAtWeight returns a zero value.

Example: The statement ChemAtWeight(17) returns the value 35.453000 (the average mass of chlorine).


Last Update: 2023-Feb-06