Skip to content

Commit d3207d7

Browse files
authored
Update index.html
1 parent bc60241 commit d3207d7

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

index.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1341,10 +1341,10 @@ <h6 style="font-size:160%;margin:7px">Area of a circle</h6>
13411341
return;
13421342
}
13431343

1344-
const thing = 2 * height / length;
1345-
const angle = parseFloat(2 * Atan(thing).toFixed(5));
1344+
const ratio = 2 * height / length;
1345+
const angle = parseFloat((2 * Atan(ratio)).toFixed(5));
13461346
const sine = parseFloat(sin(angle).toFixed(5));
1347-
const radius = length / (2 * sine);
1347+
const radius = parseFloat((length / (2 * sine)).toFixed(5));
13481348

13491349
const area = segmentArea(length, height, angle, radius);
13501350

0 commit comments

Comments
 (0)