File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2420,17 +2420,17 @@ <h6 style="font-size:160%;margin:7px">Area of a circle</h6>
24202420 try {
24212421 const s = sin ( angle ) ;
24222422 const c = cos ( angle ) ;
2423- const t = tan ( angle ) ;
2423+
24242424
24252425 output . innerText += `✅ Testing angle: ${ angle } \n\n` ;
24262426 output . innerText += `• sin(${ angle } ) = ${ s } \n` ;
24272427 output . innerText += `• cos(${ angle } ) = ${ c } \n` ;
2428- output . innerText += `• tan( ${ angle } ) = ${ t } \n` ;
2428+
24292429
24302430 // Optional: known expectations
24312431 if ( angle === 1.066 ) output . innerText += `🔍 Expected sin ≈ 0.866\n` ;
24322432 if ( angle === 0.8 ) output . innerText += `🔍 Expected cos ≈ 0.707\n` ;
2433- if ( angle === 1.467 ) output . innerText += `🔍 Expected tan ≈ 7.6\n` ;
2433+
24342434
24352435 } catch ( err ) {
24362436 output . innerText = '⚠️ Error during trig function evaluation:\n' + err . message ;
You can’t perform that action at this time.
0 commit comments