home *** CD-ROM | disk | FTP | other *** search
/ Troubleshooting Netware Systems / CSTRIAL0196.BIN / attach / pcc / v08n06 / chemist.exe / MOLARMAS.EXE / MOLARMAS.TXT < prev   
Text File  |  1994-12-19  |  5KB  |  115 lines

  1.                              MolarMas
  2.  
  3. (To view this file in Windows, use Write with conversion.  Notepad
  4. shows funny characters.)
  5.  
  6. This free program determines the molar mass and percent composition
  7. from a formula.  Features:
  8.  
  9.       ∙  Uncertainties in values are displayed.  These are
  10.          calculated from a "propagation of errors" analysis
  11.          using the published uncertainties in the masses of the
  12.          elements.
  13.       
  14.       ∙  Few keystrokes are needed.  Symbols can be in uppercase, 
  15.          lowercase, or both.  The actual keystrokes used to enter 
  16.          sulfuric acid are "h2s ENTER o4 ENTER".  Symbols not separated 
  17.          by numbers are separated by pressing the ENTER key.  
  18.          NOTE:  The final ENTER must be pressed, or else the last 
  19.          symbol or number entered will only be displayed, but not 
  20.          used in the calculation.
  21.       
  22.       ∙  Handles enormous molecules.  Over 100,000,000 atoms of each 
  23.          of 30 different elements, amino acids, and
  24.          functional groups can be present.  Common abbreviations
  25.          that are recognized include Me (CH3), Et (C2H5),
  26.          Ph (C6H5), cp (C5H5), and Gly (glycine, -C(O)CH2NH-).
  27.       
  28.       ∙  Results can be printed.
  29.  
  30.       ∙  Other features:  A mouse is supported.  Press Escape to replace
  31.          a field with the previous entry.  Control/Insert and Shift/Insert
  32.          copy and paste selected text to a Windows-like clipboard.
  33.  
  34.  
  35. OTHER FILES
  36.  
  37. MOLARMAS.ICO is an icon for Windows.  To add MolarMas to Windows, 
  38.      Drag molarmas.exe from file manager onto program manager.
  39.         It is given a default icon.  
  40.      To change the icon, from program manager select File, Properties..., 
  41.         Change Icon..., OK, Browse, and select MOLARMAS.ICO from the 
  42.         appropriate directory.
  43.         
  44. MMSOURCE.ZIP contains the source code, written using visual basic for
  45. DOS.  Unless you are interested in modifying the code and have VB, you 
  46. might as well delete the file.
  47.  
  48.  
  49. DISTINGUISHED FLUORINE
  50.  
  51. So you enter F2 and get these results:
  52.     Element  Number  % Composition   Atomic Mass
  53.     _______  ______  _____________   ___________
  54.       F      2          100           18.9984032(9)
  55.  
  56.                       Molar Mass:     37.996806(2)
  57.  
  58. Fine, no problem.
  59.  
  60. Now you enter F1F1 and get these results:
  61.     Element  Number  % Composition   Atomic Mass
  62.     _______  ______  _____________   ___________
  63.       F      1        50.000000(3)    18.9984032(9)
  64.       F      1        50.000000(3)    18.9984032(9)
  65.  
  66.                       Molar Mass:     37.996806(1)
  67.  
  68. How come the uncertainty in the molar mass is .000001 for F1F1,
  69. and .000002 for F2?  The reason is that the fluorine atoms in
  70. F1F1 are distinguishable, and indistinguishable in F2.  That is,
  71. you can tell one F from the other in F1F1.  The bottom line is
  72. that the uncertainty in the molar mass is less if you introduce
  73. the fiction that you can tell one F from another.  Or one carbon
  74. from another.  As when you enter toluene as Ph1Me1 instead of
  75. C7H8.  In short, any time abbreviations are combined that contain
  76. the same atoms, such as Ala2Gly1, the calculated uncertainties
  77. will be low.  
  78.  
  79. Sometimes atoms are distinguishable.  For example, to determine 
  80. just the C bonded to O in CH3CO2H, you might decompose the 
  81. compound and collecting CO2.  To get the uncertainty in percent 
  82. C as CO2 in the compound, enter the formula as C1C1H4O2 instead 
  83. of C2H4O2.
  84.  
  85.  
  86. THE MATH
  87.  
  88. Molar mass is of the form w = ax + by + cz + ...  For CH4, this is
  89.                    16.04276 = 1 * 12.011 + 4 * 1.00794
  90. Standard deviation of molar mass, s, depends on standard deviation 
  91. of x, s(x), and y, s(y) as follows:
  92.           s = square root [a²s(x)² + b²s(y)²]
  93. That is, s equals the square root of a-squared times s(x) squared
  94. plus b-squared times s(y) squared.  Uncertainties for C and H are
  95. .001 and .00001, giving an uncertainty in CH4 of
  96.           s = square root [1*1*.001*.001 + 4*4*.00001*.00001]
  97.             = .0010007
  98. So the mass of CH4 is given as 16.043(1).
  99.  
  100. Standard deviation of percent composition, s(%), is given by:
  101.          s(%) = percent * square root[(s(x)/a)² + (s/molar mass)²]
  102. The uncertainty in percent carbon in methane, then, is given by:
  103.          s(%) = 74.868663 * square root[(.001/12.001)² + (.0010007/16.043)²]
  104.               = .00779
  105. So the % C in CH4 is reported as 74.869(8)
  106.  
  107.      
  108. Holler if you find a bug, or have a suggestion.
  109.  
  110.      Christopher King
  111.      Department of Chemistry
  112.      Eastern Oregon State College
  113.      La Grande, OR 97850-2899
  114.      cking@eosc.osshe.edu
  115.