Skip to content

Instantly share code, notes, and snippets.

@dren95
dren95 / ohmslaw.py
Created December 4, 2014 03:55
willie script for solving ohms law, also runnable from commandline
from __future__ import division
import math
import re
import collections
import bisect
import sys
si_prefix_unordered = {
'y': 1e-24, # yocto
'z': 1e-21, # zepto