»
EnglishFrenchVietnamese

Print - Cosine Calculator - JavaScriptBank.com

Full version: jsB@nk » Calculation » Math » Cosine Calculator
URL: https://www.javascriptbank.com/cosine-calculator.html

Cosine Calculator © JavaScriptBank.comEnter the adjacent and hypotenuse angle values and JavaScript will solve the cosine angle for you. Neat!

Full version: jsB@nk » Calculation » Math » Cosine Calculator
URL: https://www.javascriptbank.com/cosine-calculator.html



JavaScript
<SCRIPT LANGUAGE="JavaScript"><!-- Begin// TJay Tipps ([email protected])function calccos(form) {var adj = eval(form.adj.value);var hyp = eval(form.hyp.value);form.cos.value = adj/hyp;}// End --></script><!--    This script downloaded from www.JavaScriptBank.com    Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->


HTML
<form><table border=3 cellspacing=2 cellpadding=5 align=center><tr><td align=center><i>Adjacent Angle</i></td><td align=center><i>Hypotenuse Angle</i></td><td align=center><i>Cosine Angle</i></td></tr><tr><td align=center><input type=text name=adj size=15></td><td align=center><input type=text name=hyp size=15></td><td align=center><input type=text name=cos size=15></td></tr><tr><td colspan=3 align=center><input type=button value="Calculate!" onclick="calccos(this.form)"></td></tr></table></form><!--    This script downloaded from www.JavaScriptBank.com    Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->