Previous Up Next

Mandelbrot set signature programs

Signature programs are short programs that people have been using as part of their signature. They are small (2 to 4 lines) programs, that are often rather cryptic because they have to save space as much as possible. Below a collection of Mandelbrot set signature programs is given.

Bernhard Muenzer

His Mandelbrot signature programs used the variables m,u,e, and g,s,f, which are part of his email address. He did not create his Mandelbrot signature program from scratch, but has lost the original version unfortunately. The oldest version of his signature program, which he has kept is from 1993, and is still 4 lines long.
main(){char*c=" _.+=#\n)rezneuM drahnreB(";int x,t,y;float a,
23&&x<28?34-x:t>31?0:t>>4?5:t>>3?4:t>>2?3:t>>1?2:1]);}}} /*xxx@xxx.xx*/
Arjan Kenter has archived one that already has m,u,e, and ,g,s,f as variable names:
int m,u,e;float g,s,f;char*c=" _.+=#\n)rezneuM drahnreB(xxxxxx@xxx";ma\
In this archive there is also a newer 3-line version that has an uglier Mandelbrot:
int m,u,e;float g,s,f;char*_=") drahnreB\n";main(){for(
Somewhere here Jay R. Hill's version banches off (it contains the `char*_' part); which he soon dismissed again for his current version to preserve a few more bytes.

Vicky Robinson

Here is even a program containing a virus:
 int V,i,c=0;float k,y,R;main(){for(;c<1863;putchar((++c>918&&952>c
?60-V:i)["\nRV- .gis s'ydobyna ni ton m'I tuB"]))for(i=y=k=0;(V=c%81
(on alt.folklore.urban, Vicky Robinson's words `But I'm not in anybody's sig' caused an epidemy of the VI signature virus).

Wei-Hwa Huang

/* (Wei-Hwa Huang) */
int m,u,e=0;float l,_,I;main() {for(;e<1863; putchar((++e>924&&952>
e?60-m:u) ["\n  ude.hcetlac.occ@gnauhw   ]"])) for(u=_=l=0;(m=e%81)
<80&&I*l+_*_ <6&&25>++u;_=2*l*_+e/81*.09-1,l=I)I=l*l-_*_-2+.035*m;}
This on is based on the one of Bernhard Muenzer above. It contains the m,u,e variable names.

Marko Aalto

/*   xxxxx.xxxxx@xxxxxxxx.xx    |  */
main(){char h[2001]=" Ma+\x1b[H",*k,c;float z=20,D,a,i,s,y;for(;k=h+7,z*=

Carson Cheung

float o=0.075,h=1.5,T,r,O,l,I;int _,L=80,s=3200;main(){for(;s%L||
(h-=o,T= -2),s;4 -(r=O*O)<(l=I*I)|++ _==L&&write(1,(--s%L?_<L?--_
%6:6:7)+"World! \n",1)&&(O=I=l=_=r=0,T+=o /2))O=I*2*O+h,I=l+T-r;}
[ Carson Cheung, Computer Science, University Of Manchester, UK ]

E.B. van Koperen

/* Try me and stagger. With x size as parameter! y size=auto scaling!*/float R,
y=1.5,x,r,A,P,B;int u,h=80,n=80,s;main(c,v)int c;char **v;{s=(c>1?(h=atoi(v[1]

David Johnston

float l,I,Q,_,o;int E;main(){I=1.125;while(I>=-1.225){for(l=

Patrik Lundin

A Mandelbrot plotter:
main(c){float t,x,y,b=-2,a=b;for(;b-=a>2?.1/(a=-2):0,b<2;putchar(30+
He wrote more C signature.

Laurent Demailly

main(){char x,y=-1,t,n,*c="-=+X# \nrf.mpsbo.toylph@ld";while(++y<25)
{for(x=0;x<80;){float a,b,d,i=2.2/25*y-1.1,r=2.8/80*x++-2.1;t=b=d=0;do{
He also wrote a PostScript signature.

Jay R. Hill

int main(){float g,s,f,r,i;char*_="/,;<mhl/brnoAmmhik<mmhI!/S!x`K\n";int m,u,e
)*i)-96)*s+32*r<3?22:16+32*r+16*s<1?29:0;if(u==(s=f=0))do g=s*s-f*f+r;while((f
Note the exact tests for a point in the period one cardioid (marked H) and the period two circle (at -1, marked J). These tests also save a lot of time. This one is based on one of
Bernhard Muenzer's versions of the program. It contains the g,s,f variables.

Here is an even shorter version by him:

main(){int f,g,h=0;float a,b,c,d,e;for(;h<3920;putchar("!/-,;<:lnb/bh`r\

Andrew Garrard

/* o._.o  (C) 1996 Andrew Garrard, xxxxxxxxxx@xxxxxxx.xxxxx.xx.xx  o~\_/~o */
/* ((^)) */main(c){float x,y=2,X,Y,Z;for(;(x=-2)<(y-=.1);puts(""/* (/\ /\) */
/* O)_(O */ ))for(;(X=x+=.05)<2;c=printf("%c","  .-:|O8M#"[c])) /* (\@o@/) */
/* O/ \O */for(Y=y;X*X+Y*Y<4&&c++<8;Z=x+X*X-Y*Y,Y=y+2*X*Y,X=Z);}/* ~~~ ~~~ */
Cute but long:
/*  /)_(\  */int main(void) {float x,y=2,X, /* Yet   m   f */
/* (/. .\) */Y,_,i;int c;for(;(y-=.1)>-2;){ /*      o    a */
/*  \(T)/  */for(x=-2;(x+=.1)<2;){X=x;Y=y;c /*     r   . c */
/* ()   () */=0;while((X*X+Y*Y)<=4&&c++<7){ /* f  e   g  t */
/*  ()-()  */_=x+X*X-Y*Y;i=2*X*Y+y;X=_;Y=i; /* r     i   o */
/* Andrew  */}printf("%c",*(" .-:|O8M#"+c)) /* o    s    r */
/* Garrard */;}printf("\n");}} /* fluppeteer   m  the    y */
He has some more C signature programs

Robert Harley

In .pgm format:
float x,y=1,s=1./128,X,Y,V;main(i){for(puts("P5 257 127 63");X=Y=0,x?/*Rob H.*/
He has some more C signature programs

John Holder

float o=0.075,h=1.5,T,r,O,l,I;int _,L=80,s=3200;main(){for(;s%L||
(h-=o,T= -2),s;4 -(r=O*O)<(l=I*I)|++ _==L&&write(1,(--s%L?_<L?--_
%6:6:7)+"Mandel \n",1)&&(O=I=l=_=r=0,T+=o /2))O=I*2*O+h,I=l+T-r;}
/* - UNIX specialist, Paranet, Inc, Denver,CO */

Signature programs by Mark VandeWettering

/* __  __ __   ____      __*/ float e,a,b,c,d;main(i){for(;b<4;b+=.1){for(a=0;
/*|  \/  |\ \ / /\ \    / /*/ a<4;a+=.06){c=d=0;for(i=99;--i&&c*c+d*d<4;)e=c*c
/*| |\/| | \ V /  \ \/\/ / */ -d*d+a-2,d=2*c*d+b-2,c=e;putchar("X =."[i&3]);}
/*|_|  |_ark\_/ande\_/\_/ettering <> */ puts("");}}
He also as Brainf**k to C compiler signature program.

Signature programs | home and email