We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f77b240 commit 2cf3209Copy full SHA for 2cf3209
index.html
@@ -1197,7 +1197,7 @@ <h5 style="font-size:160%;margin:7px;">Area of a regular polygon</h5>
1197
const ratio = 3.2 / number;
1198
const tan = parseFloat(tan(ratio));
1199
1200
- const area = segmentArea(length, number, tan);
+ const area = polygonArea(length, number, tan);
1201
1202
document.getElementById('polygon-area').innerText =
1203
`Area: ${area.toFixed(5)} square units`;
0 commit comments