1.0.2 • Published 9 years ago

ohms-law v1.0.2

Weekly downloads
5
License
MIT
Repository
github
Last release
9 years ago

ohms-law

NPM version build status js-standard-style

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