- #1
stripes
- 266
- 0
Homework Statement
Find V out by determining three equations with three unknowns. Use Mathematica to solve the system to find V out. See image for details
Homework Equations
--
The Attempt at a Solution
Here is my code:
[itex]\text{eq1}=v-i_3*(2r)-i_3*r-i_3*(2r)[/itex]
[itex]\text{eq2}=-v+\left(i_2-i_3\right)*(2r)+i_2*r+\left(i_2-i_1\right)*(2r)[/itex]
[itex]\text{eq3}=v-\left(i_2-i_1\right)*(2r)-i_1*(2r)[/itex]
Then I just solve the system in Mathematica by:
Code:
sol=Solve[{eq1==0,eq2==0,eq3==0},{i[SUB]1[/SUB],i[SUB]2[/SUB],i[SUB]3[/SUB]}]
After this I'm not sure how to find V out. In mathematica, I figured it would be:
Code:
vout = v - i[SUB]3[/SUB]*(2 r) /. sol
But the answer is not correct. We should end up with V out = (5/8)*v, but when calculate it with the above equations/code, I get v out = (3/5)v.
If someone could help I would appreciate it.
Attachments
Last edited: