﻿<?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="144">
    <identity>
      <id>c4a24433-6a6c-43b1-a141-2d9b72562cd5</id>
      <revision>429</revision>
    </identity>
    <metadata lang="rus">
      <author>уни</author>
    </metadata>
    <calculation>
      <precision>4</precision>
      <exponentialThreshold>5</exponentialThreshold>
      <trailingZeros>false</trailingZeros>
      <significantDigitsMode>false</significantDigitsMode>
      <mixedNumbers>false</mixedNumbers>
      <roundingMode>0</roundingMode>
      <approximateEqualAccuracy>3</approximateEqualAccuracy>
      <fractions>decimal</fractions>
    </calculation>
    <pageModel active="false" viewMode="2" printGrid="false" printAreas="true" simpleEqualsOnly="false" printBackgroundImages="true" hideElementsHighlightings="false">
      <paper id="9" orientation="Portrait" width="827" height="1169" />
      <margins left="39" right="39" top="49" bottom="49" />
      <header alignment="Center" color="#a9a9a9">&amp;[DATE] &amp;[TIME] - &amp;[FILENAME]</header>
      <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="SpecialFunctions" version="1.73.9126.0" guid="2814e667-4e12-48b1-8d51-194e480eabc5" />
      <assembly name="Maple Tools" version="1.1.8665.21209" guid="32dfd679-8cfd-483a-b79a-19d5ea838750" />
      <assembly name="TextRegion" version="1.73.9126.0" guid="485d28c5-349a-48b6-93be-12a35a1c1e39" />
      <assembly name="AreaRegion" version="1.73.9126.0" guid="4974b228-4974-44cf-8274-bf2936b4a766" />
      <assembly name="Mathcad Toolbox" version="0.5.9130.35983" guid="ddc09821-49f1-4c21-a829-6499de0a8f06" />
    </dependencies>
  </settings>
  <regions type="content">
    <region left="0" top="0" 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>
    <region top="36" color="#000000">
      <area collapsed="false">
        <title lang="rus">
          <content>
            <p>tiny c compiler</p>
          </content>
        </title>
      </area>
      <region left="0" top="54" width="659" height="180" color="#000000" fontSize="10">
        <math>
          <input>
            <e type="operand">program</e>
            <e type="operand">mode</e>
            <e type="function" args="2">tcc</e>
            <e type="operand">lines</e>
            <e type="operand" style="string"></e>
            <e type="operator" args="2">:</e>
            <e type="operand">file</e>
            <e type="operand" style="string">./tmp/test.c</e>
            <e type="operator" args="2">:</e>
            <e type="operand">cmd</e>
            <e type="operand" style="string">\"tcc -run {file}\"</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">line</e>
            <e type="operand">program</e>
            <e type="operand">line</e>
            <e type="operand">line</e>
            <e type="operand" style="string">\</e>
            <e type="operand" style="string">\\</e>
            <e type="function" args="3">strrep</e>
            <e type="operand" style="string">"</e>
            <e type="operand" style="string">\"</e>
            <e type="function" args="3">strrep</e>
            <e type="operator" args="2">:</e>
            <e type="operand">lines</e>
            <e type="operand">lines</e>
            <e type="operand">line</e>
            <e type="operand" style="string"> \n</e>
            <e type="function" args="3">concat</e>
            <e type="operator" args="2">:</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="operand">lines</e>
            <e type="operand" style="string">//'\n</e>
            <e type="operand">lines</e>
            <e type="operand" style="string">//'</e>
            <e type="function" args="3">concat</e>
            <e type="operator" args="2">:</e>
            <e type="operand">file</e>
            <e type="operand">lines</e>
            <e type="function" args="2">writeline</e>
            <e type="function" args="1">maple</e>
            <e type="operand">type</e>
            <e type="operand" style="string">if(mode≡STRING,string,name)</e>
            <e type="function" args="1">str2num</e>
            <e type="operator" args="2">:</e>
            <e type="operand">2</e>
            <e type="operand">mode</e>
            <e type="operand">2</e>
            <e type="function" args="2">mod</e>
            <e type="operator" args="2">-</e>
            <e type="operand">cmd</e>
            <e type="function" args="1">ssystem</e>
            <e type="function" args="2">op</e>
            <e type="operand">type</e>
            <e type="function" args="2">convert</e>
            <e type="function" args="1">maple</e>
            <e type="operand">6</e>
            <e type="operand">1</e>
            <e type="function" args="8">line</e>
            <e type="operator" args="2">:</e>
          </input>
        </math>
      </region>
      <region left="18" top="108" width="109" height="63" color="#000000" fontSize="10">
        <math>
          <input>
            <e type="operand">STRING</e>
            <e type="operand">0</e>
            <e type="operator" args="2">:</e>
            <e type="operand">EXITCODE</e>
            <e type="operand">1</e>
            <e type="operator" args="2">:</e>
            <e type="operand">SYMBOL</e>
            <e type="operand">2</e>
            <e type="operator" args="2">:</e>
            <e type="operand">3</e>
            <e type="operand">1</e>
            <e type="function" args="5">line</e>
          </input>
        </math>
      </region>
      <region left="9" top="243" width="295" height="29" color="#000000" fontSize="10">
        <math optimize="2">
          <input>
            <e type="operand">program</e>
            <e type="function" args="1">tcc</e>
            <e type="operand">program</e>
            <e type="operand">SYMBOL</e>
            <e type="function" args="2">tcc</e>
            <e type="operand">1</e>
            <e type="operand">1</e>
            <e type="function" args="3">line</e>
            <e type="operator" args="2">:</e>
          </input>
        </math>
      </region>
      <region top="270" color="#000000">
        <area terminator="true" />
      </region>
    </region>
    <region left="0" top="297" width="284" height="141" color="#000000" bgColor="#ffffff" fontSize="10">
      <mathcadblock width="274" height="133" seqop="mat">
        <input>
          <e type="operand">program</e>
        </input>
      </mathcadblock>
    </region>
    <region left="9" top="306" width="256" height="120" color="#000000" fontSize="10">
      <text lang="rus" fontFamily="Arial" fontSize="10">
        <content>
          <p style="font-family: Consolas; background-color: #ffffff;">
            <span style="font-family: Consolas; font-size: 10px;">#include &lt;stdio.h&gt;</span>
            <span />
            <br />
            <br />
            <span style="font-family: Consolas; font-size: 10px;">int main()</span>
            <span />
            <br />
            <span style="font-family: Consolas; font-size: 10px;">{</span>
            <span />
            <br />
            <span style="font-family: Consolas; font-size: 10px;">    printf( "mat(1,2,3,4,2,2)" );</span>
            <span />
            <br />
            <span style="font-family: Consolas; font-size: 10px;">    return 0;</span>
            <span />
            <br />
            <span style="font-family: Consolas; font-size: 10px;">}</span>
            <span />
          </p>
        </content>
      </text>
    </region>
    <region left="324" top="333" width="162" height="45" color="#000000" bgColor="#ffff80" fontSize="10">
      <math>
        <input>
          <e type="operand">program</e>
          <e type="function" args="1">tcc</e>
        </input>
        <result action="numeric">
          <e type="operand">1</e>
          <e type="operand">2</e>
          <e type="operand">3</e>
          <e type="operand">4</e>
          <e type="operand">2</e>
          <e type="operand">2</e>
          <e type="function" args="6">mat</e>
        </result>
      </math>
    </region>
    <region left="0" top="477" width="46" height="24" color="#000000" fontSize="10">
      <math>
        <input>
          <e type="operand">a</e>
          <e type="operand">1</e>
          <e type="operator" args="2">:</e>
        </input>
      </math>
    </region>
    <region left="63" top="477" width="46" height="24" color="#000000" fontSize="10">
      <math>
        <input>
          <e type="operand">b</e>
          <e type="operand">2</e>
          <e type="operator" args="2">:</e>
        </input>
      </math>
    </region>
    <region left="0" top="504" width="433" height="26" color="#000000" fontSize="10">
      <math>
        <input>
          <e type="operand" style="string">int main(){printf("{a}" "{b}");}</e>
          <e type="operand">STRING</e>
          <e type="function" args="2">tcc</e>
        </input>
        <result action="numeric">
          <e type="operand" style="string">12</e>
        </result>
      </math>
    </region>
    <region left="468" top="504" width="103" height="23" color="#000000" fontSize="10" isBreakable="false">
      <text lang="rus" fontFamily="Arial" fontSize="10">
        <content>
          <p>returns a string</p>
        </content>
      </text>
    </region>
    <region left="0" top="531" width="465" height="26" color="#000000" fontSize="10">
      <math>
        <input>
          <e type="operand" style="string">int main(){printf("{a}" "{b}\n");}</e>
          <e type="operand">STRING</e>
          <e type="function" args="2">tcc</e>
        </input>
        <result action="numeric">
          <e type="operand" style="string">12\n</e>
        </result>
      </math>
    </region>
    <region left="0" top="576" width="425" height="26" color="#000000" fontSize="10">
      <math>
        <input>
          <e type="operand" style="string">int main(){printf("{a}" "{b}");}</e>
          <e type="operand">EXITCODE</e>
          <e type="function" args="2">tcc</e>
        </input>
        <result action="numeric">
          <e type="operand">2</e>
        </result>
      </math>
    </region>
    <region left="477" top="576" width="273" height="23" color="#000000" fontSize="10" isBreakable="false">
      <text lang="rus" fontFamily="Arial" fontSize="10">
        <content>
          <p>returns a ssystem(...)[0] - result of operation</p>
        </content>
      </text>
    </region>
    <region left="0" top="603" width="321" height="26" color="#000000" fontSize="10">
      <math>
        <input>
          <e type="operand" style="string">printf("{a}" "{b}")</e>
          <e type="operand">EXITCODE</e>
          <e type="function" args="2">tcc</e>
        </input>
        <result action="numeric">
          <e type="operand">1</e>
        </result>
      </math>
    </region>
    <region left="0" top="630" width="353" height="26" color="#000000" fontSize="10">
      <math>
        <input>
          <e type="operand" style="string">int main(){return 42;}</e>
          <e type="operand">EXITCODE</e>
          <e type="function" args="2">tcc</e>
        </input>
        <result action="numeric">
          <e type="operand">42</e>
        </result>
      </math>
    </region>
    <region left="0" top="684" width="417" height="26" color="#000000" fontSize="10">
      <math>
        <input>
          <e type="operand" style="string">int main(){printf("{a}" "{b}");}</e>
          <e type="operand">SYMBOL</e>
          <e type="function" args="2">tcc</e>
        </input>
        <result action="numeric">
          <e type="operand">12</e>
        </result>
      </math>
    </region>
    <region left="414" top="684" width="325" height="23" color="#000000" fontSize="10" isBreakable="false">
      <text lang="rus" fontFamily="Arial" fontSize="10">
        <content>
          <p>returns a ssystem(...)[1] - standard output as number</p>
        </content>
      </text>
    </region>
    <region left="0" top="711" width="355" height="26" color="#000000" fontSize="10">
      <math>
        <input>
          <e type="operand" style="string">int main(){printf("{a}" "{b}");}</e>
          <e type="function" args="1">tcc</e>
        </input>
        <result action="numeric">
          <e type="operand">12</e>
        </result>
      </math>
    </region>
    <region left="414" top="711" width="152" height="23" color="#000000" fontSize="10" isBreakable="false">
      <text lang="rus" fontFamily="Arial" fontSize="10">
        <content>
          <p>returns tcc(..., mode=2)</p>
        </content>
      </text>
    </region>
    <region left="0" top="738" width="403" height="26" color="#000000" fontSize="10">
      <math>
        <input>
          <e type="operand" style="string">int main(){printf("%f",{a}+{b}+0.5);}</e>
          <e type="function" args="1">tcc</e>
        </input>
        <result action="numeric">
          <e type="operand">3.5</e>
        </result>
      </math>
    </region>
    <region left="0" top="765" width="403" height="26" color="#000000" fontSize="10">
      <math>
        <input>
          <e type="operand" style="string">int main(){printf("%f",(3.14/3));}</e>
          <e type="function" args="1">tcc</e>
        </input>
        <result action="numeric">
          <e type="operand">1.0467</e>
        </result>
      </math>
    </region>
  </regions>
</worksheet>