| 1 |
.PS |
| 2 |
# ex05DPV.m4 |
| 3 |
darrow_init |
| 4 |
|
| 5 |
Kalman: [ |
| 6 |
fillval = 0.8 |
| 7 |
|
| 8 |
boxht = 0.35 |
| 9 |
boxwid = 1.5*boxht |
| 10 |
dx = boxht/5 |
| 11 |
circlerad = boxht*3/8 |
| 12 |
extlen=4*dx |
| 13 |
indel = boxht/3 |
| 14 |
define(`dlthick',dlthick*3/4) |
| 15 |
|
| 16 |
define(`overbar',`line right textht*0.8 \ |
| 17 |
with .c at last box.c + ((`$1')*textht,0.7*textht)') |
| 18 |
|
| 19 |
COb: box fill_ "CO"; overbar(0.5) |
| 20 |
CO:box fill_ with .nw at last box.se+(dx,-dx) "CO" |
| 21 |
CbOb: box fill_ with .nw at last box.se+(dx,-dx) "CO" |
| 22 |
overbar(-0.5); overbar(0.5) |
| 23 |
CbO: box fill_ with .nw at last box.se+(dx,-dx) "CO"; overbar(-0.5) |
| 24 |
|
| 25 |
dline(from CbO.s down_ dx,,t,,!-) |
| 26 |
dright |
| 27 |
{Sum: circle invis at (CO,Here)} |
| 28 |
darrow(to Sum.e) |
| 29 |
|
| 30 |
SW: (COb.w,Sum.s)+(-3*dx-extlen/2,-dx) |
| 31 |
NE: (CbO.e,COb.n)+(dx,dx) |
| 32 |
right_; |
| 33 |
SB: shadebox(box wid NE.x-SW.x ht NE.y-SW.y with .sw at SW) |
| 34 |
|
| 35 |
U: COb.w-(3*dx+extlen,0) |
| 36 |
{"svg_it(U)" wid 0.1 rjust at U} |
| 37 |
dline(from U right_ extlen+dx,,t,,|-) |
| 38 |
TU: dtee(R) |
| 39 |
{darrow(to COb.w,t)} |
| 40 |
dline(to (Here,CO),t,t) |
| 41 |
{Dum: circle invis at (Here,Sum)} |
| 42 |
dtee(L) |
| 43 |
{darrow(to CO.w,t)} |
| 44 |
{D: box "D" wid boxwid/2 ht boxwid/2 at 0.5<Here,Dum.n>} |
| 45 |
darrow(to D.n,t) |
| 46 |
darrow(from D.s to Dum.n,,,,,,!-) |
| 47 |
|
| 48 |
dline(up_ from CO.n to (CO,COb)-(0,indel),,t,,!-) |
| 49 |
dleft; darrow(to (COb.e,Here)) |
| 50 |
|
| 51 |
dline(up_ from CbOb.n to (CbOb,COb),,t,,!-) |
| 52 |
dleft; darrow(to COb.e) |
| 53 |
|
| 54 |
dline(from CbO.n-(indel,0) up_ CbOb.y-CbO.n.y,,t,,!-) |
| 55 |
dleft; darrow(to CbOb.e) |
| 56 |
|
| 57 |
dline(up_ from CbO.n to (CbO,CO),,t,,!-) |
| 58 |
dleft |
| 59 |
dline(to (CbOb.w,Here)); darrow(to CO.e) |
| 60 |
|
| 61 |
dline(up_ from CbO.n+(indel,0) to (CbO,COb)+(indel,indel),,t,,!-) |
| 62 |
dleft; darrow(to (COb.e,Here)) |
| 63 |
|
| 64 |
darrow(from CO.s to Sum.n,,,,,,!-) |
| 65 |
|
| 66 |
darrow(left_ from Sum.w to Dum.e) |
| 67 |
dline(from Dum.w to (SB.w-(0.1,0),Dum)); darrow(to (U,Here)) |
| 68 |
{"svg_it(Y)" rjust} |
| 69 |
move left 0.23 |
| 70 |
|
| 71 |
circle at Sum |
| 72 |
circle at Dum |
| 73 |
] |
| 74 |
Coxeter: [ |
| 75 |
# Coxeter.m4 |
| 76 |
|
| 77 |
customlinethick = 1.5 |
| 78 |
|
| 79 |
linethick = customlinethick |
| 80 |
define(`dotrad_',`(3/2*linethick pt__)') |
| 81 |
|
| 82 |
Orig: (0,0) |
| 83 |
for i=0 to 4 do { P[i]: dot(at (i*linewid,0)) } |
| 84 |
line from Orig to P[4] |
| 85 |
P[-1]: dot(at (Rect_(linewid, 120))); line to Orig |
| 86 |
P[-2]: dot(at (Rect_(linewid,-120))); line to Orig |
| 87 |
|
| 88 |
Pa: dot(at P[4]+(linewid,0)); "svg_it(a)" at last [].n above |
| 89 |
arrow from P[4] to Pa chop linewid/4 |
| 90 |
Pd: dot(at Pa+(linewid,0)); "svg_it(d)" at last [].w rjust |
| 91 |
Pe: dot(at Pd+(linewid,0)); "svg_it(e)" at last [].n above |
| 92 |
Pf: dot(at Pe+(linewid,0)); "svg_it(f)" at last [].n above |
| 93 |
Pb: dot(at Pd+(Rect_(linewid,120))); "svg_it(b)" at last [].w rjust |
| 94 |
Pc: dot(at Pd+(Rect_(linewid,-120))); "svg_it(c)" at last [].w rjust |
| 95 |
line from Pb to Pd then to Pc |
| 96 |
line from Pd to Pf |
| 97 |
|
| 98 |
define(`customarc', |
| 99 |
`pushdef(`dfillcolor',`0.7,0.7,0.7') linethick_(0.4); dnl |
| 100 |
Darc(,centre=`$1';rad=linewid;startdeg= (`$2');enddeg=(`$3'); |
| 101 |
thick=linewid/6; wid=linewid*0.3; ht=linewid/6; ends=<->) |
| 102 |
linethick_(customlinethick); popdef(`dfillcolor')') |
| 103 |
|
| 104 |
customarc((linewid,-linewid/3), 25,155) |
| 105 |
"svg_it(d)" at (linewid,linewid*2/3) |
| 106 |
customarc((2*linewid,-linewid/3), 25,155) |
| 107 |
"svg_it(e)" at (2*linewid,linewid*2/3) |
| 108 |
customarc((3*linewid,-linewid/3), 25,155) |
| 109 |
"svg_it(f)" at (3*linewid,linewid*2/3) |
| 110 |
customarc(Orig,130,230); "svg_it(a)" at (Rect_(linewid,180)) |
| 111 |
customarc(Orig, 10,110); "svg_it(b)" at (Rect_(linewid, 60)) |
| 112 |
customarc(Orig,-110,-10); "svg_it(c)" at (Rect_(linewid,-60)) |
| 113 |
|
| 114 |
] with .sw at Kalman.se+(15bp__,0) |
| 115 |
[ |
| 116 |
linethick = 5 |
| 117 |
Darrow(right_ Coxeter.wid, |
| 118 |
thick=0.3;wid=0.55;ht=0.55;ends=<->; innershade=(0,1,1);outline=(0,0,1)) |
| 119 |
] with .sw at Coxeter.nw+(0,0.3) |
| 120 |
.PE |