Problem Link: Lightoj 1072
In this problem, we are given:
-
The radius of a large outer circle
-
The number of smaller circlesthat fit inside the larger circle, touching it
We need to find the radius of each smaller circle
Step 1: Angle subdivision
We know a full circle is
.
If there are
small circles inside, they divide the large circle into
equal sectors.
So, the angle at the center of the large circle subtended by one small circle is:
Step 2: Using trigonometry
Consider the triangle formed by:
-
The center of the large circle
-
The center of one small circle
-
The point of tangency on the large circle
In this triangle:
-
The opposite side =(radius of the small circle)
-
The hypotenuse =
So:
Step 3: Solve for
Thus, the radius of each inner small circle is:
Would you like me to also provide a short Python function that computes
for given
and
?
Source Code:
Another problem like this,
0 comments:
Post a Comment