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