Relationship between voltage and current of batteries in series