This code is in part derived from Engineering Equation Solver (EES) and is maintained for instructional use at the University of Wisconsin-Madison. 