play phryzby with physics

Two Nuggets Apart

solved Uncertainty

Q. The two gold nuggets weigh 20.17 ga=20.17g and 20.15 gb=20.15g. How many grams heavier is the one than the other?

a = 0.02017b = 0.02015a − b = ?
Inputs
a
20.17 g
b
20.15 g
Outputs
differenced?

How it's solved

Solved with Uncertainty

Given

  • a=20.17g
  • b=20.15g

Find d.

Working
  1. a=20.17g=0.02017kg
  2. b=20.15g=0.02015kg
  3. difference of measurementsd=a-b
  4. d=0.02017-0.02015
  5. d=0.02g
  6. d=2×10−5kg=0.02g
  7. d≈0.02gto 1 significant figure
Conclusion

A difference keeps the decimal places of what went into it, not its figures: close numbers taken apart lose most of their significant figures.

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 :two_nuggets_apart do4  kind :numerical5  describes "The two gold nuggets weigh %{heavier} and %{lighter}. %{difference}?"6  given heavier: "20.17 g"7  given lighter: "20.15 g"8  asks difference: "How many grams heavier is the one than the other"9end
solution.rb
1require_relative "../questions/two_nuggets_apart"2require_relative "../science/units_and_measurement/uncertainty"34solve :two_nuggets_apart, using: Uncertainty do5  take heavier: :a, lighter: :b6  take difference: :d7  answer find_value(:difference, in: "g", figures: 1)89  conclusion "A difference keeps the decimal places of what went into it, not its figures: close " \10             "numbers taken apart lose most of their significant figures."11end
playground.rb
1require_relative "../solutions/two_nuggets_apart"23play_with :two_nuggets_apart do4  title "Two Nuggets Apart"5end
The laws it drew on
quantitywrittenunitswithinfrom
first measureda——Uncertainty
error in firstΔa——Uncertainty
relative error in firstδa——Uncertainty
second measuredb——Uncertainty
error in secondΔb——Uncertainty
relative error in secondδb——Uncertainty
productp——Uncertainty
error in productΔp——Uncertainty
relative error in productδp——Uncertainty
totalt——Uncertainty
differenced——Uncertainty
least countlcm—Uncertainty
scale divisiondmm—Uncertainty
divisions read pastNd——Uncertainty
δa=Δaa
first error over first
δb=Δbb
second error over second
p=a⋅b
product of measurements
δp=δa+δb
relative errors add
Δp=δp⋅p
error from relative error
t=a+b
sum of measurements
d=a-b
difference of measurements
lc=dmNd
division shared out