Sage Kirchoff
Go to Cocalc and create a Sage worksheet titled 'Kirchoff'
We will start with this set of equations.
First, define variables.
a, b, c = var('a b c')
Where a is I1, b is I2 and c is I3.
Then define the equations.
eq1 = -220*a + 5.8 - 370*b == 0
eq2 = 370*b + 150*c - 3.1 == 0
eq3 = a - b + c == 0
Then solve the equations for a, b and c.
solve([eq1,eq2,eq3],a, b, c)
Now, try to do it on your own. Here is a circuit.
First, draw the directions of the currents. Then write down the current conservation equations (Iin-Iout=0).
Draw 2 loops for the circuit. Then write down the Voltage conservation equations (Sum of voltage around a loop = 0) for each loop.
You should have three equations and three unknowns now.
In a comment in your code write down the 3
equations
Define your variables and equations and solve for I1, I2, and I3.
This was done using python (anaconda)
Get Answers For Free
Most questions answered within 1 hours.