Skip to content

Commit 2cf3209

Browse files
authored
Update index.html
1 parent f77b240 commit 2cf3209

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1197,7 +1197,7 @@ <h5 style="font-size:160%;margin:7px;">Area of a regular polygon</h5>
11971197
const ratio = 3.2 / number;
11981198
const tan = parseFloat(tan(ratio));
11991199

1200-
const area = segmentArea(length, number, tan);
1200+
const area = polygonArea(length, number, tan);
12011201

12021202
document.getElementById('polygon-area').innerText =
12031203
`Area: ${area.toFixed(5)} square units`;

0 commit comments

Comments
 (0)