Sha256: 37e55172af4a2fb085658b2de2823643d9fd3379383e620b606e1cd9d2729e0b

Contents?: true

Size: 697 Bytes

Versions: 15

Compression:

Stored size: 697 Bytes

Contents

require 'mspire/mass/util'
require 'mspire/mass/element'

module Mspire
  module Mass
    module Subatomic
      MONO_STRING = {
        'electron' => 0.0005486,   # www.mikeblaber.org/oldwine/chm1045/notes/Atoms/.../Atoms03.htm
        'neutron' => 1.0086649156,
      }
      MONO_STRING['proton'] = Mspire::Mass::Element[:H] - MONO_STRING['electron']
      MONO_STRING['H+'] = MONO_STRING['proton']
      MONO_STRING['e'] = MONO_STRING['electron']

      MONO_SYMBOL = Mspire::Mass::Util.symbol_keys( MONO_STRING )
      MONO = MONO_STRING.merge( MONO_SYMBOL )

      class << self
        def [](key)
          MONO[key]
        end
      end

      # 'h+' => 1.00727646677,
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
mspire-0.10.8.0 lib/mspire/mass/subatomic.rb
mspire-0.10.7.3 lib/mspire/mass/subatomic.rb
mspire-0.10.7.2 lib/mspire/mass/subatomic.rb
mspire-0.10.7.1 lib/mspire/mass/subatomic.rb
mspire-0.10.7 lib/mspire/mass/subatomic.rb
mspire-0.10.6 lib/mspire/mass/subatomic.rb
mspire-0.10.5 lib/mspire/mass/subatomic.rb
mspire-0.10.4 lib/mspire/mass/subatomic.rb
mspire-0.10.3 lib/mspire/mass/subatomic.rb
mspire-0.10.2 lib/mspire/mass/subatomic.rb
mspire-0.10.1 lib/mspire/mass/subatomic.rb
mspire-0.10.0 lib/mspire/mass/subatomic.rb
mspire-0.9.2 lib/mspire/mass/subatomic.rb
mspire-0.9.1 lib/mspire/mass/subatomic.rb
mspire-0.9.0 lib/mspire/mass/subatomic.rb