In an LR circuit connected to a battery