Three numbers a , b , c are chosen independently at random and uniformly in [ 0 ; 1 ] . What is the probability that a , b , c can be the lengths of the sides of a triangle whose altitudes are also the sides of some triangle?
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
The angles of the initial triangle can be found using the law of cosines: A = a c o s ( − 2 ⋅ b ⋅ c a 2 − b 2 − c 2 ) B = a c o s ( − 2 ⋅ a ⋅ c b 2 − a 2 − c 2 ) C = a c o s ( − 2 ⋅ a ⋅ b c 2 − a 2 − b 2 )
The altitudes are given (after simplification) by:
h a = c ⋅ s i n ( B ) = 2 ⋅ a − ( a − b − c ) ⋅ ( a − b + c ) ⋅ ( a + b − c ) ⋅ ( a + b + c ) h b = a ⋅ s i n ( C ) = 2 ⋅ b − ( a − b − c ) ⋅ ( a − b + c ) ⋅ ( a + b − c ) ⋅ ( a + b + c ) h c = b ⋅ s i n ( A ) = 2 ⋅ c − ( a − b − c ) ⋅ ( a − b + c ) ⋅ ( a + b − c ) ⋅ ( a + b + c )
Now in order to satisfy the triangle inequality and the given constraints the following must hold:
0 < a < 1 ; 0 < b < 1 ; 0 < c < 1 a + b > c ; a + c > b ; b + c > a h a + h b > h c ; h a + h c > h b ; h b + h c > h a
The last set of inequalities can be written as
c ⋅ ( a + b ) > a ⋅ b a ⋅ ( b + c ) > b ⋅ c b ⋅ ( a + c ) > a ⋅ c
I then used Mathematica to solve these inequalities to get 11 different regions which could be integrated over to get a final answer of
6 1 ⋅ ( 6 − 3 ⋅ 5 + l o g ( 4 0 9 6 ) + l o g ( 1 6 1 − 7 2 ⋅ 5 ) ) ≈ 0 . 3 0 5 8 3 6 7 2
Problem Loading...
Note Loading...
Set Loading...
The condition of this problem is equivalent to the fact that a , b , c can be the lengths of the sides of a triangle and a 1 , b 1 , c 1 can be the lengths of the sides of a triangle.
This a solution written in python 3.4: