Sha256: 1290f4d6e7db605ad07727d57b8953728f9f427940e79f4f2aede71ff0125a14

Contents?: true

Size: 582 Bytes

Versions: 1

Compression:

Stored size: 582 Bytes

Contents

require 'mspire/mass/mass_provider'
require 'mspire/mass/element'

module Mspire
  module Mass
    module Subatomic
      extend MassProvider

      MONO_STRING = {
        'ELECTRON' => 0.0005486,   # www.mikeblaber.org/oldwine/chm1045/notes/Atoms/.../Atoms03.htm
        'NEUTRON' => 1.0086649156,
      }
      # 'h+' => 1.00727646677,
      MONO_STRING['PROTON'] = MONO_STRING['H_PLUS'] = MONO_STRING['H+'] = Mspire::Mass::Element::MONO_STRING['H'] - MONO_STRING['ELECTRON']
      MONO_STRING['E'] = MONO_STRING['ELECTRON']

      AVG_STRING = MONO_STRING.dup
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
mspire-mass-0.1.0 lib/mspire/mass/subatomic.rb