JavaScript Source Code 3000: Calculators: Kinetic Energy
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. Neat!
MASS (kg) VELOCITY (m/s) KINETIC ENERGY (joules)
JavaScript Source Code 3000: Calculators: Kinetic Energy Simply click inside the window below, use your cursor to highlight the script, and copy (type Control-c or Apple-c) the script into a new file in your text editor (such as Note Pad or Simple Text) and save (Control-s or Command-s). The script is yours!!!
<!-- TWO STEPS TO INSTALL KINETIC ENERGY:
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 -->
<HEAD>
<SCRIPT LANGUAGE="JavaScript"> <!-- Original: David K (davidwkjr@hotmail.com) -->
<! > <! >
<!-- 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> </HEAD>
<!-- STEP TWO: Copy this code into the BODY of your HTML document -->