Computer Modeling of Batteries from Nonlinear Circuit Elements | Synapse