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
-
Remove all the words that end with "ain"
2633 Solvers
-
Create an n-by-n null matrix and fill with ones certain positions
712 Solvers
-
Solve a System of Linear Equations
14183 Solvers
-
Double all elements in the array
2158 Solvers
-
195 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).