- import Circ;
- real u = 0.5cm;
- TwoTerminal B = source((0,0), DC, 90, "$45\U{V}$", "$V$");
- pair a = B.end+(0,u);
- pair b = B.beg-(0,u);
- TwoTerminal Ra = resistor(a, normal, 0, "$38\U{k\Ohm}$", "$R_1$");
- TwoTerminal Ia = current(Ra.end, 0, "", "$I_1$");
- TwoTerminal Rv = resistor(a+(0,4u), normal, 0, "$95\U{k\Ohm}$", "$R_v$");
- TwoTerminal Iv = current(Rv.end, 0, "", "$I_v$");
- TwoTerminal Rb = resistor(Ia.end, normal, 0, "$27\U{k\Ohm}$", "$R_2$");
- TwoTerminal I = current((Rb.end.x, (a.y+b.y)/2), -90, "", "$I_T$");
- wire(Rb.end, I.beg, nsq);
- wire(I.end, b, udsq);
- wire(b, B.beg, nsq);
- wire(a, B.end, nsq);
- wire(a, Rv.beg, nsq);
- wire(Iv.end, Ia.end, rlsq);
+import Circ;
+real u = 0.5cm;
+TwoTerminal B = source((0,0), DC, 90, "$45\U{V}$", "$V$");
+pair a = B.end+(0,u);
+pair b = B.beg-(0,u);
+TwoTerminal Ra = resistor(a, normal, 0, "$38\U{k\Ohm}$", "$R_1$");
+TwoTerminal Ia = current(Ra.end, 0, "", "$I_1$");
+TwoTerminal Rv = resistor(a+(0,4u), normal, 0, "$95\U{k\Ohm}$", "$R_v$");
+TwoTerminal Iv = current(Rv.end, 0, "", "$I_v$");
+TwoTerminal Rb = resistor(Ia.end, normal, 0, "$27\U{k\Ohm}$", "$R_2$");
+TwoTerminal I = current((Rb.end.x, (a.y+b.y)/2), -90, "", "$I_T$");
+wire(Rb.end, I.beg, nsq);
+wire(I.end, b, udsq);
+wire(b, B.beg, nsq);
+wire(a, B.end, nsq);
+wire(a, Rv.beg, nsq);
+wire(Iv.end, Ia.end, rlsq);