Skip to content

Commit 85658e2

Browse files
authored
Update index.html
Formula fix
1 parent 5cc68e5 commit 85658e2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3277,7 +3277,7 @@ <h3 itemprop="name" style="margin:7px">Area of a Circle Segment</h3>
32773277
<input id="segment-height" type="number" value="1" step="any">
32783278
<script>
32793279
function segmentArea(length, height, angle, radius) {
3280-
return angle * radius ** 2 - (radius - height) * length / 2;
3280+
return 2 * angle * radius ** 2 - (radius - height) * length / 2;
32813281
}
32823282

32833283
function updateSegmentArea() {

0 commit comments

Comments
 (0)