Assume I want to compute one of the angles of a right triangle doing n measurements of the sides wit

Ryan Robertson

Ryan Robertson

Answered question

2022-07-16

Assume I want to compute one of the angles of a right triangle doing n measurements of the sides with a ruler. In order to increase the precision I make several measurements. After that I compute tan θ for each of the measurements:
tan ( i ) θ = opposite side ( i ) adjacent side ( i )
where (i) denotes the number of the measurement.
Which formulae out of two for computing the average would be more precise?
θ 1 = tan 1 ( 1 n i tan ( i ) θ )
θ 2 = 1 n i tan 1 ( tan ( i ) θ )
Assume I have a computer which will be doing the tan−1 calculation. I am really interested in the proof as well.

Answer & Explanation

sniokd

sniokd

Beginner2022-07-17Added 22 answers

There is a third option you did not list, which I think would be the most natural. You can average the measurements of the opposite side to get your best estimate of the opposite side and similarly for the adjacent side, then use those values to compute θ. I will use subscripts to identify observations-they are more standard and easier to type. We would have
o = 1 n i o i a = 1 n i a i θ 3 = arctan ( o a )
Note that your second is really θ 2 = 1 n i θ i and let your first be θ 1
To see which is more accurate, we can chase the impact of a single error through the computation. As the errors are small, we expect that they add linearly. For each calculation, we want to assess d θ d o i and d θ d a i So we have
d θ 3 d o i = 1 1 + ( o a ) 2 1 n d θ 3 d a i = 1 1 + ( o a ) 2 1 a 2 1 n d θ 2 d o i = 1 n 1 1 + ( o i a i ) 2 d θ 2 d a i = 1 1 + ( o i a i ) 2 1 a i 2 1 n
Which give just about the same result as long as your errors are small and symmetric. I believe you will get the same result with θ 1 , but haven't checked.

Do you have a similar question?

Recalculate according to your conditions!

Ask your question.
Get an expert answer.

Let our experts help you. Answer in as fast as 15 minutes.

Didn't find what you were looking for?