The left branch has a battery and a resistor; the right branch has a battery and a resistor; a resistor is the middle branch. Both positive terminals are on the top wire. The program already holds Kirchhoff's equations as a matrix. You will give it the right-hand side, check the energy, and name the battery that is being charged.
The idea. Unknowns: up through the left battery, up through the right battery, down the middle. Junction: . Loops: and .
Your tasks.
b, the right-hand side of the three equations, in the same order as the rows of A.supplied, the power the two batteries give together, .charged to "E1" or "E2": the battery whose current comes out negative.Have you tried it?
Do the tasks in the editor first, and run the checker after each one. Its hints help when a check fails. When you are ready, compare your code with this solution.
Log in to join the discussion.
Loading…