We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5cc68e5 commit 85658e2Copy full SHA for 85658e2
1 file changed
index.html
@@ -3277,7 +3277,7 @@ <h3 itemprop="name" style="margin:7px">Area of a Circle Segment</h3>
3277
<input id="segment-height" type="number" value="1" step="any">
3278
<script>
3279
function segmentArea(length, height, angle, radius) {
3280
- return angle * radius ** 2 - (radius - height) * length / 2;
+ return 2 * angle * radius ** 2 - (radius - height) * length / 2;
3281
}
3282
3283
function updateSegmentArea() {
0 commit comments