The switching voltage
regulators work by transferring energy in discrete packets
through a low resistance switch, so it is possible to step-up,
step-down or invert. They use an inductor or a capacitor
as an energy-storing element in order to transfer energy
from the input to the output.