play phryzby with physics

Errors in a Product

solved Uncertainty

Q. How sure can we be of the product of a ± Δa and b ± Δb?

a = 16.2 ± 0.1b = 10.1 ± 0.1p = ab = ?Δp = ?δp = ?
Inputs
a
16.2
Δa
0.1
b
10.1
Δb
0.1
Outputs
productp163.6
relative error in productδp1.6%
error in productΔp2.63

How it's solved

Solved with Uncertainty

Given

  • a, Δa, b, Δb yours to vary

Find p, δp, Δp.

Working
  1. product of measurementsp=a⋅b
  2. p=16.2⋅10.1
  3. p=163.62
  4. first error over firstδa=Δaa
  5. δa=0.116.2
  6. δa=0.00617283951
  7. second error over secondδb=Δbb
  8. δb=0.110.1
  9. δb=0.0099009901
  10. relative errors addδp=δa+δb
  11. δp=0.00617283951+0.0099009901
  12. δp=1.6%
  13. error from relative errorΔp=δp⋅p
  14. Δp=0.0160738296⋅163.62
  15. Δp=2.63
Conclusion

No surer than what went into it: the relative errors add, δp = δa + δb. So the least precise of the measurements decides how precise the product can be.

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 :errors_in_a_product do4  describes "%{error} of the product of %{first} ± %{first_error} and %{second} ± %{second_error}?"5  given :first6  given :first_error7  given :second8  given :second_error9  asks error: "How sure can we be"10end
solution.rb
1require_relative "../questions/errors_in_a_product"2require_relative "../science/units_and_measurement/uncertainty"34solve :errors_in_a_product, using: Uncertainty do5  take first: :a, first_error: :Delta_a, second: :b, second_error: :Delta_b6  find_value :p7  find_value :delta_p8  take error: :Delta_p9  find_value :error1011  conclusion "No surer than what went into it: the relative errors add, δp = δa + δb. So the " \12             "least precise of the measurements decides how precise the product can be."13end
playground.rb
1require_relative "../solutions/errors_in_a_product"23play_with :errors_in_a_product do4  title "Errors in a Product"56  input :a,       1.0..50.0, step: 0.1,  default: 16.2, as: "first measurement"7  input :Delta_a, 0.0..2.0,  step: 0.01, default: 0.1,  as: "its error"8  input :b,       1.0..50.0, step: 0.1,  default: 10.1, as: "second measurement"9  input :Delta_b, 0.0..2.0,  step: 0.01, default: 0.1,  as: "its error"1011  output :p12  output :delta_p, in: "%"13  output :Delta_p14end
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