Skip to content

Commit 520a33c

Browse files
authored
Update index.html
1 parent 0036f0b commit 520a33c

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
@@ -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;

0 commit comments

Comments
 (0)