File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 ( / r a d \\ ( ( [ \d . ] + ) \\ ) / ) ;
@@ -1017,13 +1017,13 @@ <h4 style="font-size:160%;margin:7px">Trigonometry</h4>
10171017function 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 ( / r a d \\ ( ( [ \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 ( / r a d \\ ( ( [ \d . ] + ) \\ ) / ) ;
You can’t perform that action at this time.
0 commit comments