We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 397b3bd commit 65c7608Copy full SHA for 65c7608
1 file changed
index.html
@@ -965,7 +965,7 @@ <h4 style="font-size:160%;margin:7px">Trigonometry</h4>
965
if (typeof value !== 'number') continue;
966
967
const joker = Math.abs(value - input);
968
- if (joker < minDiff) {
+ if (difference < minDiff) {
969
minDiff = difference;
970
bestMatch = {
971
angle: key, // We're using this key as the input (the angle) that produced the value
@@ -1476,6 +1476,10 @@ <h6 style="font-size:160%;margin:7px">Area of a circle</h6>
1476
1477
// Segment validity check
1478
1479
+ if (ratio < 0.11 || ratio > 1) {
1480
+ document.getElementById('segment-area').innerText = 'The ratio is out of range';
1481
+ return;
1482
+ }
1483
1484
const angle = parseFloat(2 * Atan(ratio));
1485
const sine = parseFloat(sin(angle));
0 commit comments