Problem 49938. Splitting Triangle - Problem the third
Consider an equilateral triangle sitting in Quadrant I as depicted in an example below:
This triangle is to be split into two regions (e.g., red and blue). Given the ratio between the two regions and the side of the equilateral triangle, determine the radius of the circle defining the red region. The ratio between the regions (red to blue) is presented through the first two entries in the input. For example, if the ratio is 3 to 5, then these two numbers will be the first two entries in the input. The last entry is the side of the equilateral triangle. Please also consider the following possible configuration:
Solution Stats
Problem Comments
-
1 Comment
Rafael S.T. Vieira
on 31 Oct 2022
To calculate the area when the radius is greater than the triangle's height, we would have to calculate the intersection between the circle & the triangle, two integrals, and a trapezoid's & a triangle's areas. But it seems no test does it know (only the test #2 may cause a precision error).
Solution Comments
Show commentsProblem Recent Solvers26
Suggested Problems
-
Remove any row in which a NaN appears
8568 Solvers
-
Find state names that start with the letter N
1211 Solvers
-
389 Solvers
-
983 Solvers
-
454 Solvers
More from this Author180
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!