Ohm's Law Calculator
Enter two known values and press
Solve
to calculate unknowns.
Volts
(Volts)
Resistance
(Ohms)
Current
(Amps)
Power
(Watts)
Instructions:
1: Copy and paste the following script in the HEAD section of your page:
Select all...
<script language="javascript"> function solveform(){ var d=document.f1; var v1=d.volts.value; var o1=d.ohms.value; var a1=d.amps.value; var w1=d.watts.value; if (a1 && o1){w1=Math.pow(a1, 2)*o1; v1=o1*a1;} else if (a1 && v1){w1=a1*v1; o1=v1/a1;} else if (v1 && o1){w1=Math.pow(v1, 2)/o1; a1=v1/o1;} else if (w1 && a1){v1=w1/a1; o1=w1/Math.pow(a1,2);} else if (w1 && v1){a1=w1/v1; o1=Math.pow(v1,2)/w1;} else if (a1 && v1){w1=v1*a1; o1=v1/a1;} else if (w1 && o1){v1=Math.sqrt(w1*o1); a1=Math.sqrt(w1/o1);} d.amps.value=a1; d.volts.value=v1; d.watts.value=w1; d.ohms.value=o1; v1=o1=a1=w1=0; document.f1.reset.focus(); } </script>
2: Copy and paste the following HTML in the BODY section of your page:
Select all...
Enter two known values and press
Solve
to calculate unknowns.
Volts
(Volts)
Resistance
(Ohms)
Current
(Amps)
Power
(Watts)
Copyright © 2008-2015 Ted J. Mieske
All Rights Reserved.