MathGroup Archive 2005

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: spiral cipher


In article <d382rv$cdp$1 at smc.vnet.net>, János <janos.lobb at yale.edu> 
wrote:

> It is interesting to see it with different bases.  For example with  
> base 4
> 
> dat = First[RealDigits[Pi, 4, 15000]];
> 
> you get the upside down Americas.
> 
> It is very sensitive for base change, even after 15000.
> 
> Now if you add
> 
> In[5]:=
> << "DiscreteMath`GraphPlot`"
> In[72]:=
> datgp = (#1[[1]] ->
>        #1[[2]] & ) /@
>      Partition[dat, 2, 1];

You could just write

  datgp = Rule @@@ Partition[dat, 2, 1];

Cheers,
Paul

-- 
Paul Abbott                                   Phone: +61 8 6488 2734
School of Physics, M013                         Fax: +61 8 6488 1014
The University of Western Australia      (CRICOS Provider No 00126G)         
35 Stirling Highway
Crawley WA 6009                      mailto:paul at physics.uwa.edu.au 
AUSTRALIA                            http://physics.uwa.edu.au/~paul


  • Prev by Date: Numerical Optimization involving equation solving
  • Next by Date: Re: ! operator
  • Previous by thread: Re: Re: Re: spiral cipher
  • Next by thread: Re: spiral cipher