Skip to content

Commit 381296f

Browse files
authored
Update index.html
1 parent b5d160d commit 381296f

1 file changed

Lines changed: 0 additions & 22 deletions

File tree

index.html

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1494,17 +1494,6 @@ <h6 style="font-size:160%;margin:7px">Area of a circle</h6>
14941494
}
14951495

14961496
const ratio = 2 * height / length;
1497-
1498-
// Segment validity check
1499-
1500-
if ( ratio = 1) {
1501-
document.getElementById('segment-area').innerText = 'If it is twice as long as high that is a semi-circle.';
1502-
return;
1503-
}
1504-
if ( ratio > 1) {
1505-
document.getElementById('segment-area').innerText = 'A circle-segment is less than half as high as long.';
1506-
return;
1507-
}
15081497

15091498

15101499
const angle = parseFloat(2 * Atan(ratio));
@@ -1791,18 +1780,7 @@ <h6 style="font-size:160%;margin:7px">Area of a circle</h6>
17911780
document.getElementById('cap-volume').innerText = '';
17921781
return;
17931782
}
1794-
1795-
// Cap validity check
17961783

1797-
if ( height = radius) {
1798-
document.getElementById('cap-volume').innerText = 'If the radius equals the height that is a hemisphere.';
1799-
return;
1800-
}
1801-
1802-
if ( height > radius) {
1803-
document.getElementById('cap-volume').innerText = 'The height of a spherical cap is shorter than its radius.';
1804-
return;
1805-
}
18061784

18071785
document.getElementById('cap-volume').innerText =
18081786
`Volume: ${capVolume(radius, height).toFixed(5)} cubic units`;

0 commit comments

Comments
 (0)