Skip to content

Commit a8c351d

Browse files
authored
Update index.html
1 parent bb24feb commit a8c351d

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

index.html

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3070,10 +3070,6 @@ <h3 itemprop="eduQuestionType" style="margin:7px">Area of a Circle Segment</h3>
30703070
const chordLength = 2 * Math.sqrt(radius ** 2 - (radius - height) ** 2);
30713071
const area = segmentArea(chordLength, height, angle, radius);
30723072

3073-
if (radius === height) {
3074-
document.getElementById('segment-area').innerText =
3075-
`Area of semi-circle: ${area.toFixed(5)} square units`;
3076-
} else {
30773073
document.getElementById('segment-area').innerText =
30783074
`Area: ${area.toFixed(5)} square units`;
30793075
}

0 commit comments

Comments
 (0)