If an uncharged capacitor is charged by connecting it to a battery, then the amount of energy lost as heat is: