play phryzby with physics

An Umbrella in the Rain

solved Vectors

Q. Rain falls straight down at 35 m/sA=35m/s, and a wind then blows it sidewaysφ=90° at 12 m/sB=12m/s. At what angle from the vertical should you tilt your umbrella, in degrees?

A = 35B = 12Rφ = 90°β = ?
Inputs
A
35.0 m/s
B
12.0 m/s
Outputs
tiltβ?

How it's solved

Solved with Vectors

Given

  • A=35m/s
  • B=12m/s
  • φ=90° from “sideways”

Find β.

Working
  1. law of cosinesR2=A2+B2+2⋅A⋅B⋅cos⁡φ
  2. R2=352+122+2⋅35⋅12⋅cos⁡90°
  3. R=37
  4. law of sinesR⋅sin⁡β=B⋅sin⁡φ
  5. 37⋅sin⁡β=12⋅sin⁡90°
  6. β=18.92°
Conclusion

The rain arrives along the sum of its fall and the wind's push, and the umbrella should face along that sum, tilted into the wind.

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 :umbrella_in_the_rain do4  kind :numerical5  describes "Rain falls straight down at %{rain_speed}, and a wind then blows it sideways at %{wind_speed}. %{tilt}, in degrees?"6  given rain_speed: "35 m/s"7  given wind_speed: "12 m/s"8  asks tilt: "At what angle from the vertical should you tilt your umbrella"9end
solution.rb
1require_relative "../questions/umbrella_in_the_rain"2require_relative "../science/motion_in_a_plane/vectors"34solve :umbrella_in_the_rain, using: Vectors do5  take rain_speed: :A, wind_speed: :B6  deduce_from "sideways", phi: "90 deg"7  take tilt: :beta8  answer find_value(:tilt, in: "deg")910  conclusion "The rain arrives along the sum of its fall and the wind's push, and the umbrella " \11             "should face along that sum, tilted into the wind."12end
playground.rb
1require_relative "../solutions/umbrella_in_the_rain"23play_with :umbrella_in_the_rain do4  title "An Umbrella in the Rain"5end
The laws it drew on
quantitywrittenunitswithinfrom
volumevolume——Vectors
massmass——Vectors
speedspeed——Vectors
densitydensity——Vectors
number of molesn——Vectors
angular frequencyangularfrequency——Vectors
workwork——Vectors
currentcurrent——Vectors
temperaturetemperature——Vectors
pressurepressure——Vectors
timetime——Vectors
powerpower——Vectors
total path lengths——Vectors
energyenergy——Vectors
gravitational potentialgravitationalpotential——Vectors
coefficient of frictionμ——Vectors
chargecharge——Vectors
accelerationacceleration——Vectors
velocityvelocity——Vectors
displacementdisplacement——Vectors
angular velocityangularvelocity——Vectors
forceforce——Vectors
angular momentumangularmomentum——Vectors
linear momentumplin——Vectors
electric fieldelectricfield——Vectors
average velocityaveragevelocity——Vectors
magnetic momentmagneticmoment——Vectors
relative velocityvAB——Vectors
impulseimpulse——Vectors
first vectorA—0 … ∞Vectors
second vectorB—0 … ∞Vectors
angle betweenφ—0 … 3.142Vectors
resultantR—0 … ∞Vectors
resultant directionβ—0 … 3.142Vectors
directionα—-3.142 … 3.142Vectors
x componentAx——Vectors
y componentAy——Vectors
A=Ax2+Ay2
magnitude from components
R2=A2+B2+2⋅A⋅B⋅cos⁡φ
law of cosines
R⋅sin⁡β=B⋅sin⁡φ
law of sines
R⋅cos⁡β=A+B⋅cos⁡φ
along the first
Ax=A⋅cos⁡α
resolved along x
Ay=A⋅sin⁡α
resolved along y