| 1 |
.PS |
| 2 |
# ex18.m4 |
| 3 |
cct_init(svg_font(Times,11bp__)) |
| 4 |
|
| 5 |
[ |
| 6 |
"svg_it(v`'svg_sub(i))" wid 0.1 rjust; dot |
| 7 |
resistor(right_ dimen_) ; llabel(,svg_it(R`'svg_sub(i))) |
| 8 |
T: dot |
| 9 |
line right_ linewid/4 |
| 10 |
A: opamp with .In1 at Here |
| 11 |
|
| 12 |
line from A.In2 to (T,A.In2) |
| 13 |
resistor(down_ dimen_) ; rlabel(,svg_it(R`'svg_sub(g))) |
| 14 |
ground(,T) |
| 15 |
|
| 16 |
line right_ dimen_ from A.Out |
| 17 |
diode(up_ dimen_); dot |
| 18 |
{line right_ linewid/2; dot; "svg_it(v`'svg_sub(o))" wid 0.2 ljust } |
| 19 |
resistor(left_ to (A.Out,Here)) ; rlabel(,svg_it(R`'svg_sub(o))); dot |
| 20 |
{ diode(down_ to A.Out); dot } |
| 21 |
line to (T,Here) then to T |
| 22 |
] |
| 23 |
[ |
| 24 |
# ex19.m4 |
| 25 |
define(`dimen_',dimen_*1.25) |
| 26 |
|
| 27 |
B: battery(up_ dimen_*2/3); rlabel(,V) |
| 28 |
move down dimen_/4 |
| 29 |
resistor(up_ dimen_); rlabel(,R,) |
| 30 |
{move up textht*1.5 } |
| 31 |
inductor(right_ elen_); b_current(i); rlabel(,L) |
| 32 |
{ capacitor(down_ to (Here,B.start)); rlabel(,C); llabel(+,v,-) } |
| 33 |
line right_ dimen_ |
| 34 |
diode(down_ to (Here,B.start),T); b_current(h(v)) |
| 35 |
{ move right 0.3} |
| 36 |
line to B.start |
| 37 |
] with .nw at last [].ne+(20bp__,0) |
| 38 |
|
| 39 |
command "</g>" # end font |
| 40 |
.PE |