You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- A **regular n-gon** is a polygon with all sides and angles equal. It can have both a circumscribed circle (circumcircle) and an inscribed circle (incircle).
@@ -27,20 +29,7 @@
27
29
28
30
- These formulas are useful for understanding the geometric properties of regular polygons and have applications in various fields.
29
31
30
-
---
31
-
32
-
## Korean documents
33
-
34
-
-[](#) 한국어 문서는 다음을 참조하세요.
35
-
-https://j2doll.tistory.com/1078
36
-
37
-
- 이 코드는 다음과 같은 기능을 수행합니다:
38
-
-1.`calculate_radii` 함수는 주어진 한 변의 길이 \( s \)와 변의 수 \( n \)을 이용하여 외접원 반지름 \( R \)과 내접원 반지름 \( r \)을 계산합니다.
39
-
-2.`plot_polygon_and_circles` 함수는 계산된 반지름을 사용하여 정다각형과 그 외접원 및 내접원을 시각화합니다. `matplotlib` 라이브러리를 활용하여 도형을 그립니다.
40
-
-3. 사용자로부터 한 변의 길이 \( s \)와 변의 수 \( n \)을 입력받습니다. \( n \)이 3 이상의 정수인지 확인한 후, 조건에 맞으면 도형을 그립니다.
41
-
42
-
- 이 코드를 실행하면, 입력한 값에 따라 정다각형과 그 외접원 및 내접원이 시각적으로 표시됩니다.
0 commit comments