We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a8c351d commit 3af4187Copy full SHA for 3af4187
1 file changed
index.html
@@ -3067,8 +3067,8 @@ <h3 itemprop="eduQuestionType" style="margin:7px">Area of a Circle Segment</h3>
3067
3068
const ratio = (radius - height) / radius;
3069
const angle = Acos(ratio);
3070
- const chordLength = 2 * Math.sqrt(radius ** 2 - (radius - height) ** 2);
3071
- const area = segmentArea(chordLength, height, angle, radius);
+ const length = 2 * Math.sqrt(radius ** 2 - (radius - height) ** 2);
+ const area = segmentArea(length, height, angle, radius);
3072
3073
document.getElementById('segment-area').innerText =
3074
`Area: ${area.toFixed(5)} square units`;
0 commit comments