play phryzby with physics

Weighing the Earth by Its Pull

solved UniversalGravitation

Q. Weighing the Earth: you are given g = 9.81 m/s²gs=9.81m/s² at the Earth's surface and the Earth's radius 6.37 × 10⁶ mR=6.37×106m. What is the mass of the Earth, in kg?

earthM = ?R = 6.37×10⁶ mg = 9.81 m/s²
Inputs
gs
9.81 m/s²
R
6370000.00 m
Outputs
massm?

How it's solved

Solved with UniversalGravitation

Given

  • gs=9.81m/s²
  • R=6.37×106m

Find m.

Working
  1. gravity at the surface(earth)gs=G⋅mR2
  2. 9.81=6.674×10−11⋅m(6.37×106)2
  3. m=5.964×1024kg
  4. m≈5.96×1024kgto 3 significant figures
Conclusion

How hard the Earth pulls at its surface depends only on its mass and how far the surface is from its centre, so the pull and the radius give the mass.

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 :weighing_the_earth_by_its_pull do4  kind :numerical5  describes "Weighing the Earth: you are given g = %{gravity} at the Earth's surface and the Earth's radius " \6            "%{radius}. %{mass}, in kg?"7  given gravity: "9.81 m/s2"8  given radius: "6.37e6 m"9  asks mass: "What is the mass of the Earth"10end
solution.rb
1require_relative "../questions/weighing_the_earth_by_its_pull"2require_relative "../science/gravitation/universal_gravitation"34solve :weighing_the_earth_by_its_pull, using: UniversalGravitation do5  objects :earth67  take gravity: earth.surface_gravity8  take radius: earth.radius_of_the_body910  mass = earth.mass11  answer mass:, in: "kg", figures: 31213  conclusion "How hard the Earth pulls at its surface depends only on its mass and how far the surface " \14             "is from its centre, so the pull and the radius give the mass."15end
playground.rb
1require_relative "../solutions/weighing_the_earth_by_its_pull"23play_with :weighing_the_earth_by_its_pull do4  title "Weighing the Earth by Its Pull"5end
The laws it drew on
quantitywrittenunitswithinfrom
gravitational constantGN m² kg⁻²—UniversalGravitation
massmkg0 … ∞UniversalGravitation
radius of the bodyRm0 … ∞UniversalGravitation
surface gravitygsm/s²—UniversalGravitation
separationrgm0 … ∞UniversalGravitation
gravitational intensityEgm/s²—UniversalGravitation
surface gravity of groundgs,gm/s²—
mass of groundmgkg0 … ∞
radius of the body of groundRgm0 … ∞
surface gravity of earthgsm/s²—
mass of earthmkg0 … ∞
radius of the body of earthRm0 … ∞
gravitational intensity of ground by earthEg,gm/s²—
separation of ground from earthrg,gm0 … ∞
gravitational intensity of earth by groundEg,gm/s²—
separation of earth from groundrgm0 … ∞
gs,b=G⋅mbRb2
gravity at the surface
Eg,oo=G⋅morg,oo2
law of gravitation
gs,g=G⋅mgRg2
gravity at the surface(ground)
gs=G⋅mR2
gravity at the surface(earth)
Eg,g=G⋅mrg,g2
law of gravitation(ground, earth)
Eg,g=G⋅mgrg2
law of gravitation(earth, ground)