User:Dakoder

From Simple English Wikipedia, the free encyclopedia

Octave Script[change | change source]

%;*******************************************************************************
%;*       Last edited date: 1st June 2016 Ver 1.0
%;*       langtons_ant_3.m 
%;*       m-file for langtons ant (closed form)
%;*
%;*       Written by: Graham Medland
%;*       gmail.com: graham.medland@
%;*******************************************************************************
clear
E=100              % Size of lattice.
N=11200         % Number of iterations.
z(1:1:E^2)=-1;
k(1:1:E^2)=0;
k(1)=(E^2+E)/2;
for t=1:1:N;
k(t+1)=mod(k(t)+real(round((0.5*(E+1)*exp(i*pi/4*(trace(diag(z))-E^2)))-(0.5*(E-1)*exp(-i*pi/4*(trace(diag(z))-E^2)))))+imag(round((0.5*(E+1)*exp(i*pi/4*(trace(diag(z))-E^2)))-(0.5*(E-1)*exp(-i*pi/4*(trace(diag(z))-E^2))))),E^2);
z(k(t+1)+1)=real(exp(2*i*pi/4*(1+z(k(t+1)+1))));
endfor;

imagesc(reshape(z,E,E))
disp("\n      Langtons Ant characteristic equation Delta_k \n      By Graham Medland )")

Copy and paste into octave-online to see Langtons ant.

Wave equation[change | change source]

Topological representation of 52 iterations of the bounded wave equation. R=Imaginary axis, r=Real axis

Mapping the ant world to a one dimensional flat torus or manifold using Eulers identity,

This can now be recast using partial fractions into the form.

With variables.

  • this represents the orthogonal changes in direction (Electric / Magnetic field lines).
  • and be the complex conjugates of and
  • and where the length of one side of the lattice.
  • and is the basis vector for the z axis, the same principle applies to the other two axis.

We create the complex oscillator (which gives rise to the discrete rotations) where.

and.

Now we create the rotate equation, using the sum over all paths integral, see Feynman chessboard since the ant visits all of the squares over time.

Noting that

And since the continuum is elliptical we need two of these functions

Now we make the Quantum rotor equations

These rotors (torsion based spinor's) when combined expand to form,

This then becomes a superposition of both rotors where in the limit as t tends to infinity we get an equal spread of both functions. At the start of the iteration process, after four iterations of we get which represents a step change in direction of phase, after another four iterations of we get back to , these 8 steps are represented by a simple sum,

Thus in its native state as a 2x2 SU2 Special Unitary Matrix, we have

and

The Langtons ant Binary matrix becomes an oscillating spinor (a model for a single subatomic particle), with the matrix increased in size we start to see a complex chaotic system which now models an ensemble of particles (a model for the Higgs field interaction).

Quadratic form[change | change source]

Starting with a quadratic equation with and forming the eigen wave functions (roots of the quadratic), expanding, we get
Ths simplifies to

Therefore the Langtons ant wave equation can be expressed as a quadratic equation.

As an SHM equation we can remove , rearange to form the 'langtons ant wave equation'.

Thermodynamics[change | change source]

The super attractor of the bounded wave equation (Langtons ant) produces a Gaussian distributed system, where at the start of the algorithm there is a low value of entropy (since all squares are the same colour) after several million iterations half of the squares are now black and the other half are white and the ant reaches a steady state.

Langtons ant iterated 100,000,000 times. Shows Gaussian distributed noise . Created using DOSEMU in 32bit DPMI x86 assembly language. If you pause the video at the start you will see long lines at 45 degrees, these are the 104 attractors or (highways) which are soon destroyed as the bounded ant constantly revisits and smears them out from the invert and rotate rules of the algorithm

References[change | change source]

Category:Thermodynamics Category:Chaos theory Category:Equations Category:Spin models