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
Solution Comments
Show comments
Loading...
Problem Recent Solvers27
Suggested Problems
-
768 Solvers
-
987 Solvers
-
300 Solvers
-
Find the maximum two numbers of every column of a matrix
228 Solvers
-
602 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!
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).