A circuit with only a capacitor and an inductor, with no resistors, exchanges energy indefinitely between electrical and magnetic form: it is the electrical analogue of a pendulum. Adding a resistance leads to damped oscillations, with three possible regimes depending on the value of .