﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<?application progid="SMath Solver" version="1.5.0.9678"?>
<worksheet xmlns="http://smath.info/schemas/worksheet/1.0">
  <settings ppi="144">
    <identity>
      <id>08a67c6d-326e-4288-b692-09dc022c87af</id>
      <revision>2</revision>
    </identity>
    <metadata lang="eng">
      <author>Martin Kraska</author>
    </metadata>
    <calculation>
      <precision>3</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="true">
      <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.75.9678.0" guid="a37cba83-b69c-4c71-9992-55ff666763bd" />
      <assembly name="MathRegion" version="1.75.9678.0" guid="02f1ab51-215b-466e-a74d-5d8b1cf85e8d" />
      <assembly name="SMath Optimization" version="1.1.0.0" guid="2a3f760c-03b9-4644-a90b-83e078e21f2a" />
      <assembly name="TextRegion" version="1.75.9678.0" guid="485d28c5-349a-48b6-93be-12a35a1c1e39" />
    </dependencies>
  </settings>
  <regions type="content">
    <region left="18" top="9" width="722" height="38" color="#000000" fontSize="10" isBreakable="false">
      <text lang="eng" fontFamily="Arial" fontSize="10">
        <content>
          <p>
            <b>Find (SMath Optimization 1.1): error 70 when the right-hand side is a plain 0 and the equation is an element of a symbolic vector</b>
          </p>
        </content>
      </text>
    </region>
    <region left="18" top="54" width="651" height="23" color="#000000" fontSize="10" isBreakable="false">
      <text lang="eng" fontFamily="Arial" fontSize="10">
        <content>
          <p>1) Equilibrium equations collected in a vector G, defined while A, B, M are still undefined (G stays symbolic):</p>
        </content>
      </text>
    </region>
    <region left="18" top="90" width="156" height="63" color="#000000" fontSize="10">
      <math decimalPlaces="4">
        <input>
          <e type="operand">G</e>
          <e type="operand">A</e>
          <e type="operand">B</e>
          <e type="operator" args="2">+</e>
          <e type="operand">10</e>
          <e type="operand" style="unit">N</e>
          <e type="operator" args="2">*</e>
          <e type="operator" args="2">-</e>
          <e type="operand">B</e>
          <e type="operand">2</e>
          <e type="operand" style="unit">m</e>
          <e type="operator" args="2">*</e>
          <e type="operator" args="2">*</e>
          <e type="operand">10</e>
          <e type="operand" style="unit">N</e>
          <e type="operator" args="2">*</e>
          <e type="operand">1</e>
          <e type="operand" style="unit">m</e>
          <e type="operator" args="2">*</e>
          <e type="operator" args="2">*</e>
          <e type="operator" args="2">-</e>
          <e type="operand">M</e>
          <e type="operand">A</e>
          <e type="operand">1</e>
          <e type="operand" style="unit">m</e>
          <e type="operator" args="2">*</e>
          <e type="operator" args="2">*</e>
          <e type="operator" args="2">-</e>
          <e type="operand">3</e>
          <e type="operand">1</e>
          <e type="function" args="5">mat</e>
          <e type="operator" args="2">:</e>
        </input>
      </math>
    </region>
    <region left="18" top="153" width="114" height="23" color="#000000" fontSize="10" isBreakable="false">
      <text lang="eng" fontFamily="Arial" fontSize="10">
        <content>
          <p>2) Guess values:</p>
        </content>
      </text>
    </region>
    <region left="18" top="180" width="58" height="24" color="#000000" fontSize="10">
      <math decimalPlaces="4">
        <input>
          <e type="operand">A</e>
          <e type="operand">1</e>
          <e type="operand" style="unit">N</e>
          <e type="operator" args="2">*</e>
          <e type="operator" args="2">:</e>
        </input>
      </math>
    </region>
    <region left="117" top="180" width="58" height="24" color="#000000" fontSize="10">
      <math decimalPlaces="4">
        <input>
          <e type="operand">B</e>
          <e type="operand">1</e>
          <e type="operand" style="unit">N</e>
          <e type="operator" args="2">*</e>
          <e type="operator" args="2">:</e>
        </input>
      </math>
    </region>
    <region left="225" top="180" width="71" height="24" color="#000000" fontSize="10">
      <math decimalPlaces="4">
        <input>
          <e type="operand">M</e>
          <e type="operand">1</e>
          <e type="operand" style="unit">N</e>
          <e type="operand" style="unit">m</e>
          <e type="operator" args="2">*</e>
          <e type="operator" args="2">*</e>
          <e type="operator" args="2">:</e>
        </input>
      </math>
    </region>
    <region left="18" top="207" width="359" height="23" color="#000000" fontSize="10" isBreakable="false">
      <text lang="eng" fontFamily="Arial" fontSize="10">
        <content>
          <p>3) Vector of expressions passed directly (the obvious call):</p>
        </content>
      </text>
    </region>
    <region left="18" top="234" width="197" height="63" color="#000000" fontSize="10">
      <math decimalPlaces="4">
        <input>
          <e type="operand">G</e>
          <e type="operand">A</e>
          <e type="operand">B</e>
          <e type="operand">M</e>
          <e type="function" args="4">Find</e>
        </input>
        <contract>
          <e type="operand" style="unit">N</e>
        </contract>
        <result action="numeric">
          <e type="operand">5</e>
          <e type="operand">5</e>
          <e type="operand">5</e>
          <e type="operand" style="unit">m</e>
          <e type="operator" args="2">*</e>
          <e type="operand">3</e>
          <e type="operand">1</e>
          <e type="function" args="5">mat</e>
        </result>
      </math>
    </region>
    <region left="18" top="297" width="315" height="23" color="#000000" fontSize="10" isBreakable="false">
      <text lang="eng" fontFamily="Arial" fontSize="10">
        <content>
          <p>4a) Right-hand sides with units (0 N, 0 N m): works</p>
        </content>
      </text>
    </region>
    <region left="18" top="333" width="272" height="92" color="#000000" fontSize="10">
      <math decimalPlaces="4">
        <input>
          <e type="operand">G</e>
          <e type="operand">1</e>
          <e type="function" args="2">el</e>
          <e type="operand">0</e>
          <e type="operand" style="unit">N</e>
          <e type="operator" args="2">*</e>
          <e type="operator" args="2">≡</e>
          <e type="operand">G</e>
          <e type="operand">2</e>
          <e type="function" args="2">el</e>
          <e type="operand">0</e>
          <e type="operand" style="unit">N</e>
          <e type="operand" style="unit">m</e>
          <e type="operator" args="2">*</e>
          <e type="operator" args="2">*</e>
          <e type="operator" args="2">≡</e>
          <e type="operand">G</e>
          <e type="operand">3</e>
          <e type="function" args="2">el</e>
          <e type="operand">0</e>
          <e type="operand" style="unit">N</e>
          <e type="operand" style="unit">m</e>
          <e type="operator" args="2">*</e>
          <e type="operator" args="2">*</e>
          <e type="operator" args="2">≡</e>
          <e type="operand">3</e>
          <e type="operand">1</e>
          <e type="function" args="5">mat</e>
          <e type="operand">A</e>
          <e type="operand">B</e>
          <e type="operand">M</e>
          <e type="function" args="4">Find</e>
        </input>
        <contract>
          <e type="operand" style="unit">N</e>
        </contract>
        <result action="numeric">
          <e type="operand">5</e>
          <e type="operand">5</e>
          <e type="operand">5</e>
          <e type="operand" style="unit">m</e>
          <e type="operator" args="2">*</e>
          <e type="operand">3</e>
          <e type="operand">1</e>
          <e type="function" args="5">mat</e>
        </result>
      </math>
    </region>
    <region left="18" top="432" width="271" height="23" color="#000000" fontSize="10" isBreakable="false">
      <text lang="eng" fontFamily="Arial" fontSize="10">
        <content>
          <p>4b) Same, right-hand sides plain 0: error 70</p>
        </content>
      </text>
    </region>
    <region left="18" top="459" width="207" height="92" color="#000000" fontSize="10">
      <math error="70" decimalPlaces="4">
        <input>
          <e type="operand">G</e>
          <e type="operand">1</e>
          <e type="function" args="2">el</e>
          <e type="operand">0</e>
          <e type="operator" args="2">≡</e>
          <e type="operand">G</e>
          <e type="operand">2</e>
          <e type="function" args="2">el</e>
          <e type="operand">0</e>
          <e type="operator" args="2">≡</e>
          <e type="operand">G</e>
          <e type="operand">3</e>
          <e type="function" args="2">el</e>
          <e type="operand">0</e>
          <e type="operator" args="2">≡</e>
          <e type="operand">3</e>
          <e type="operand">1</e>
          <e type="function" args="5">mat</e>
          <e type="operand">A</e>
          <e type="operand">B</e>
          <e type="operand">M</e>
          <e type="function" args="4">Find</e>
        </input>
        <result action="numeric">
          <e type="operand">#</e>
        </result>
      </math>
    </region>
    <region left="234" top="468" width="442" height="24" color="#000000" fontSize="10">
      <math>
        <input>
          <e type="operand">lastError</e>
        </input>
        <result action="numeric">
          <e type="operand" style="string">Find: Несовместимая размерность: невязка.</e>
        </result>
      </math>
    </region>
    <region left="18" top="558" width="304" height="23" color="#000000" fontSize="10" isBreakable="false">
      <text lang="eng" fontFamily="Arial" fontSize="10">
        <content>
          <p>4c) Equations written out explicitly, plain 0: works</p>
        </content>
      </text>
    </region>
    <region left="18" top="585" width="329" height="64" color="#000000" fontSize="10">
      <math decimalPlaces="4">
        <input>
          <e type="operand">A</e>
          <e type="operand">B</e>
          <e type="operator" args="2">+</e>
          <e type="operand">10</e>
          <e type="operand" style="unit">N</e>
          <e type="operator" args="2">*</e>
          <e type="operator" args="2">-</e>
          <e type="operand">0</e>
          <e type="operator" args="2">≡</e>
          <e type="operand">B</e>
          <e type="operand">2</e>
          <e type="operand" style="unit">m</e>
          <e type="operator" args="2">*</e>
          <e type="operator" args="2">*</e>
          <e type="operand">10</e>
          <e type="operand" style="unit">N</e>
          <e type="operator" args="2">*</e>
          <e type="operand">1</e>
          <e type="operand" style="unit">m</e>
          <e type="operator" args="2">*</e>
          <e type="operator" args="2">*</e>
          <e type="operator" args="2">-</e>
          <e type="operand">0</e>
          <e type="operator" args="2">≡</e>
          <e type="operand">M</e>
          <e type="operand">A</e>
          <e type="operand">1</e>
          <e type="operand" style="unit">m</e>
          <e type="operator" args="2">*</e>
          <e type="operator" args="2">*</e>
          <e type="operator" args="2">-</e>
          <e type="operand">0</e>
          <e type="operator" args="2">≡</e>
          <e type="operand">3</e>
          <e type="operand">1</e>
          <e type="function" args="5">mat</e>
          <e type="operand">A</e>
          <e type="operand">B</e>
          <e type="operand">M</e>
          <e type="function" args="4">Find</e>
        </input>
        <contract>
          <e type="operand" style="unit">N</e>
        </contract>
        <result action="numeric">
          <e type="operand">5</e>
          <e type="operand">5</e>
          <e type="operand">5</e>
          <e type="operand" style="unit">m</e>
          <e type="operator" args="2">*</e>
          <e type="operand">3</e>
          <e type="operand">1</e>
          <e type="function" args="5">mat</e>
        </result>
      </math>
    </region>
    <region left="18" top="657" width="263" height="23" color="#000000" fontSize="10" isBreakable="false">
      <text lang="eng" fontFamily="Arial" fontSize="10">
        <content>
          <p>4d) Single equation, element of G, plain 0:</p>
        </content>
      </text>
    </region>
    <region left="18" top="684" width="161" height="34" color="#000000" fontSize="10">
      <math decimalPlaces="4">
        <input>
          <e type="operand">G</e>
          <e type="operand">1</e>
          <e type="function" args="2">el</e>
          <e type="operand">0</e>
          <e type="operator" args="2">≡</e>
          <e type="operand">A</e>
          <e type="function" args="2">Find</e>
        </input>
        <result action="numeric">
          <e type="operand">9</e>
          <e type="operand" style="unit">N</e>
          <e type="operator" args="2">*</e>
        </result>
      </math>
    </region>
    <region left="18" top="729" width="723" height="38" color="#000000" fontSize="10" isBreakable="false">
      <text lang="eng" fontFamily="Arial" fontSize="10">
        <content>
          <p>In ordinary SMath arithmetic 0 and 0 N are interchangeable (e.g. 0 N + 0 = 0), so the solver result should not depend on the units of the zero.</p>
        </content>
      </text>
    </region>
  </regions>
</worksheet>