play phryzby with physics

The Energy in a Gram

solved MassEnergy

Q. What is the energy equivalent of 1 gm=1g of substance, in joules?

substancem = 1×10⁻³ kgE = mc²E = ?
Inputs
m
1 g
Outputs
energyE?

How it's solved

Solved with MassEnergy

Given

  • m=1g

Find E.

Working
  1. m=1g=0.001kg
  2. einsteins mass energy(substance)E=m⋅c2
  3. E=0.001⋅(2.99792458×108)2
  4. E=8.988×1013J
  5. E≈9.0×1013Jto 2 significant figures
Conclusion

Mass is energy, at the exchange rate of the speed of light squared; a gram holds as much as a large city uses in a day or more.

The web of concepts

given read from the words equation asked

The Ruby that solves it

The question and its solution are small Ruby files. The engine runs them.

question.rb
1require_relative "../physics"23question :the_energy_in_a_gram do4  kind :numerical5  describes "%{energy} of %{mass} of substance, in joules?"6  given mass: "1 g"7  asks energy: "What is the energy equivalent"8end
solution.rb
1require_relative "../questions/the_energy_in_a_gram"2require_relative "../science/nuclei/mass_energy"34solve :the_energy_in_a_gram, using: MassEnergy do5  objects :substance6  take mass: substance.mass78  energy = substance.energy9  answer energy:, in: "J", figures: 21011  conclusion "Mass is energy, at the exchange rate of the speed of light squared; a gram holds as much as " \12             "a large city uses in a day or more."13end
playground.rb
1require_relative "../solutions/the_energy_in_a_gram"23play_with :the_energy_in_a_gram do4  title "The Energy in a Gram"5end
The laws it drew on
quantitywrittenunitswithinfrom
speed of lightcm/s—MassEnergy
hydrogen atom massmHkg—MassEnergy
neutron massmnkg—MassEnergy
massmkg0 … ∞MassEnergy
energyEJ—MassEnergy
atomic numberZ——MassEnergy
mass numberA—0 … ∞MassEnergy
mass defectdmkg—MassEnergy
binding energyEbJ—MassEnergy
q valueQJ—MassEnergy
energy of groundEgJ—
mass of groundmgkg0 … ∞
energy of substanceEJ—
mass of substancemkg0 … ∞
mass defect of grounddmgkg—
atomic number of groundZg——
mass number of groundAg—0 … ∞
mass defect of substancedmkg—
atomic number of substanceZ——
mass number of substanceA—0 … ∞
binding energy of groundEb,gJ—
binding energy of substanceEbJ—
q value of groundQgJ—
q value of substanceQJ—
Eb=mb⋅c2
einsteins mass energy
dmn=Zn⋅mH+(An-Zn)⋅mn-mn
mass lost in binding
Eb,n=dmn⋅c2
energy of the lost mass
Qr=dmr⋅c2
energy a reaction gives out
Eg=mg⋅c2
einsteins mass energy(ground)
E=m⋅c2
einsteins mass energy(substance)
dmg=Zg⋅mH+(Ag-Zg)⋅mn-mg
mass lost in binding(ground)
dm=Z⋅mH+(A-Z)⋅mn-m
mass lost in binding(substance)
Eb,g=dmg⋅c2
energy of the lost mass(ground)
Eb=dm⋅c2
energy of the lost mass(substance)
Qg=dmg⋅c2
energy a reaction gives out(ground)
Q=dm⋅c2
energy a reaction gives out(substance)