play phryzby with physics

Weighing the Sun by the Earth

solved EarthSatellites

Q. How will you 'weigh the sunms=Mo', that is estimate its mass? The mean orbital radius of the earth around the sunT=1y is 1.5 × 10⁸ kmro=1.5×108km. What is the mass of the sun, in kg?

Mvrr = 1.5×10¹¹ mvT = 3.16×10⁷ sk
Inputs
ro
1.5e+08 km
Outputs
massms?

How it's solved

Solved with EarthSatellites

Given

  • ro=1.5×108km
  • T=1y from “the earth around the sun”
  • ms=Mo from “weigh the sun”

Find ms.

Working
  1. ro=1.5×108km=1.5×1011m
  2. T=1y=3.15576×107s
  3. once round a period(year)ωe=2⋅πT
  4. ωe=2⋅3.141592653.15576×107
  5. ωe=1.99102128×10−7rad/s
  6. speed round the circle(year)ve=ωe⋅ro
  7. ve=1.99102128×10−7⋅1.5×1011
  8. ve=29865.3192m/s
  9. held in orbit by gravity(year)ve2=G⋅Moro
  10. 29865.31922=6.674×10−11⋅Mo1.5×1011
  11. Mo=2.00465378×1030kg
  12. weigh the sunms=Mo
  13. ms=2.00465378×1030
  14. ms=2.005×1030kg
  15. ms≈2.0×1030kgto 2 significant figures
Conclusion

The sun's pull keeps the earth going round once a year, so Kepler's law of periods for the earth's orbit holds the sun's 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_sun_by_the_earth do4  kind :numerical5  describes "How will you 'weigh the sun', that is estimate its mass? The mean orbital radius of the earth around " \6            "the sun is %{radius}. %{mass}, in kg?"7  given radius: "1.5e8 km"8  asks mass: "What is the mass of the sun"9end
solution.rb
1require_relative "../questions/weighing_the_sun_by_the_earth"2require_relative "../science/gravitation/earth_satellites"34solve :weighing_the_sun_by_the_earth, using: EarthSatellites do5  objects :earth, :sun6  paths :orbit7  earth.goes(:year, on: orbit)89  take radius: orbit.radius1011  deduce_from "the earth around the sun", year.period => "1 y"12  deduce_from "weigh the sun", sun.mass => orbit.central_mass1314  mass = sun.mass15  answer mass:, in: "kg", figures: 21617  conclusion "The sun's pull keeps the earth going round once a year, so Kepler's law of periods for the " \18             "earth's orbit holds the sun's mass."19end
playground.rb
1require_relative "../solutions/weighing_the_sun_by_the_earth"23play_with :weighing_the_sun_by_the_earth do4  title "Weighing the Sun by the Earth"5end
The laws it drew on
quantitywrittenunitswithinfrom
piπ—0 … ∞UniformCircularMotion
gravitational constantGN m² kg⁻²—UniversalGravitation
massmkg0 … ∞UniversalGravitation
radius of the bodyRm0 … ∞UniversalGravitation
surface gravitygsm/s²—UniversalGravitation
separationrgm0 … ∞UniversalGravitation
gravitational intensityEgm/s²—UniversalGravitation
positionxm—Velocity
displacementΔxm—Velocity
path lengthdm—Velocity
time takenΔts0 … 1e+05Velocity
average velocityvavm/s—Velocity
average speedcavm/s—Velocity
starting positionx0m—Velocity
final positionxm—Velocity
radiusrm0 … ∞UniformCircularMotion
speedvm/s0 … ∞UniformCircularMotion
angular speedωrad/s—UniformCircularMotion
revolutionsnrev——UniformCircularMotion
frequencyνHz0 … ∞UniformCircularMotion
centripetal accelerationacm/s²—UniformCircularMotion
against gravityq——UniformCircularMotion
periodTs0 … ∞UniformCircularMotion
gravitygm/s²—UniformCircularMotion
centripetal forceFcN—UniformCircularMotion
central massMkg—EarthSatellites
central radiusRcm—EarthSatellites
height of the orbithm—EarthSatellites
keplers constantkKs²/m³—EarthSatellites
binding energyEbJ—EarthSatellites
displacement of earth during yearΔxem—
position of earth at end of yearx1,em—
position of earth at start of yearx0,em—
average velocity of earth during yearvav,em/s—
time taken of yearΔts0 … 1e+05
average speed of earth during yearcav,em/s—
path length of earth during yeardem—
speed of earth during yearvem/s0 … ∞
angular speed of earth during yearωerad/s—
radius of orbitrom0 … ∞
period of yearTs0 … ∞
frequency of earth during yearνeHz0 … ∞
revolutions of earth during yearnrev,e——
centripetal acceleration of earth during yearac,em/s²—
against gravity of earth during yearqe——
centripetal force on earth during yearFc,eN—
mass of earthmekg0 … ∞
central mass of orbitMokg—
keplers constant of orbitkK,os²/m³—
central radius of orbitRc,om—
height of the orbit of orbithom—
binding energy of earth during yearEb,eJ—
surface gravity of groundgs,gm/s²—
mass of groundmgkg0 … ∞
radius of the body of groundRgm0 … ∞
surface gravity of earthgs,em/s²—
radius of the body of earthRem0 … ∞
surface gravity of sungs,sm/s²—
mass of sunmskg0 … ∞
radius of the body of sunRsm0 … ∞
gravitational intensity of ground by earthEg,gem/s²—
separation of ground from earthrg,gem0 … ∞
gravitational intensity of ground by sunEg,gsm/s²—
separation of ground from sunrg,gsm0 … ∞
gravitational intensity of earth by groundEg,egm/s²—
separation of earth from groundrg,em0 … ∞
gravitational intensity of earth by sunEg,esm/s²—
separation of earth from sunrg,esm0 … ∞
gravitational intensity of sun by groundEg,sgm/s²—
separation of sun from groundrg,sm0 … ∞
gravitational intensity of sun by earthEg,sem/s²—
separation of sun from earthrg,sem0 … ∞
x0≡xi(start of motion)
starting position
x≡xi(end of motion)
final position
gs,b=G⋅mbRb2
gravity at the surface
Eg,oo=G⋅morg,oo2
law of gravitation
di(whole)=di(part 1)+di(part 2)
path in parts
Δtw=Δtp+Δtp
time in parts
Δxe=x1,e-x0,e
change of position(year)
vav,e=ΔxeΔt
displacement a time(year)
cav,e=deΔt
path a time(year)
ve=ωe⋅ro
speed round the circle(year)
ωe=2⋅πT
once round a period(year)
νe=1T
rounds a second(year)
νe=nrev,eΔt
rounds over the time(year)
ac,e=ve2ro
towards the centre(year)
qe=ac,eg
measured in gs(year)
Fc,e=me⋅ac,e
mass times the turning(year)
ve2=G⋅Moro
held in orbit by gravity(year)
kK,o=4⋅π2G⋅Mo
keplers constant of an orbit(year)
T2=kK,o⋅ro3
law of periods(year)
ro=Rc,o+ho
orbit radius from the centre(year)
Eb,e=G⋅Mo⋅me2⋅ro
binding energy of an orbit(year)
gs,g=G⋅mgRg2
gravity at the surface(ground)
gs,e=G⋅meRe2
gravity at the surface(earth)
gs,s=G⋅msRs2
gravity at the surface(sun)
Eg,ge=G⋅merg,ge2
law of gravitation(ground, earth)
Eg,gs=G⋅msrg,gs2
law of gravitation(ground, sun)
Eg,eg=G⋅mgrg,e2
law of gravitation(earth, ground)
Eg,es=G⋅msrg,es2
law of gravitation(earth, sun)
Eg,sg=G⋅mgrg,s2
law of gravitation(sun, ground)
Eg,se=G⋅merg,se2
law of gravitation(sun, earth)
ms=Mo
weigh the sun