Inverse Trigonometric Functions Calculator

#itf-calculator-container .calc-header { background-color: #2c3e50; color: #fff; padding: 25px; border-radius: 8px 8px 0 0; text-align: center; } #itf-calculator-container .calc-header h2 { margin: 0; font-size: 24px; color: #fff; } #itf-calculator-container .calc-body { padding: 30px; } #itf-calculator-container .input-group { margin-bottom: 20px; } #itf-calculator-container label { display: block; font-weight: 600; margin-bottom: 8px; color: #34495e; } #itf-calculator-container input[type="number"], #itf-calculator-container select { width: 100%; padding: 12px; border: 1px solid #bdc3c7; border-radius: 4px; box-sizing: border-box; font-size: 16px; } #itf-calculator-container .radio-group { display: flex; gap: 20px; margin-top: 10px; } #itf-calculator-container .radio-option { display: flex; align-items: center; gap: 5px; cursor: pointer; } #itf-calculator-container .calc-btn { width: 100%; background-color: #3498db; color: white; padding: 15px; border: none; border-radius: 4px; font-size: 18px; font-weight: bold; cursor: pointer; transition: background 0.3s; margin-top: 10px; } #itf-calculator-container .calc-btn:hover { background-color: #2980b9; } #itf-calculator-container .result-box { margin-top: 25px; padding: 20px; border-radius: 4px; display: none; text-align: center; } #itf-calculator-container .result-success { background-color: #f1f9f5; border: 1px solid #2ecc71; } #itf-calculator-container .result-error { background-color: #fdf2f2; border: 1px solid #e74c3c; display: block; color: #c0392b; } #itf-calculator-container .result-val { font-size: 28px; font-weight: bold; color: #2c3e50; margin: 10px 0; } #itf-calculator-container .info-section { padding: 30px; border-top: 1px solid #eee; background-color: #fafafa; border-radius: 0 0 8px 8px; } #itf-calculator-container .info-section h3 { color: #2c3e50; margin-top: 0; } #itf-calculator-container table { width: 100%; border-collapse: collapse; margin: 15px 0; } #itf-calculator-container table th, #itf-calculator-container table td { border: 1px solid #ddd; padding: 10px; text-align: left; } #itf-calculator-container table th { background-color: #f2f2f2; }

Inverse Trigonometric Functions Calculator

Arcsin (sin⁻¹) Arccos (cos⁻¹) Arctan (tan⁻¹) Arcsec (sec⁻¹) Arccsc (csc⁻¹) Arccot (cot⁻¹)
Resulting Angle:
0

What are Inverse Trigonometric Functions?

Inverse trigonometric functions (also known as cyclometric functions) are the inverse functions of the basic trigonometric ratios (sine, cosine, tangent, etc.). While regular trig functions take an angle and give you a ratio, inverse trig functions take a ratio and return the angle that produced it.

Domains and Ranges

Function Input Domain Output Range (Radians)
arcsin(x) [-1, 1] [-π/2, π/2]
arccos(x) [-1, 1] [0, π]
arctan(x) All real numbers (-π/2, π/2)
arcsec(x) x ≤ -1 or x ≥ 1 [0, π], y ≠ π/2

Practical Example

Suppose you have a right triangle where the opposite side is 5 and the hypotenuse is 10. The sine ratio is 5/10 = 0.5. To find the angle θ:

  • Calculation: θ = arcsin(0.5)
  • Result: 30° or 0.5236 radians.
function calculateITF() { var valInput = document.getElementById('trigValue').value; var func = document.getElementById('trigFunc').value; var unit = document.querySelector('input[name="unit"]:checked').value; var resultBox = document.getElementById('itf-result'); var resultVal = document.getElementById('result-val'); var resultSteps = document.getElementById('result-steps'); if (valInput === "") { resultBox.style.display = "none"; return; } var x = parseFloat(valInput); var angleRad = 0; var error = ""; try { if (func === "asin") { if (x 1) error = "Domain Error: Input for arcsin must be between -1 and 1."; else angleRad = Math.asin(x); } else if (func === "acos") { if (x 1) error = "Domain Error: Input for arccos must be between -1 and 1."; else angleRad = Math.acos(x); } else if (func === "atan") { angleRad = Math.atan(x); } else if (func === "asec") { if (x > -1 && x -1 && x < 1) error = "Domain Error: Input for arccsc must be ≤ -1 or ≥ 1."; else angleRad = Math.asin(1 / x); } else if (func === "acot") { angleRad = Math.atan(1 / x); } if (error !== "") { resultBox.className = "result-box result-error"; resultVal.innerHTML = "Error"; resultSteps.innerHTML = error; resultBox.style.display = "block"; return; } var finalResult; var unitLabel; if (unit === "deg") { finalResult = (angleRad * 180) / Math.PI; unitLabel = "°"; } else { finalResult = angleRad; unitLabel = " rad"; } resultBox.className = "result-box result-success"; resultVal.innerHTML = finalResult.toFixed(4) + unitLabel; resultSteps.innerHTML = "Function: " + func + "(" + x + ")"; resultBox.style.display = "block"; } catch (e) { resultBox.className = "result-box result-error"; resultVal.innerHTML = "Error"; resultSteps.innerHTML = "An unexpected error occurred."; resultBox.style.display = "block"; } }

Leave a Comment