inductance L is connected to a battery