Question
PYTHON: For example, if you measure the mass of the electron to be me se , and the known value is mke you should compare
PYTHON:
For example, if you measure the mass of the electron to be mese, and the known value is mke you should compare the |mkeme| to the uncertainty se. If the difference is smaller than your uncertainty you can reasonably state that the measurement agrees with the known value.
Write a function that takes your measurement with uncertainty, and the known value of a parameter, and returns True if they agree, and False if they dont.
Test your function on the following values, printing the result of each call to your function.
Measurement | Uncertainty | Known Value |
19.2 | 0.1 | 19.41 |
19.5 | 0.8 | 19.41 |
19.5 | 0.1 | 19.41 |
One common question when you make a new measurement of a known value is whether your measurement "agrees with the known value. If we assume the known value has no uncertainty (or much smaller uncertainty) the question can be answered by comparing the difference between your measurement and the known value, relative the the uncertainty in your measurement. For example, if you measure the mass of the electron to be me + Se, and the known value is mke you should compare the \mke mel to the uncertainty se. If the difference is smaller than your uncertainty you can reasonably state that the measurement agrees with the known value. Write a function that takes your measurement with uncertainty, and the known value of a parameter, and returns True if they agree, and False if they don't. Test your function on the following values, printing the result of each call to your function. Measurement Uncertainty Known Value 19.2 0.1 19.41 19.5 0.8 19.41 19.5 0.1 19.41
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started