We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d3207d7 commit 688fd60Copy full SHA for 688fd60
index.html
@@ -1342,9 +1342,9 @@ <h6 style="font-size:160%;margin:7px">Area of a circle</h6>
1342
}
1343
1344
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));
+ const angle = parseFloat(2 * Atan(ratio));
+ const sine = parseFloat(sin(angle));
+ const radius = parseFloat((length / 2 / sine).toFixed(5));
1348
1349
const area = segmentArea(length, height, angle, radius);
1350
0 commit comments