Skip to content

Commit 89590a5

Browse files
authored
Update index.html
1 parent 4605288 commit 89590a5

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

index.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3271,13 +3271,13 @@ <h3 itemprop="name" style="margin:7px">Area of a Circle Segment</h3>
32713271
<br>
32723272
<div style="margin:12px" id="circle-segment_area_calculator">
32733273
<label for="segment-height">Height:</label>
3274-
<input id="segment-height" type="number" value="1" step="any">
3274+
<input id="segment-height" type="number" value="0" step="any">
32753275
<br>
32763276
<label for="chord-length">Chord Length:</label>
3277-
<input id="chord-length" type="number" value="2" step="any">
3277+
<input id="chord-length" type="number" value="0" step="any">
32783278
<br>
32793279
<label for="parent-radius">Circle Radius:</label>
3280-
<input id="parent-radius" type="number" value="1" step="any">
3280+
<input id="parent-radius" type="number" value="0" step="any">
32813281
<script>
32823282
function segmentArea(length, height, angle, radius) {
32833283
return angle * radius ** 2 - (radius - height) * length / 2;
@@ -3295,7 +3295,7 @@ <h3 itemprop="name" style="margin:7px">Area of a Circle Segment</h3>
32953295

32963296
// If height and parent radius are known
32973297

3298-
if (!isNaN(height) || isNaN(length)|| !isNaN(radius)|| height > 0 || radius > 0) {
3298+
if (height > 0 || radius > 0) {
32993299

33003300
// Segment validity check
33013301

@@ -3315,7 +3315,7 @@ <h3 itemprop="name" style="margin:7px">Area of a Circle Segment</h3>
33153315

33163316

33173317

3318-
if (!isNaN(height) || !isNaN(length)|| || isNaN(radius) height > 0 || length > 0) {
3318+
if (height > 0 || length > 0) {
33193319

33203320
const ratio = 2 * height / length;
33213321

0 commit comments

Comments
 (0)