Refactoring for more compact code in ac_sim.cpp, resistor.cpp, inductor.cpp, volt_ac.cpp, volt_dc.cpp
Refactoring for more compact code in vpulse.cpp,vrect.cpp