The Energy in a Gram
Q. What is the energy equivalent of 1 gg of substance, in joules?
Inputs
Outputs
energy?
How it's solved
Solved with MassEnergy
Given
- g
Find .
Working
- gkg
- einsteins mass energy(substance)
- J
- Jto 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.
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"8end1require_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."13endplayground.rb
1require_relative "../solutions/the_energy_in_a_gram"23play_with :the_energy_in_a_gram do4 title "The Energy in a Gram"5endThe laws it drew on
| quantity | written | units | within | from |
|---|---|---|---|---|
| speed of light | m/s | — | MassEnergy | |
| hydrogen atom mass | kg | — | MassEnergy | |
| neutron mass | kg | — | MassEnergy | |
| mass | kg | 0 … ∞ | MassEnergy | |
| energy | J | — | MassEnergy | |
| atomic number | — | — | MassEnergy | |
| mass number | — | 0 … ∞ | MassEnergy | |
| mass defect | kg | — | MassEnergy | |
| binding energy | J | — | MassEnergy | |
| q value | J | — | MassEnergy | |
| energy of ground | J | — | ||
| mass of ground | kg | 0 … ∞ | ||
| energy of substance | J | — | ||
| mass of substance | kg | 0 … ∞ | ||
| mass defect of ground | kg | — | ||
| atomic number of ground | — | — | ||
| mass number of ground | — | 0 … ∞ | ||
| mass defect of substance | kg | — | ||
| atomic number of substance | — | — | ||
| mass number of substance | — | 0 … ∞ | ||
| binding energy of ground | J | — | ||
| binding energy of substance | J | — | ||
| q value of ground | J | — | ||
| q value of substance | J | — |