Problem 49943. Splitting Hexagon - Problem the third
Consider a hexagon sitting in Quadrant I as depicted in an example below:
This hexagon is to be split into two regions (e.g., red and blue). Given the ratio between the two regions and the side of the hexagon, determine the radius of the circle that splits the 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 1 to 2, then these two numbers will be the first two entries in the input. The last entry is the side of the hexagon.
Solution Stats
Problem Comments
-
2 Comments
Rafael S.T. Vieira
on 31 Oct 2022
It needs more tests. If the author doesn't bother to include hard tests, there is no need to create a better algorithm. And all these problems kind of look like homework.
Armando Longobardi
on 24 Jan 2023
I love how much more simple it is with respect to the problem 49938 of the same group
Solution Comments
Show commentsGroup

CodeCrunch 1
- 11 Problems
- 10 Finishers
- Calculate the height of an object dropped from the sky
- Compute the missing quantity among P, V, T for an ideal gas
- Remove duplicated triangles
- An Ohm's Law Calculator
- Laws of motion 6
- Find the longest sequence of 1's in a binary sequence.
- Determine whether a vector is monotonically increasing
- Calculate the probability that at least two people in a group share the same birthday.
- Finding Perfect Squares
- The Goldbach Conjecture
- Pangrams!
Problem Recent Solvers32
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!