NOVELTY - The machine has energy sources for charging initially uncharged or discharged batteries (103, 109b). Energy sinks discharge initially charged batteries (101a, 101b, 109a). A variable resistance load (104) controls current flow between the energy sources and the energy sinks. A computer (102) coordinates and controls the machine and monitors and tracks the batteries. A circuit enables transfer of energy between the discharged or uncharged batteries to the charged batteries such that the discharged batteries get charged and the initially charged batteries get discharged.    USE - Machine for manufacturing and testing batteries i.e. lithium polymer or ion phosphate batteries, for electric automotive vehicle applications.    ADVANTAGE - The circuit enables the transfer of the energy between the discharged or uncharged batteries to the charged batteries such that the discharged batteries get charged and the initially charged batteries get discharged such that some or all of the energy stored in the initially charged batteries is partly or fully moved to the initially uncharged or discharged batteries, thus reducing an energy required to charge the initially uncharged or discharged batteries and an energy required to cool the energy sinks when an environment in-which the energy sinks are located requires cooling. The machine discharges the charged batteries into the discharged batteries concurrently such that the energy stored in the charged batteries is transferred into the discharged batteries, thus eliminating a need and cost of converting energy from an AC mains for charging the discharged batteries and reducing time required for manufacturing an equipment to discharge the charged batteries and charge the discharged batteries sequentially. The machine discharges the charged batteries into the discharged batteries, thus reducing cooling costs for a manufacturing facility when the energy stored in the discharged batteries is converted into heat during a battery discharge process of the charged batteries. The machine repeatedly tests each battery during the charging or discharging cycle such that a battery failure can be found prior to testing the batteries at the completion of the cycle, thus enabling the failed batteries in a string to be replaced and saving the time and energy required to repeat the charging or discharging cycle. The machine serializes the batteries and automates movement of the batteries through a charging, storage and discharging circuit by a scanner, a robot and a computer, so that human errors in sorting the batteries are reduced or eliminated. The machine expands the number of batteries being discharged by adding more batteries in series or in parallel and expands the number of batteries being charged by adding more batteries in series or in parallel along with associated interconnections and software, so that a volume of the batteries, which can be concurrently processed in a single machine can be increased.    DESCRIPTION OF DRAWING(S) - The drawing shows a circuit block diagram of a machine for manufacturing and testing batteries.    Initially charged batteries (101a, 101b, 109a)    Computer (102)    Initially uncharged or discharged batteries (103, 109b)    Variable resistance load (104)    Switch (108a)