This is my solution to @kenchung contest #7: https://steemit.com/contest/@kenchung/question-mathematics-programming-competition-7 ### Question A point is chosen randomly in a square. 4 lines are drawn to connect this point with the 4 vertices of this square, such that 4 triangles are formed. Find the probability that all interior angles of the 4 triangles are less than 120°. Give your answer correct to the nearest 3 decimal places. ## Geometrical solution First of all, let's consider a square. For simplicity, we are going to choose a square with side equal to 1, that also has an area of 1. If we choose randomly a point inside the square, and draw the triangles from it, what are the angles of those triangles? <center>  </center> We can consider just one of the triangles for now, the reasoning for the other 3 triangles are the same due to the symmetry of the figures. As you can see, the angles at the base of the triangle are never going to be more than 90°, because the random point P is inside the square. So the only angle that could be more than 120° is the angle on P. I will solve this problem by first finding out all the possible cases when the angle is 120° or more. To find all the points that give an angle of 120° we can consider AB to be a chord of a circle such that the __inscribed angle__ is 120° <center>  </center> Now, all the points inside that **circular segment** are the points that gives as an angle of at least 120°. If we do that same for the 4 sides of the square, we can see that the points that gives at least one angle greater than 120° are in the union of 4 circular segments. <center>  </center> Only choosing a point **not** in the circular segments gives us angles less than 120°. Therefore the area of the square minus the areas of the union of circular segments is the solution to our problem. (Because we choose a square with area 1, otherwise the probability would be the ratio of that area and the total area of the square) ### Finding the area of the circular segment First, let's find the radius R of the circle. Using the law of sines: ``` AB / sin(120°) = R / sin(30°) AB = 1 R = sin(30°) / sin(120°) = 1/2 * 2/√3 = 1/√3 ``` Now, we can compute the area of the circular segment (https://en.wikipedia.org/wiki/Circular_segment) ``` A1 = R^2 / 2 (120°/180°*π - sin(120°)) = 1/6 (2/3π - √3/2) = 1/9 π - √3/12 ``` ### Area of the intersection of the circular segments Now we have to be careful, because if we sum the 4 areas of the circular segments we are going to have some area counted twice. Therefore we have to find the areas shown in the figure: <center>  </center> That is another circular segment! Let's find the length of AC and the angle θ: ``` AC / sin(15°) = AB / sin(120°) AC = sin(15°) / sin(120°) = (√6 - √2)/4 * 2/√3 ``` Again, with the help of wikipedia (https://en.wikipedia.org/wiki/Circular_segment) ``` AC = 2R * sin(θ/2) sin(θ/2) = AC / 2R θ = 2 arcsin(AC/2R) θ = 2 arcsin((√6 - √2)/4 * 2/√3 * √3/2) θ = 2 arcsin((√6 - √2)/4) θ = 2 * 15° θ = 30° ``` Now, the area of the circular segment is: ``` A2 = R^2 / 2 (30°/180°*π - sin(30°)) = 1/6 (1/6π - 1/2) = 1/36 π - 1/12 ``` ### Conclusion <center>  </center> The total area of the union of the 4 circular segments is: ``` A = 4 * A1 - 8 * A2 = 4(1/9 π - √3/12) - 8(1/36 π - 1/12) = 0.787 ``` The answer to the question is then <center> `Probability = 1 - A = 0.213` </center> 
author | armandocat |
---|---|
permlink | mathematics-programming-competition-7-geometrical-solution |
category | contest |
json_metadata | {"tags":["contest","cn-contest","cn","math","steemstem"],"users":["kenchung"],"image":["https://i.imgsafe.org/3c/3c16c3a663.png","https://i.imgsafe.org/3c/3c31a6e2d3.png","https://i.imgsafe.org/3c/3c215b0d0d.png","https://i.imgsafe.org/3c/3c2629663e.png","https://i.imgsafe.org/3c/3c468160ac.png"],"links":["https://steemit.com/contest/@kenchung/question-mathematics-programming-competition-7","https://en.wikipedia.org/wiki/Circular_segment"],"app":"steemit/0.1","format":"markdown"} |
created | 2017-09-28 05:17:39 |
last_update | 2017-09-28 05:17:39 |
depth | 0 |
children | 13 |
last_payout | 2017-10-05 05:17:39 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 11.112 HBD |
curator_payout_value | 1.156 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 3,679 |
author_reputation | 19,042,686,186,587 |
root_title | "Mathematics × Programming Competition #7 - Geometrical solution" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 16,149,577 |
net_rshares | 4,265,350,522,133 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
cheftony | 0 | 2,352,983,133 | 1% | ||
gikitiki | 0 | 159,261,598 | 0.5% | ||
tensaix2j | 0 | 3,621,187,950 | 100% | ||
stef | 0 | 32,189,426,736 | 100% | ||
cryptoninja | 0 | 84,803,217 | 1% | ||
shieha | 0 | 2,726,941,554 | 100% | ||
mcsvi | 0 | 199,569,001,373 | 100% | ||
sivila | 0 | 107,643,437 | 100% | ||
chasmic-cosm | 0 | 4,823,451,724 | 100% | ||
cherisegentry | 0 | 533,137,747 | 100% | ||
danlupi | 0 | 0 | 1% | ||
shango | 0 | 11,807,987,737 | 100% | ||
jerrybanfield | 0 | 91,799,860,295 | 5% | ||
kenchung | 0 | 35,443,178,071 | 100% | ||
wallsnow | 0 | 343,356,892 | 100% | ||
speeding | 0 | 917,305,855 | 100% | ||
firstamendment | 0 | 3,977,934,552 | 100% | ||
gokulnk | 0 | 57,196,833,733 | 100% | ||
daekgpxy1pkj | 0 | 558,980,445 | 100% | ||
dixongregory | 0 | 608,991,147 | 100% | ||
dexpartacus | 0 | 1,973,551,642 | 100% | ||
minnowbooster | 0 | 3,659,289,073,488 | 5% | ||
ratticus | 0 | 7,237,239,873 | 100% | ||
misko | 0 | 53,311,767,790 | 100% | ||
upgoat | 0 | 672,510,205 | 5% | ||
resheep | 0 | 898,027,522 | 5% | ||
beet | 0 | 3,249,060,563 | 10% | ||
pavelin | 0 | 527,889,046 | 100% | ||
kryago | 0 | 576,728,910 | 100% | ||
hendrikcrause | 0 | 2,657,938,923 | 100% | ||
nandaaa | 0 | 508,006,400 | 100% | ||
erfikc | 0 | 498,713,600 | 100% | ||
originalworks | 0 | 2,841,997,231 | 1% | ||
katyusha | 0 | 607,129,600 | 100% | ||
tvb | 0 | 851,355,966 | 100% | ||
hariman | 0 | 214,999,908 | 100% | ||
bortosina | 0 | 619,520,000 | 100% | ||
volyno | 0 | 613,324,800 | 100% | ||
puzigy | 0 | 620,551,131 | 100% | ||
allacorneva | 0 | 615,694,227 | 100% | ||
nelnovoshe | 0 | 1,145,556,449 | 100% | ||
sochnik | 0 | 1,161,674,999 | 100% | ||
yyqes | 0 | 893,691,380 | 100% | ||
tyqal | 0 | 870,478,596 | 100% | ||
masterofcoin | 0 | 49,852,828,031 | 50% | ||
hoysa | 0 | 1,160,628,026 | 100% | ||
armandocat | 0 | 10,338,772,902 | 100% | ||
manu85 | 0 | 2,988,262,078 | 100% | ||
zavz9t | 0 | 264,829,565 | 20% | ||
temidayo | 0 | 2,411,879,567 | 100% | ||
farive | 0 | 1,143,206,082 | 100% | ||
rebeccasanchez | 0 | 1,160,613,814 | 100% | ||
elezhenya | 0 | 1,154,803,647 | 100% | ||
zyubyairova | 0 | 1,143,195,596 | 100% | ||
innalerova | 0 | 1,160,602,416 | 100% | ||
lrd | 0 | 1,112,259,139 | 100% | ||
aoeu | 0 | 179,891,825 | 100% | ||
ho88it | 0 | 0 | 100% |
Aaaaahhhhhh! I wrote some code to solve this but stupidly forgot to check the fourth triangle because it needed slightly different treatment. Thanks for posting your solution, it all makes sense now :)
author | chasmic-cosm |
---|---|
permlink | re-armandocat-mathematics-programming-competition-7-geometrical-solution-20170928t154645639z |
category | contest |
json_metadata | {"tags":["contest"],"app":"steemit/0.1"} |
created | 2017-09-28 15:46:45 |
last_update | 2017-09-28 15:46:45 |
depth | 1 |
children | 0 |
last_payout | 2017-10-05 15:46:45 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 201 |
author_reputation | 4,159,775,155,640 |
root_title | "Mathematics × Programming Competition #7 - Geometrical solution" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 16,193,910 |
net_rshares | 0 |
1. Inscribed angle theorem 2. Calculate area of circular segments 3. ??? 4. Profit (I think I got the same solution :) )
author | galotta |
---|---|
permlink | re-armandocat-mathematics-programming-competition-7-geometrical-solution-20170928t070708176z |
category | contest |
json_metadata | {"tags":["contest"],"app":"steemit/0.1"} |
created | 2017-09-28 07:07:12 |
last_update | 2017-09-28 07:51:21 |
depth | 1 |
children | 0 |
last_payout | 2017-10-05 07:07:12 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 121 |
author_reputation | 4,889,387,557,452 |
root_title | "Mathematics × Programming Competition #7 - Geometrical solution" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 16,156,124 |
net_rshares | 2,727,735,080 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
galotta | 0 | 2,727,735,080 | 100% |
What is the secret that you joined this platform recently and you are reaping big?I however like your post.Follow me back.
author | grandrey |
---|---|
permlink | re-armandocat-mathematics-programming-competition-7-geometrical-solution-20170930t093424046z |
category | contest |
json_metadata | {"tags":["contest"],"app":"steemit/0.1"} |
created | 2017-09-30 09:34:27 |
last_update | 2017-09-30 09:34:27 |
depth | 1 |
children | 0 |
last_payout | 2017-10-07 09:34:27 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 122 |
author_reputation | 54,423,680,663 |
root_title | "Mathematics × Programming Competition #7 - Geometrical solution" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 16,360,254 |
net_rshares | 0 |
Great work! I can confirm that your answer is correct :) I will announce the winners in a few days, hope that you will be one of the winners! :)
author | kenchung |
---|---|
permlink | re-armandocat-mathematics-programming-competition-7-geometrical-solution-20170928t060905163z |
category | contest |
json_metadata | {"tags":["contest"],"app":"steemit/0.1"} |
created | 2017-09-28 06:09:09 |
last_update | 2017-09-28 06:09:09 |
depth | 1 |
children | 1 |
last_payout | 2017-10-05 06:09:09 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.028 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 144 |
author_reputation | 41,181,348,504,685 |
root_title | "Mathematics × Programming Competition #7 - Geometrical solution" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 16,152,522 |
net_rshares | 10,225,780,848 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
armandocat | 0 | 10,225,780,848 | 100% |
The diagrams are very professional. I like the diagrams!!!
author | tvb |
---|---|
permlink | re-kenchung-re-armandocat-mathematics-programming-competition-7-geometrical-solution-20170928t111413770z |
category | contest |
json_metadata | {"tags":["contest"],"app":"steemit/0.1"} |
created | 2017-09-28 11:14:12 |
last_update | 2017-09-28 11:14:12 |
depth | 2 |
children | 0 |
last_payout | 2017-10-05 11:14:12 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 58 |
author_reputation | 35,178,037,825,802 |
root_title | "Mathematics × Programming Competition #7 - Geometrical solution" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 16,171,964 |
net_rshares | 0 |
How I tried to solve the problem. 
author | lrd |
---|---|
permlink | re-armandocat-mathematics-programming-competition-7-geometrical-solution-20170928t054337238z |
category | contest |
json_metadata | {"tags":["contest"],"image":["https://steemitimages.com/DQmcmDLZpC1hjFkmSx7ne932u3D4fV1eTTi8SVzWmCEqNvB/1.gif"],"app":"steemit/0.1"} |
created | 2017-09-28 05:43:57 |
last_update | 2017-09-28 05:43:57 |
depth | 1 |
children | 0 |
last_payout | 2017-10-05 05:43:57 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 123 |
author_reputation | 15,552,995,201,866 |
root_title | "Mathematics × Programming Competition #7 - Geometrical solution" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 16,151,107 |
net_rshares | 1,135,799,015 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
lrd | 0 | 1,135,799,015 | 100% |
 *@armandocat got you a $8.31 @minnowbooster upgoat, nice! (Image: pixabay.com)* --- [Want a boost? Click here to read more!](https://steemit.com/minnowbooster/@minnowbooster/6rt2mn-introducing-minnowbooster-beta) @originalworks
author | minnowbooster |
---|---|
permlink | comment-1506576510382 |
category | contest |
json_metadata | "" |
created | 2017-09-28 05:28:30 |
last_update | 2017-09-28 05:28:30 |
depth | 1 |
children | 1 |
last_payout | 2017-10-05 05:28:30 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 376 |
author_reputation | 230,546,282,483,083 |
root_title | "Mathematics × Programming Competition #7 - Geometrical solution" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 16,150,163 |
net_rshares | 0 |
The @OriginalWorks bot has determined this post by @armandocat to be original material and upvoted it! <center></center> To call @OriginalWorks, simply reply to any post with @originalworks or !originalworks in your message! ### To enter this post into the daily RESTEEM contest, upvote this comment! The user with the most upvotes on their @OriginalWorks comment will win!<h3> For more information, [Click Here!](https://steemit.com/writing/@originalworks/originalworks-bot-explanation-and-info) Special thanks to @reggaemuffin for being a supporter! Vote him as a witness to help make Steemit a better place!
author | originalworks |
---|---|
permlink | re-comment-1506576510382-20170928t052938 |
category | contest |
json_metadata | "{"app": "pysteem/0.5.4"}" |
created | 2017-09-28 05:29:39 |
last_update | 2017-09-28 05:29:39 |
depth | 2 |
children | 0 |
last_payout | 2017-10-05 05:29:39 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 734 |
author_reputation | 79,292,026,602,057 |
root_title | "Mathematics × Programming Competition #7 - Geometrical solution" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 16,150,223 |
net_rshares | 0 |
Didn't know the cat was that good with math
author | shango |
---|---|
permlink | re-armandocat-mathematics-programming-competition-7-geometrical-solution-20170928t215851406z |
category | contest |
json_metadata | {"tags":["contest"],"app":"steemit/0.1"} |
created | 2017-09-28 21:58:51 |
last_update | 2017-09-28 21:58:51 |
depth | 1 |
children | 0 |
last_payout | 2017-10-05 21:58:51 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.027 HBD |
curator_payout_value | 0.008 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 43 |
author_reputation | 3,432,125,687,483 |
root_title | "Mathematics × Programming Competition #7 - Geometrical solution" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 16,220,708 |
net_rshares | 13,457,504,783 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
armandocat | 0 | 13,457,504,783 | 100% |
Great work! Your diagrams are very professional. I want to consult a question. What soft do you draw the diagrams?
author | tvb |
---|---|
permlink | re-armandocat-mathematics-programming-competition-7-geometrical-solution-20170928t111217671z |
category | contest |
json_metadata | {"tags":["contest"],"app":"steemit/0.1"} |
created | 2017-09-28 11:12:18 |
last_update | 2017-09-28 11:12:18 |
depth | 1 |
children | 3 |
last_payout | 2017-10-05 11:12:18 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 116 |
author_reputation | 35,178,037,825,802 |
root_title | "Mathematics × Programming Competition #7 - Geometrical solution" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 16,171,837 |
net_rshares | 0 |
Thanks! The tool is: https://www.geogebra.org It's very nice!
author | armandocat |
---|---|
permlink | re-tvb-re-armandocat-mathematics-programming-competition-7-geometrical-solution-20170928t204502052z |
category | contest |
json_metadata | {"tags":["contest"],"links":["https://www.geogebra.org"],"app":"steemit/0.1"} |
created | 2017-09-28 20:45:03 |
last_update | 2017-09-28 20:45:03 |
depth | 2 |
children | 2 |
last_payout | 2017-10-05 20:45:03 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 62 |
author_reputation | 19,042,686,186,587 |
root_title | "Mathematics × Programming Competition #7 - Geometrical solution" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 16,216,163 |
net_rshares | 3,584,760,370 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
nutela | 0 | 3,584,760,370 | 100% |
And the programming?
author | nutela |
---|---|
permlink | re-armandocat-re-tvb-re-armandocat-mathematics-programming-competition-7-geometrical-solution-20170930t220159409z |
category | contest |
json_metadata | {"tags":["contest"],"app":"steemit/0.1"} |
created | 2017-09-30 22:01:51 |
last_update | 2017-09-30 22:01:51 |
depth | 3 |
children | 0 |
last_payout | 2017-10-07 22:01:51 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 20 |
author_reputation | 12,740,113,194,550 |
root_title | "Mathematics × Programming Competition #7 - Geometrical solution" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 16,415,384 |
net_rshares | 0 |
Thank you! It is really very nice. I will try it!
author | tvb |
---|---|
permlink | re-armandocat-re-tvb-re-armandocat-mathematics-programming-competition-7-geometrical-solution-20170928t205832772z |
category | contest |
json_metadata | {"tags":["contest"],"app":"steemit/0.1"} |
created | 2017-09-28 20:58:33 |
last_update | 2017-09-28 20:58:33 |
depth | 3 |
children | 0 |
last_payout | 2017-10-05 20:58:33 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 49 |
author_reputation | 35,178,037,825,802 |
root_title | "Mathematics × Programming Competition #7 - Geometrical solution" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 16,216,992 |
net_rshares | 0 |