We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 910fd1d commit fc88ce6Copy full SHA for fc88ce6
1 file changed
index.html
@@ -1476,15 +1476,11 @@ <h6 style="font-size:160%;margin:7px">Area of a circle</h6>
1476
1477
// Segment validity check
1478
1479
- if ((length / height) < 18) {
+ if (ratio < 0.11 || ratio > 1) {
1480
document.getElementById('segment-area').innerText = 'The ratio is out of range';
1481
return;
1482
}
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
-}
+
1488
1489
const angle = parseFloat(2 * Atan(ratio));
1490
const sine = parseFloat(sin(angle));
0 commit comments