質問編集履歴
1
コードの修正
title
CHANGED
File without changes
|
body
CHANGED
@@ -15,12 +15,8 @@
|
|
15
15
|
### 該当のソースコード
|
16
16
|
|
17
17
|
```python
|
18
|
-
#外接円を求める関数
|
18
|
+
#外接円の中心・半径を求める関数
|
19
19
|
def circumcenter(pts):
|
20
|
-
pts = asarray(pts)
|
21
|
-
bary_coords = circumcenter_barycentric(pts)
|
22
|
-
center = dot(bary_coords, pts)
|
23
|
-
radius = norm(pts[0, :] - center)
|
24
20
|
return (center, radius)
|
25
21
|
|
26
22
|
# データ点の生成
|