Skip to content

Instantly share code, notes, and snippets.

@martintrojer
Last active December 18, 2015 23:19
Show Gist options
  • Save martintrojer/5861174 to your computer and use it in GitHub Desktop.
Save martintrojer/5861174 to your computer and use it in GitHub Desktop.
E=mc^2
// If you took the matter in a teaspoon of water, and converted that to energy,
// how many gallons of gasoline would you have to burn to get an equal amount of energy?
scala> 'teaspoon * 'water * ('c ** 2) to 'gallons * 'gasoline
res0: frins.NumberT = 3164209.862836101 [dimensionless]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment