SHARE
TWEET

Untitled

a guest Jun 16th, 2019 56 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var('vi1 ik il r1 r2 r3')
  2. eq1=Eq(0+vi1-r1*(1e-3-il)-r2*(1e-3-ik),0)
  3. eq2=Eq(0-r2*(ik-1e-3)-3-r3*ik,0)
  4. eq3=Eq(vi1-2*(-r2*(ik-1e-3))+3-r1*(il-1e-3)
  5. ans=solve([eq1,eq2,eq3,vi1)],[vi1,ik,il])
  6. ans[vi1].subs({r1:1e3,r2:2e3,r3:1e3})
  7. 5.00000000000000
  8. ans[ik].subs({r1:1e3,r2:2e3,r3:1e3})
  9. -0.000333333333333333
  10. ans[il].subs({r1:1e3,r2:2e3,r3:1e3})
  11. -0.00133333333333333
  12. (-r2*(ac[ik]-1e-3)).subs({r1:1e3,r2:2e3,r3:1e3})
  13. 2.66666666666667
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top