play phryzby with physics

The Two Scalars

solved Vectors

Q. Which two of these are scalars?

Select all that apply.

How it's solved

Solved with Vectors

Working
  1. force: a vector, it has a direction
  2. angular momentum: a vector, it has a direction
  3. work: a scalar, a size alone
  4. current: a scalar, a size alone
  5. linear momentum: a vector, it has a direction
  6. electric field: a vector, it has a direction
  7. average velocity: a vector, it has a direction
  8. magnetic moment: a vector, it has a direction
  9. relative velocity: a vector, it has a direction
Conclusion

Work is an amount of energy handed over, with no direction of its own. Current flows along a wire, but it adds like a number, not like arrows, so it is a scalar too.

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 :the_two_scalars do4  kind :mcq5  describes "Which two of these are scalars?"67  option "force"8  option "angular momentum"9  option "work"10  option "current"11  option "linear momentum"12  option "electric field"13  option "average velocity"14  option "magnetic moment"15  option "relative velocity"16end
solution.rb
1require_relative "../questions/the_two_scalars"2require_relative "../science/motion_in_a_plane/vectors"34solve :the_two_scalars, using: Vectors do5  answer options.select { |o| o.content.to_quantity.scalar? }67  conclusion "Work is an amount of energy handed over, with no direction of its own. Current " \8             "flows along a wire, but it adds like a number, not like arrows, so it is a scalar " \9             "too."10end
playground.rb
1require_relative "../solutions/the_two_scalars"23play_with :the_two_scalars do4  title "The Two Scalars"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