Skip to content

Commit 60249aa

Browse files
authored
Update README.md
1 parent 03f9b5e commit 60249aa

File tree

1 file changed

+3
-14
lines changed

1 file changed

+3
-14
lines changed

README.md

+3-14
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
## Regular n-gon Geometry: Circumscribed and Inscribed Circles
22

3+
> [English](README.md), [Korean](README.ko.md)
4+
35
<p align="center"> <img width="50%" src="polygon.circle.output.jpeg" /> </p>
46

57
- 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 @@
2729

2830
- These formulas are useful for understanding the geometric properties of regular polygons and have applications in various fields.
2931

30-
---
31-
32-
## Korean documents
33-
34-
- [![](https://j2doll.github.io/j2doll/img/kr.png)](#) 한국어 문서는 다음을 참조하세요.
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-
- 이 코드를 실행하면, 입력한 값에 따라 정다각형과 그 외접원 및 내접원이 시각적으로 표시됩니다.
43-
32+
4433

4534

4635

0 commit comments

Comments
 (0)