Is it old result?

Three numbers a , b , c a, b, c are chosen independently at random and uniformly in [ 0 ; 1 ] [0; 1] . What is the probability that a , b , c a, b, c can be the lengths of the sides of a triangle whose altitudes are also the sides of some triangle?


The answer is 0.306.

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.

2 solutions

Abdelhamid Saadi
Aug 18, 2015

The condition of this problem is equivalent to the fact that a a , b b , c c can be the lengths of the sides of a triangle and 1 a \frac 1 a , 1 b \frac 1 b , 1 c \frac 1 c can be the lengths of the sides of a triangle.

This a solution written in python 3.4:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
from random import random

def istriangle(a, b ,c ):
    return a + b > c and a + c > b and b + c > a

def solve(n):
    "Is it old result?"
    tot = 0
    for i in range(n):
        a, b, c =  random(),  random(), random()
        if min(a,b,c) > 0 and istriangle(a, b, c) and istriangle(1/a, 1/b, 1/c):
            tot += 1
    return tot/n

print(solve(10**7))

D G
Aug 18, 2015

The angles of the initial triangle can be found using the law of cosines: A = a c o s ( a 2 b 2 c 2 2 b c ) A = acos(\frac{a^2 - b^2 - c^2}{-2 \cdot b \cdot c}) B = a c o s ( b 2 a 2 c 2 2 a c ) B = acos(\frac{b^2 - a^2 - c^2}{-2 \cdot a \cdot c}) C = a c o s ( c 2 a 2 b 2 2 a b ) C = acos(\frac{c^2 - a^2 - b^2}{-2 \cdot a \cdot b})

The altitudes are given (after simplification) by:

h a = c s i n ( B ) = ( a b c ) ( a b + c ) ( a + b c ) ( a + b + c ) 2 a h_a = c \cdot sin(B) = \frac{\sqrt{-(a - b - c) \cdot (a - b + c) \cdot (a + b - c) \cdot (a + b + c)}}{2 \cdot a} h b = a s i n ( C ) = ( a b c ) ( a b + c ) ( a + b c ) ( a + b + c ) 2 b h_b = a \cdot sin(C) = \frac{\sqrt{-(a - b - c) \cdot (a - b + c) \cdot (a + b - c) \cdot (a + b + c)}}{2 \cdot b} h c = b s i n ( A ) = ( a b c ) ( a b + c ) ( a + b c ) ( a + b + c ) 2 c h_c = b \cdot sin(A) = \frac{\sqrt{-(a - b - c) \cdot (a - b + c) \cdot (a + b - c) \cdot (a + b + c)}}{2 \cdot 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 0 < a < 1; 0 < b < 1; 0 < c < 1 a + b > c ; a + c > b ; b + c > a 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 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 c \cdot (a + b) > a \cdot b a ( b + c ) > b c a \cdot (b + c) > b \cdot c b ( a + c ) > a c b \cdot (a + c) > a \cdot 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

1 6 ( 6 3 5 + l o g ( 4096 ) + l o g ( 161 72 5 ) ) 0.30583672 \frac{1}{6} \cdot (6-3 \cdot \sqrt{5}+log(4096)+log(161-72 \cdot \sqrt{5})) \approx 0.30583672

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...