play phryzby with physics

A Box and Two Nuggets

solved Uncertainty

Q. A box weighs 2.3 kga=2.3kg. Two gold nuggets of 20.15 g and 20.17 g, together 0.04032 kgb=0.04032kg, are put into it. What does the box weigh now, in kilograms, to the right figures?

a = 2.3b = 0.04032a + b = ?
Inputs
a
2.3 kg
b
0.04032 kg
Outputs
weightt?

How it's solved

Solved with Uncertainty

Given

  • a=2.3kg
  • b=0.04032kg

Find t.

Working
  1. sum of measurementst=a+b
  2. t=2.3+0.04032
  3. t=2.34032
  4. t≈2.3to 2 significant figures
Conclusion

A sum can be no more exact than its roughest part. It keeps the fewest decimal places of what went into it, and here the gold is lost in the roughness of the box's weighing.

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 :a_box_and_two_nuggets do4  kind :numerical5  describes "A box weighs %{box}. Two gold nuggets of 20.15 g and 20.17 g, together %{nuggets}, are " \6          "put into it. %{weight}, in kilograms, to the right figures?"7  given box: "2.3 kg"8  given nuggets: "0.04032 kg"9  asks weight: "What does the box weigh now"10end
solution.rb
1require_relative "../questions/a_box_and_two_nuggets"2require_relative "../science/units_and_measurement/uncertainty"34solve :a_box_and_two_nuggets, using: Uncertainty do5  take box: :a, nuggets: :b6  take weight: :t7  answer find_value(:weight, figures: 2)89  conclusion "A sum can be no more exact than its roughest part. It keeps the fewest decimal " \10             "places of what went into it, and here the gold is lost in the roughness of the box's " \11             "weighing."12end
playground.rb
1require_relative "../solutions/a_box_and_two_nuggets"23play_with :a_box_and_two_nuggets do4  title "A Box and Two Nuggets"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