Начало
Калькуляторы
Калькулятор синуса
Войдите в противоположность и угловые ценности гипотенузы, и JavaScript решит угол синуса для Вас.
Opposite Angle
Hypotenuse Angle
Sine Angle
JavaScript Calculators: калькулятор синуса
<!-- TWO STEPS TO INSTALL SINE 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 calcsin(form) { var opp = eval(form.opp.value); var hyp = eval(form.hyp.value); form.sin.value = opp/hyp; } // 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>Hypotenuse Angle</i></td> <td align=center><i>Sine Angle</i></td> </tr> <tr> <td align=center><input type=text name=opp size=15></td> <td align=center><input type=text name=hyp size=15></td> <td align=center><input type=text name=sin size=15></td> </tr> <tr> <td colspan=3 align=center><input type=button value="Calculate!" onclick="calcsin(this.form)"></td> </tr> </table> </form> </center> <!-- Script Size: 1.20 KB -->