﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<?application progid="SMath Solver" version="1.3.0.9126"?>
<worksheet xmlns="http://smath.info/schemas/worksheet/1.0">
  <settings ppi="96">
    <identity>
      <id>43c7a4ee-9bc7-4eb2-b513-98e65e2f15e4</id>
      <revision>21</revision>
    </identity>
    <calculation>
      <precision>4</precision>
      <exponentialThreshold>5</exponentialThreshold>
      <trailingZeros>false</trailingZeros>
      <significantDigitsMode>false</significantDigitsMode>
      <mixedNumbers>false</mixedNumbers>
      <roundingMode>0</roundingMode>
      <approximateEqualAccuracy>0</approximateEqualAccuracy>
      <fractions>decimal</fractions>
    </calculation>
    <pageModel active="true" viewMode="0" printGrid="false" printAreas="true" simpleEqualsOnly="false" printBackgroundImages="true" hideElementsHighlightings="true">
      <paper id="9" orientation="Portrait" width="827" height="1169" />
      <margins left="39" right="39" top="49" bottom="49" />
      <footer alignment="Center" color="#a9a9a9">&amp;[PAGENUM] / &amp;[COUNT]</footer>
      <backgrounds />
    </pageModel>
    <dependencies>
      <assembly name="SMath Core" version="1.73.9126.0" guid="a37cba83-b69c-4c71-9992-55ff666763bd" />
      <assembly name="MathRegion" version="1.73.9126.0" guid="02f1ab51-215b-466e-a74d-5d8b1cf85e8d" />
      <assembly name="Custom Functions" version="1.1.8726.29023" guid="18dadffd-79a3-4cf9-aee1-d66deb0ea720" />
      <assembly name="SpecialFunctions" version="1.73.9126.0" guid="2814e667-4e12-48b1-8d51-194e480eabc5" />
      <assembly name="TextRegion" version="1.73.9126.0" guid="485d28c5-349a-48b6-93be-12a35a1c1e39" />
      <assembly name="PlotRegion" version="1.73.9126.0" guid="c451c2b5-798b-4f08-b9ec-b90963d1ddaa" />
    </dependencies>
  </settings>
  <regions type="content">
    <region left="18" top="18" width="208" height="27" color="#008080" fontSize="12" isBreakable="false">
      <text lang="eng" fontFamily="Consolas" fontSize="10">
        <content>
          <p style="font-weight: bold; font-size: 12px; color: #008080;">Conway's game of live.</p>
        </content>
      </text>
    </region>
    <region left="18" top="54" width="498" height="24" color="#000000" fontSize="10">
      <text lang="eng" fontFamily="Consolas" fontSize="10">
        <content>
          <p>You can define your own starting matrix here, or use a random one:</p>
        </content>
      </text>
    </region>
    <region left="18" top="90" width="225" height="36" color="#000000" fontSize="10">
      <math>
        <input>
          <e type="operand">M</e>
          <e type="operand">1</e>
          <e type="operand">20</e>
          <e type="function" args="2">range</e>
          <e type="operand">1</e>
          <e type="operand">20</e>
          <e type="function" args="2">range</e>
          <e type="function" args="3">el</e>
          <e type="operand">2</e>
          <e type="function" args="1">random</e>
          <e type="operator" args="2">:</e>
        </input>
      </math>
    </region>
    <region left="324" top="90" width="100" height="26" color="#000000" fontSize="10">
      <math>
        <description active="true" position="Right" lang="eng" width="15">
          <content>
            <p>Cycles</p>
          </content>
        </description>
        <input>
          <e type="operand">τ</e>
          <e type="operand">1</e>
          <e type="operand">100</e>
          <e type="function" args="2">range</e>
          <e type="operator" args="2">:</e>
        </input>
      </math>
    </region>
    <region left="18" top="144" width="542" height="383" color="#000000" fontSize="10">
      <math>
        <input>
          <e type="operand">M</e>
          <e type="operand">t</e>
          <e type="function" args="2">CGL</e>
          <e type="operand">m</e>
          <e type="operand">M</e>
          <e type="function" args="1">rows</e>
          <e type="operator" args="2">:</e>
          <e type="operand">n</e>
          <e type="operand">M</e>
          <e type="function" args="1">cols</e>
          <e type="operator" args="2">:</e>
          <e type="operand">1</e>
          <e type="operand">2</e>
          <e type="function" args="4">mat</e>
          <e type="operand">r</e>
          <e type="operand">1</e>
          <e type="operand">m</e>
          <e type="function" args="2">range</e>
          <e type="operator" args="2">:</e>
          <e type="operand">c</e>
          <e type="operand">1</e>
          <e type="operand">n</e>
          <e type="function" args="2">range</e>
          <e type="operator" args="2">:</e>
          <e type="operand">RC</e>
          <e type="operand">r</e>
          <e type="operand">c</e>
          <e type="function" args="3">el</e>
          <e type="operand">r</e>
          <e type="operand">c</e>
          <e type="operand">1</e>
          <e type="operand">2</e>
          <e type="function" args="4">mat</e>
          <e type="operator" args="2">:</e>
          <e type="operand">1</e>
          <e type="operand">3</e>
          <e type="function" args="5">mat</e>
          <e type="operand">M'</e>
          <e type="operand">0</e>
          <e type="operator" args="2">:</e>
          <e type="operand">P</e>
          <e type="operand">0</e>
          <e type="operator" args="2">:</e>
          <e type="operand">k</e>
          <e type="operand">1</e>
          <e type="operand">m</e>
          <e type="operand">n</e>
          <e type="operator" args="2">*</e>
          <e type="bracket">(</e>
          <e type="function" args="2">range</e>
          <e type="operator" args="2">:</e>
          <e type="operand">1</e>
          <e type="operand">3</e>
          <e type="function" args="5">mat</e>
          <e type="operand">u</e>
          <e type="operand">k</e>
          <e type="function" args="2">ν</e>
          <e type="operand">u</e>
          <e type="operand">1</e>
          <e type="operator" args="2">-</e>
          <e type="operand">1</e>
          <e type="operand">1</e>
          <e type="operand">2</e>
          <e type="function" args="4">mat</e>
          <e type="function" args="1">max</e>
          <e type="operand">u</e>
          <e type="operand">1</e>
          <e type="operator" args="2">+</e>
          <e type="operand">k</e>
          <e type="operand">1</e>
          <e type="operand">2</e>
          <e type="function" args="4">mat</e>
          <e type="function" args="1">min</e>
          <e type="function" args="2">range</e>
          <e type="operator" args="2">:</e>
          <e type="operand">x</e>
          <e type="operand">1</e>
          <e type="operand">m</e>
          <e type="function" args="2">range</e>
          <e type="operand">y</e>
          <e type="operand">1</e>
          <e type="operand">n</e>
          <e type="function" args="2">range</e>
          <e type="operand">LN</e>
          <e type="operand">M</e>
          <e type="operand">x</e>
          <e type="operand">m</e>
          <e type="function" args="2">ν</e>
          <e type="operand">y</e>
          <e type="operand">n</e>
          <e type="function" args="2">ν</e>
          <e type="function" args="3">el</e>
          <e type="function" args="1">sum</e>
          <e type="bracket">(</e>
          <e type="operand">M</e>
          <e type="operand">x</e>
          <e type="operand">y</e>
          <e type="function" args="3">el</e>
          <e type="operator" args="2">-</e>
          <e type="function" args="1">eval</e>
          <e type="operator" args="2">:</e>
          <e type="operand">M</e>
          <e type="operand">x</e>
          <e type="operand">y</e>
          <e type="function" args="3">el</e>
          <e type="operand">1</e>
          <e type="operator" args="2">≡</e>
          <e type="operand">M'</e>
          <e type="operand">x</e>
          <e type="operand">y</e>
          <e type="function" args="3">el</e>
          <e type="operand">LN</e>
          <e type="operand">2</e>
          <e type="operand">3</e>
          <e type="function" args="3">lele</e>
          <e type="function" args="1">eval</e>
          <e type="operator" args="2">:</e>
          <e type="operand">M'</e>
          <e type="operand">x</e>
          <e type="operand">y</e>
          <e type="function" args="3">el</e>
          <e type="operand">LN</e>
          <e type="operand">3</e>
          <e type="operator" args="2">≡</e>
          <e type="function" args="1">eval</e>
          <e type="operator" args="2">:</e>
          <e type="function" args="3">if</e>
          <e type="operand">2</e>
          <e type="operand">1</e>
          <e type="function" args="4">line</e>
          <e type="function" args="3">for</e>
          <e type="function" args="3">for</e>
          <e type="operand">M</e>
          <e type="operand">M'</e>
          <e type="operator" args="2">:</e>
          <e type="operand">P</e>
          <e type="operand">k</e>
          <e type="function" args="2">el</e>
          <e type="operand">RC</e>
          <e type="operand">k</e>
          <e type="function" args="2">el</e>
          <e type="operand" style="string"> </e>
          <e type="operand" style="string">■</e>
          <e type="operand">1</e>
          <e type="operand">2</e>
          <e type="function" args="4">mat</e>
          <e type="operand">1</e>
          <e type="operand">M</e>
          <e type="operand">k</e>
          <e type="function" args="2">el</e>
          <e type="operator" args="2">+</e>
          <e type="function" args="2">el</e>
          <e type="operand">15</e>
          <e type="operand" style="string">green</e>
          <e type="function" args="4">augment</e>
          <e type="function" args="1">eval</e>
          <e type="operator" args="2">:</e>
          <e type="operand">P</e>
          <e type="operand">m</e>
          <e type="operand">n</e>
          <e type="operator" args="2">*</e>
          <e type="operand">1</e>
          <e type="operator" args="2">+</e>
          <e type="function" args="2">el</e>
          <e type="operand">1</e>
          <e type="operand">0</e>
          <e type="operand">t</e>
          <e type="function" args="1">num2str</e>
          <e type="operand" style="string"> cycles</e>
          <e type="function" args="2">concat</e>
          <e type="operand">1</e>
          <e type="operand">3</e>
          <e type="function" args="5">mat</e>
          <e type="operator" args="2">:</e>
          <e type="function" args="1">mat2sys.1</e>
          <e type="operand">8</e>
          <e type="operand">1</e>
          <e type="function" args="10">line</e>
          <e type="operator" args="2">:</e>
        </input>
      </math>
    </region>
    <region left="540" top="162" width="197" height="104" color="#000000" fontSize="10">
      <text lang="eng" fontFamily="Consolas" fontSize="10">
        <content>
          <p>Notes:<br /><br />M matrix with 0 and 1's<br />LN: Live neighbors<br />ν(u,k) world border <br />  (could be wraparounded)</p>
        </content>
      </text>
    </region>
    <region left="540" top="360" width="131" height="24" color="#000000" fontSize="10">
      <text lang="eng" fontFamily="Consolas" fontSize="10">
        <content>
          <p>&lt;- Rules go here</p>
        </content>
      </text>
    </region>
    <region left="18" top="540" width="330" height="355" color="#000000" fontSize="10" showInputData="false">
      <plot grid="false" axes="false" type="2d" render="lines" scale_x="2.83452595819538" scale_y="2.5247141277021" scale_z="0.716525680184884" rotate_x="0" rotate_y="0" rotate_z="0" transpose_x="-158" transpose_y="-149" transpose_z="0" animate="τ" frameRate="5">
        <input>
          <e type="operand">M</e>
          <e type="operand">t</e>
          <e type="function" args="2">CGL</e>
        </input>
      </plot>
    </region>
    <region left="18" top="909" width="60" height="24" color="#000000" fontSize="10">
      <math>
        <input>
          <e type="operand">Alvaro</e>
        </input>
      </math>
    </region>
    <region left="297" top="909" width="233" height="26" color="#000000" fontSize="10">
      <math>
        <input>
          <e type="operand">4</e>
          <e type="function" args="1">appVersion</e>
        </input>
        <result action="numeric">
          <e type="operand" style="string">1.73.9126.0</e>
        </result>
      </math>
    </region>
  </regions>
</worksheet>