Skip to content

Commit 2d4bc8e

Browse files
authored
Update index.html
1 parent 32d144b commit 2d4bc8e

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
@@ -1006,7 +1006,7 @@ <h4 style="font-size:160%;margin:7px">Trigonometry</h4>
10061006
if (!parsed) return null;
10071007
return parseFloat(parsed[1]);
10081008
}
1009-
1009+
else
10101010
// No reflection — match via cosine
10111011
const match = closestValue(x, 'cos');
10121012
const parsed = match?.angle.match(/rad\\(([\d.]+)\\)/);
@@ -1017,13 +1017,13 @@ <h4 style="font-size:160%;margin:7px">Trigonometry</h4>
10171017
function Acos(x) {
10181018
if (typeof x !== 'number' || x <= 0 || x > 1) return null;
10191019

1020-
if (x >= 0.707) {
1020+
if (x <= 0.707) {
10211021
const match = closestValue(x, 'cos');
10221022
const parsed = match?.angle.match(/rad\\(([\d.]+)\\)/);
10231023
if (!parsed) return null;
10241024
return parseFloat(parsed[1]);
10251025
}
1026-
1026+
else
10271027
// No reflection — match via cosine
10281028
const match = closestValue(x, 'sin');
10291029
const parsed = match?.angle.match(/rad\\(([\d.]+)\\)/);

0 commit comments

Comments
 (0)