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
-
Make the vector [1 2 3 4 5 6 7 8 9 10]
52683 Solvers
-
Determine if input is a perfect number
259 Solvers
-
Given a matrix, swap the 2nd & 3rd columns
1256 Solvers
-
Simple equation: Annual salary
4255 Solvers
-
8419 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).