Skip to content

Commit 688fd60

Browse files
authored
Update index.html
1 parent d3207d7 commit 688fd60

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

index.html

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

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

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

0 commit comments

Comments
 (0)