- #1
Juanda
Gold Member
- 434
- 141
- TL;DR Summary
- Measuring the height using trigonometry is possible and simple. Finding the optimal distance to do it is causing me more trouble.
I like optimization problems a lot because they apply math to make the right decisions. However, I often come up with problems that are too hard for me to solve. Hopefully, this one will be simple but interesting enough for someone here to help me to crack it.
Imagine there is a building or similar thing that you want to measure. It's inaccessible or too tall to measure it directly so we'll use trigonometry because measuring the number of steps from it and the angle with a protractor is simpler.
To find the height it's possible to use the following formula.
$$h=d\tan(\alpha)$$.
However, this is not the ideal world. We want to achieve an accurate measurement and there is some uncertainty attached to all the values we take from the real world.
For the angle, we will assume a constant uncertainty.
$$\alpha = \alpha_{avg} \pm \alpha_{unc}$$ where $$\alpha_{unc}=0.001 \rightarrow \alpha=\alpha_{avg} \pm 0.001$$.
On the other hand, for the distance, the uncertainty will be a function of the distance itself since measuring longer distances is harder.
$$d=d_{avg} \pm d_{unc}$$ where $$d_{unc}=d_{avg}*0.1 \rightarrow d=d_{avg} \pm d_{avg}*0.1 =d_{avg} (1 \pm 0.1)$$.
In conclusion, the measured height will be
$$h=d_{avg} (1 \pm 0.1)\tan(\alpha_{avg} \pm 0.001)$$.
I'm trying to understand what will be the ideal distance to walk from the building to take the measurements. That is, obtaining the result ##h## with the smallest uncertainty.
I could take a couple of steps and measure a big angle or take thousands of steps and measure a small angle. In an ideal world, both resulting values of ##h## will be exactly the same. Here where uncertainty is introduced it's a different story.
Observing the behavior of ##tan(\alpha)## it seems it is convenient to walk far away from the building so the measured angle will be small. This is relevant because the slope of the function is smaller for small angles so errors in the measurement won't translate into big errors in the result.
However, walking a lot from the building increases the uncertainty in the measurement of ##d##. There must be a sweet spot where the total uncertainty of the resulting ##h## is minimized. I just have not been able to find it yet.
This is as far as I have gotten. Do you know how to continue?
By the way, I'm OK accepting more realistic definitions for ##\alpha_{unc}##. I just thought the problem was complex enough and the assumptions I made felt valid if the extremes are ignored.
Thanks in advance.
Imagine there is a building or similar thing that you want to measure. It's inaccessible or too tall to measure it directly so we'll use trigonometry because measuring the number of steps from it and the angle with a protractor is simpler.
To find the height it's possible to use the following formula.
$$h=d\tan(\alpha)$$.
However, this is not the ideal world. We want to achieve an accurate measurement and there is some uncertainty attached to all the values we take from the real world.
For the angle, we will assume a constant uncertainty.
$$\alpha = \alpha_{avg} \pm \alpha_{unc}$$ where $$\alpha_{unc}=0.001 \rightarrow \alpha=\alpha_{avg} \pm 0.001$$.
On the other hand, for the distance, the uncertainty will be a function of the distance itself since measuring longer distances is harder.
$$d=d_{avg} \pm d_{unc}$$ where $$d_{unc}=d_{avg}*0.1 \rightarrow d=d_{avg} \pm d_{avg}*0.1 =d_{avg} (1 \pm 0.1)$$.
In conclusion, the measured height will be
$$h=d_{avg} (1 \pm 0.1)\tan(\alpha_{avg} \pm 0.001)$$.
I'm trying to understand what will be the ideal distance to walk from the building to take the measurements. That is, obtaining the result ##h## with the smallest uncertainty.
I could take a couple of steps and measure a big angle or take thousands of steps and measure a small angle. In an ideal world, both resulting values of ##h## will be exactly the same. Here where uncertainty is introduced it's a different story.
Observing the behavior of ##tan(\alpha)## it seems it is convenient to walk far away from the building so the measured angle will be small. This is relevant because the slope of the function is smaller for small angles so errors in the measurement won't translate into big errors in the result.
However, walking a lot from the building increases the uncertainty in the measurement of ##d##. There must be a sweet spot where the total uncertainty of the resulting ##h## is minimized. I just have not been able to find it yet.
This is as far as I have gotten. Do you know how to continue?
By the way, I'm OK accepting more realistic definitions for ##\alpha_{unc}##. I just thought the problem was complex enough and the assumptions I made felt valid if the extremes are ignored.
Thanks in advance.