Signature programs by Andrew Garrard

This signature programs are rather long, a little too long for a signature, but nevertheless interesting engough.

ART raytracing sig - try giving it various numbers of parameters. (Usual provisos about -lm and including math.h if necessary)

typedef double f;typedef struct{f x,y,z;}p;p L={1,-2,1},B,s={0,-30,0},e,C;f
b,n,A,D,F;f d(p a,p b){return a.x*b.x+a.y*b.y+a.z*b.z;}p q(p a,p b){p v;v.x=
a.x-b.x;v.y=a.y-b.y;v.z=a.z-b.z;return v;}f i(p U,p V,p W){D=2*d(C=q(V,U),W)
;A=d(W,W);if((F=D*D-4*A*(d(C,C)-1))<0)return-1;D=(d(q(V,U),q(V,U))<1?sqrt(F)
:-sqrt(F))-D;return D>0?D/2/A:-1;}r(a){return 1<<a%6&"@EEE@!!`EEG:!!AA`AA"[a
/6]-33;}p g(a){p v;v.x=a/6-9;v.z=a%6-2.5-1/sqrt(97);v.y=-1;return v;}c(p u,p
t){int P=-1,T=0,S=-1;for(b=-u.y/t.y;++P<114;r(P)&&(n=i(g(P),u,t))>=0&&n<b&&(
b=n,S=P));B.x=u.x+b*t.x;B.y=u.y+b*t.y;B.z=u.z+b*t.z;for(P=-1;++P<114;P!=S&&r
(P)&&i(g(P),B,L)>=0&&(T=1));return T?0:S<0?-6/sqrt(d(L,L))*L.y:(b=d(q(B,g(S)
),L)/sqrt(d(L,L)))<0?0:9*b;}main(m){e.y=30;for(e.z=5;(e.z-=.6/m)>-5;puts("")
)for(e.x=-11;e.x<11;e.x+=.3/m)printf("%c",c(s,e)["MHRXY]i:' "]);return!puts(
"Andrew Garrard -- xxx@xxx.xx.xx -- xxxxxxxxxx@xxxxxxx.xxxxx.xx.xx");}
"Compressed" ART raytracing sig (Huffman coded - I now have a script which generates these. I'm working on an LZ77 version, which might actually make the sig *smaller*...)
#define Q (x++,a[x/6]-33&1<<x%6)/* gcc sig.c -o a;a>b.c;gcc b.c -lm;a.out */
char *a="Z/>)*EW3KDHN+U3`Z/>)*EW?F896Z,J.H4XR_@8`VNKD,I4MU$[_2^Z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*7\\39L*N>NG7S<!";int x=-1;main(c){for(c=0;c++<1266;
printf("%c",(Q?Q?Q?Q?7:26:45:Q?Q?Q?Q?50:Q?40:Q?69:82:Q?Q?Q?Q?68:79:0:Q?14:Q
?84:32:-22:61:Q?Q?56:Q?Q?Q?80:85:Q?13:65:Q?Q?Q?75:76:Q?67:70:Q?Q?Q?71:77:Q?
33:39:Q?78:87:73:57)+32));return 0;}/* Andrew Garrard -<>- xxx@xxx.xx.xx */

The Signature Program homepage