ohms-law
v1.0.2
Published
Ohm's Law is made from 3 mathematical equations that shows the relationship between electric voltage, current and resistance.
Downloads
17
Maintainers
Readme
ohms-law
Ohm's Law is made from 3 mathematical equations that shows the relationship between electric voltage, current and resistance.
Installation
% npm install ohms-law
Usage
var ohmsLaw = require('ohms-law')
var voltage = ohmsLaw.getVoltage(0.01, 150)
// 1.5 (volts)
var resistance = ohmsLaw.getResistance(1.5, 0.01)
// 150 (ohms)
var current = ohmsLaw.getCurrent()
// 0.01 (amps)
Tests
% npm test