Начало
Калькуляторы
Калькулятор тангенса
Внесите в противоположные и смежные угловые ценности, и JavaScript решит угол тангенса для Вас.
Opposite Angle
Adjacent Angle
Tangent Angle
JavaScript Calculators: калькулятор тангенса
<!-- TWO STEPS TO INSTALL TANGENT CALCULATOR: 1. Copy the coding into the HEAD of your HTML document 2. Add the last code into the BODY of your HTML document --> <!-- STEP ONE: Paste this code into the HEAD of your HTML document --> <SCRIPT LANGUAGE="JavaScript"> <!-- This script and many more are available online free at --> <! > <!-- Begin function calctan(form) { var opp = eval(form.opp.value); var adj = eval(form.adj.value); form.tan.value = opp/adj; } // End --> </script> <!-- STEP TWO: Copy this code into the BODY of your HTML document --> <center> <form> <table border=3 cellspacing=2 cellpadding=5> <tr> <td align=center><i>Opposite Angle</i></td> <td align=center><i>Adjacent Angle</i></td> <td align=center><i>Tangent Angle</i></td> </tr> <tr> <td align=center><input type=text name=opp size=15></td> <td align=center><input type=text name=adj size=15></td> <td align=center><input type=text name=tan size=15></td> </tr> <tr> <td colspan=3 align=center><input type=button value="Calculate!" onclick="calctan(this.form)"></td> </tr> </table> </form> </center> <!-- Script Size: 1.21 KB -->