Skip to content

Commit fc88ce6

Browse files
authored
Update index.html
1 parent 910fd1d commit fc88ce6

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

index.html

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1476,15 +1476,11 @@ <h6 style="font-size:160%;margin:7px">Area of a circle</h6>
14761476

14771477
// Segment validity check
14781478

1479-
if ((length / height) < 18) {
1479+
if (ratio < 0.11 || ratio > 1) {
14801480
document.getElementById('segment-area').innerText = 'The ratio is out of range';
14811481
return;
14821482
}
1483-
1484-
if (ratio > 1) {
1485-
document.getElementById('segment-area').innerText = 'A circle-segment is less than half as high as long.';
1486-
return;
1487-
}
1483+
14881484

14891485
const angle = parseFloat(2 * Atan(ratio));
14901486
const sine = parseFloat(sin(angle));

0 commit comments

Comments
 (0)