Heading across the Current
Q. A motorboat heads north at 25 km/hkm/h through a current that flows at 10 km/hkm/h toward 60° east of south. How many degrees east of north does it actually move?
Inputs
Outputs
heading?
How it's solved
Solved with Vectors
Given
- km/h
- km/h
- from “toward 60° east of south”
Find .
Working
- km/hm/s
- km/hm/s
- law of cosines
- law of sines
Conclusion
The current pushes the boat eastward as well as slowing it, so its true course turns off north toward the east.
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 :heading_across_the_current do4 kind :numerical5 describes "A motorboat heads north at %{boat_speed} through a current that flows at %{current_speed} toward 60° east of south. %{heading}?"6 given boat_speed: "25 km/h"7 given current_speed: "10 km/h"8 asks heading: "How many degrees east of north does it actually move"9end1require_relative "../questions/heading_across_the_current"2require_relative "../science/motion_in_a_plane/vectors"34solve :heading_across_the_current, using: Vectors do5 take boat_speed: :A, current_speed: :B6 deduce_from "toward 60° east of south", phi: "120 deg"7 take heading: :beta8 answer find_value(:heading, in: "deg")910 conclusion "The current pushes the boat eastward as well as slowing it, so its true course " \11 "turns off north toward the east."12endplayground.rb
1require_relative "../solutions/heading_across_the_current"23play_with :heading_across_the_current do4 title "Heading across the Current"5endThe laws it drew on
| quantity | written | units | within | from |
|---|---|---|---|---|
| volume | — | — | Vectors | |
| mass | — | — | Vectors | |
| speed | — | — | Vectors | |
| density | — | — | Vectors | |
| number of moles | — | — | Vectors | |
| angular frequency | — | — | Vectors | |
| work | — | — | Vectors | |
| current | — | — | Vectors | |
| temperature | — | — | Vectors | |
| pressure | — | — | Vectors | |
| time | — | — | Vectors | |
| power | — | — | Vectors | |
| total path length | — | — | Vectors | |
| energy | — | — | Vectors | |
| gravitational potential | — | — | Vectors | |
| coefficient of friction | — | — | Vectors | |
| charge | — | — | Vectors | |
| acceleration | — | — | Vectors | |
| velocity | — | — | Vectors | |
| displacement | — | — | Vectors | |
| angular velocity | — | — | Vectors | |
| force | — | — | Vectors | |
| angular momentum | — | — | Vectors | |
| linear momentum | — | — | Vectors | |
| electric field | — | — | Vectors | |
| average velocity | — | — | Vectors | |
| magnetic moment | — | — | Vectors | |
| relative velocity | — | — | Vectors | |
| impulse | — | — | Vectors | |
| first vector | — | 0 … ∞ | Vectors | |
| second vector | — | 0 … ∞ | Vectors | |
| angle between | — | 0 … 3.142 | Vectors | |
| resultant | — | 0 … ∞ | Vectors | |
| resultant direction | — | 0 … 3.142 | Vectors | |
| direction | — | -3.142 … 3.142 | Vectors | |
| x component | — | — | Vectors | |
| y component | — | — | Vectors |