Script Categories













Calculators >>> Kinetic Energy.

Solve any of three variables in a Kinetic Energy equation using this script. Simply enter two of the three values and submit to find the value of the third variable.

MASS (kg)
VELOCITY (m/s)
KINETIC ENERGY (joules)

Add the below code to the <body> section of your page:

<script language="javascript" type="text/javascript">
/* Visit http://www.yaldex.com/ for full source code
and get more free JavaScript, CSS and DHTML scripts! */
<!-- Begin
function a_times_b(form) {
a = eval(form.a.value);
b = eval(form.b.value);
c = 1 / 2 * a * b * b;
form.c.value = c;
}
function c_div_b(form) {
c = eval(form.c.value);
b = eval(form.b.value);
a = c / (b * b);
form.a.value = a * 2;
}
function c_div_a(form) {
c = eval(form.c.value);
a = eval(form.a.value);
b = c / (1 / 2 * a);
form.b.value = Math.sqrt(c / (1 / 2 * a));
}
//  End -->
</script>
<table width=300 border=0>
<form name="fromcal">
<tr>
<td>
<center>MASS (kg)</td>
<td>
<center>VELOCITY (m/s)</td>
<td>
<center>KINETIC ENERGY (joules)</td>
</tr>
<tr>
<td>
<input type=number name="a" value=" " size=10></td>
<td>
<input type=number name=b value=" " size=10></td>
<td>
<input type=number name="c" value=" " size=10></td>
</tr>
<tr>
<td>
<input type=button value="Find Mass" onClick="c_div_b(this.form)"></td>
<td>
<input type=button value="Find Velocity" onClick="c_div_a(this.form)"></td>
<td>
<input type=button value="Find KE" onClick="a_times_b(this.form)"></td>
</tr>
</form>
</table>

JavaScript Editor Get Advanced
JavaScript and Ajax Editor,
Validator and Debugger!

1st JavaScript Editor.



Code was highlighted by 1st JavaScript Editor (The Best JavaScript Editor!).

Bitcoin Gambling Site . Site . become a lord


©