home *** CD-ROM | disk | FTP | other *** search
- [HILBERT.CNV]
- [Include #^]
- [G. Cisneros, 25.8.86]
-
- [right box]
- (()()()(
- (0,);
- (,(IF,(0),(#m,<=>),<0>,(+)(b,<0>)(g,(c,(t)))(-)(a,<0>)<<
- >>(g,(c,(t)))<<
- >>(a,<0>)(-)(g,(c,(t)))(b,<0>)(+)));
- )) a
-
- [left box]
- (()()()(
- (0,);
- (,(IF,(0),(#m,<=>),<0>,(-)(a,<0>)(g,(c,(t)))(+)(b,<0>)<<
- >>(g,(c,(t)))<<
- >>(b,<0>)(+)(g,(c,(t)))(a,<0>)(-)));
- )) b
-
- [vector increments]
- (()()()(
- (0,<9><,>0);
- (1,0<,><9>);
- (2,-<9><,>0);
- (3,0<,>-<9>);
- )) c
-
- [graph a segment]
- (()()(0)(
- (-<0><,>0,(L)(until,0,<0>,(%G,12,al=1,cx=(X),dx=(y)),(#p,<=>),));
- (0<,>-<0>,(D)(until,0,<0>,(%G,12,al=1,cx=(x),dx=(Y)),(#p,<=>),));
- (<0><,>0,(R)(until,0,<0>,(%G,12,al=1,cx=(X),dx=(y)),(#p,<=>),));
- (0<,><0>,(U)(until,0,<0>,(%G,12,al=1,cx=(x),dx=(Y)),(#p,<=>),));
- )) g
-
- [main program]
- (()(
- ((%r,ARR:xy[1])) x
- ((%r,ARR:xy[2])) y
- ((%r,CTR:X)(REC|JQDO320+320/L#I|)) X
- ((%r,CTR:Y)(REC|JQDO200+200/L#I|)) Y
- ((%W,CTR:X,(x),-1)(l)) L
- ((%W,CTR:Y,(y),-1)(d)) D
- ((%W,CTR:X,(x),1)(r)) R
- ((%W,CTR:Y,(y),1)(u)) U
- ((%W,ARR:xy[1],(REC|z<@xJQDO0$ryGO-,320+320/L#I>|))) l
- ((%W,ARR:xy[2],(REC|z<@yJQDO0$ryGO-,200+200/L#I>|))) d
- ((%W,ARR:xy[1],(REC|z<@xJQDO0$ryGO+320/L#I>|))) r
- ((%W,ARR:xy[2],(REC|z<@yJQDO0$ryGO+200/L#I>|))) u
- ((%r,ARR:xy[3])) t
- ((%W,ARR:xy[3],(REC|z<@tJQDO^4/L#I>|))) +
- ((%W,ARR:xy[3],(REC|z<@tJQDO3+4/L#I>|))) -
- )()(
- ((IVL/1/7/)<>,(IF,(8 9),<=>.(#f,199/<(>2^<=>-1<)>),<8>.<9>,<<
- >>(%Or,ARR:xy,3,6)(%Or,CTR:X)(%Or,CTR:Y)<<
- >>(%W,ARR:xy[1],60)(%W,ARR:xy[2],0)(%W,ARR:xy[3],0)<<
- >>(%G,0,al=4)(%G,11,bl=0,bh=1)<<
- >>(a,<8>)(%G,12,al=1,cx=(x),dx=(y))(REC/RL/)<<
- >>(%G,0,al=3)));
- (,(%r,TTY:digit? <(>1-6<)> )):
- ))
-
- [end]