Parallel

Calculate parallel resistance for any number of resistors

 * 1) !/usr/bin/python3

import sys import numpy

elements = sys.argv[1:] a=numpy.array(elements,dtype=float) print (str(elements), '->', str(1/sum(1/a)),'\n')