[texhax] Happy Pi Day

Uwe Ziegenhagen ziegenhagen at gmail.com
Tue Mar 15 09:46:41 CET 2011


2011/3/14 Stephen Hicks <sdh33 at cornell.edu>

> After last year, I decided to have another go at it - this one's a
> little bigger than the last one, but it's as small as I could make it
> and still get enough precision to match the input and output radii.
>
>                              \let~\catcode~`z0
>                        ~`'01~`,02~`406~`@11~`=13zdef
>                    =41'~`4113zgdef,=$$41'~`4113zcountdef
>                 ,=++41'~`4113zlet,=AA'B!d6l;8p/Pa5Nr.eq3Ei[
>              DSm@|H9c]o1M?TgJk-CF2*tnIj7Rf,=""'2d-NDDRIeMj|Nir
>            -n-;.g./pjkCm1Bg;J7R3Ie!kmEae9djCEe6t8Dt at lpdCcM?or8m8
>          rat]F3i.1m;[5M*agFiotMTml7a/Rd/pMe/|lB5-jca*iCIc!??9n.g!/
>        mq2etc8MfSj8rmko-SSStB21plt?et5tNNT?BliPqi51Je8l|[-p.n.9/Tp[H
>       a9[gkcTk[d/!ie5]F!iT[ri|kPDPHdaNrBp[Tp!.ra1j;.i8fd851i?BoS5||2m
>      iE.F|Mq*.EcPq*-rB812?[C|MnCHnke|D13o|l3Rt/73p-[lf-/C3|kHan[Sqi!E2
>     ltCiJEa*@]22dNng8RrpnoBk5DtH*9cH!rRdiEj|3tiBrPBBHEn8l|.e5593o3JPp;g
>    i1pkS]Dp52SilElS-mt8l.2kgD]!ac]n-JPDReD@[JP?lNT6N-dEPNnNpIkNH/1 at gNFCd
>   e869SNnfCf9]*|6ni8BPeD7M519rq-;T3IPSt*6-F@@BP68D?-|/5DN?e5Hp3[BBHNk31|H
>  9ge.maeERBqTc3tp at pNIpDtEqMeS.pe5FmHJ.-eDmpmC.8P;g1!1/[PDt/JDH1Bl]@1qmlPiJ
>  N*PacC?1md;!!NE/k.S99I98gqpcn9c8NaEao[!1!kJfm99adfi1jp*/5Dea-R-1d8;I?|gPl
>
>  ][ai-;8kgHlJ?cS3S-ic;ceE.EJn|nke2;Sa1!FIoadp1EBCig*[//9|55DJ.cqDB at 6lERPP5-q
>  cC.go-n3fE5;7-9faJf8Fo]gcEHa6.midi at f-
> /CHNHe/R7p|dqp|@do-q2qB3NEalCold3?*8B6
>  D1jFq7-Ek at .icJ]l|F at -]n-HprI at pJNBCccN*;NR5lk.!5!M?M*ID;e at 7ce
> /!Ef[ggt5jiHP/]N
>  F-p1e[ESmS at g-kc;/p29[HE/MSnClCkMtn1ppHJ*g[f at Ilak6DeJM.
> .o.;?P/19I-?!BE*]a!lq
>  /an?5D7l9M]98d2M32|DJ2?5r|5Be|aa1J]|]Mn]TTqa?.k[ki2qrlfoHc at E
> ;8R9Djime;J]M5S
>
>  NiS;S[FPe91Ht-FR|aN..m6n99SeP7tT8qoRqecn97gHE/E!om?9]E9dPDTB*Pdt[dolk/kRj9o
>
>  ]/RH9NfD8Rq2ra/2/N[H5J.aI3SkadJpfRDFT/mr]ECdPm|TTJDe1.;9.!mk-a.qCorTm*DfDp?
>  Eqk2cI!JfNojFTPt at fSeCpaI!6C;TSd!|T?fFoNgJ at p
> |R8|aRHf16NPlrkiTnDgBdJ;Nn6D*ocn
>  kC8?r2TgF?68PDF7aN*9.68|1gg31.B-k3-I;5]2kRplq..]j|Eq5JmeE7iSI;;fp/25|/-gE
>  -Tdqf;D*S6RFg9@|n*mRJS?9orI/HNJiT|o!8,=[[',+]][$CC0C0$TT1T25+&&zadvance+*
>   *zmultiply+//zdivide+##zifnum[[+))zfi+((zifx+||zelse[[+>>zexpandafter+;
>    ;zxdef[[+::zgdef[[=z}}4142'>;zcsname41zendcsname'42,,[[=z{{41'zcsname
>     41zendcsname,[[=!!41';]']41,,+z\\zthe[[=PP4142$'}41'\C,&C1:A'42,,=V
>      V'>PA$(A]|>V),V=GG'TC/C10*C10&T-C/C10!'\T,,[=DD414243'>C{'43,*C50
>       >T{'42,&CT*C50>T{'41,&CTGGGGGzfutureletAV,=YY41',:V'(A$>Y|>D),!
>        3!.>D"$$RR2R38$YY3Y-R&Y1$XX5[[=SS4142$'41:]'42,,=OO'>S]$,[[=Q
>          Q41'T41*T41&CT,=HH'C0QXQYC-CQR,=BB'#X<RH#C<0P|O)&X1>B),=L
>            L'#Y<RX-Rzhbox'B,&Y2>L),=PP'zhskip0.5em,zvbox'zttL,[:
>              Y41',;A'bYryYge,=::41i'>{>'A,,~`412:stephen.hicks
>                 3.14159265358979323846264338327950288419716
>                    9399375105820974944592307816406286208
>                        99862803482534211706798214808
>                              ..........kthxbai
>
> Obviously this is best viewed with a fixed-width font.  You can run it
> by pasting into a file and running 'tex' on it (plain - not latex), or
> there's a PDF link on my blog.
>
> steve
> http://sdh33b.blogspot.com/2011/03/happy-pi-day-2011.html
> _______________________________________________
> TeX FAQ: http://www.tex.ac.uk/faq
> Mailing list archives: http://tug.org/pipermail/texhax/
> More links: http://tug.org/begin.html
>
> Automated subscription management: http://tug.org/mailman/listinfo/texhax
> Human mailing list managers: postmaster at tug.org
>


Hi Steve,

can you explain how it works? I am quite familiar with LaTeX  however I
can't make head or tail of the magic used in your example.

Uwe

-- 
Uwe Ziegenhagen
<http://www.uweziegenhagen.de>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/texhax/attachments/20110315/19452cfc/attachment.html>


More information about the texhax mailing list