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