Full version: jsB@nk » Calculation » Math » Expression Solver
URL: https://www.javascriptbank.com/expression-solver.html
Just enter a math expression (with +, -, ', and / signs) and this script will evaluate the expression for you. Who needs a calculator when you have JavaScript.
Full version: jsB@nk » Calculation » Math » Expression Solver
URL: https://www.javascriptbank.com/expression-solver.html
<SCRIPT LANGUAGE="JavaScript"><!-- Beginfunction calc(form) {form.result.value=eval(form.expr.value);}// End --></SCRIPT><!-- This script downloaded from www.JavaScriptBank.com Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->
<form><table border=3 cellspacing=2 cellpadding=5><tr><td align=center><i>Equation</i></td><td align=center><i>Result</i></td></tr><tr><td align=center><input type=text name=expr size=15></td><td align=center><input type=text name=result size=15></td></tr><tr><td colspan=2 align=center><input type=button value="Calculate!" onclick="calc(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-->