﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<?application progid="SMath Studio Desktop" version="0.99.7579.3197"?>
<worksheet xmlns="http://smath.info/schemas/worksheet/1.0">
  <settings ppi="120">
    <identity>
      <id>d848f6ed-d544-46b1-9c22-9607509d8462</id>
      <revision>3</revision>
    </identity>
    <calculation>
      <precision>2</precision>
      <exponentialThreshold>5</exponentialThreshold>
      <trailingZeros>false</trailingZeros>
      <significantDigitsMode>false</significantDigitsMode>
      <roundingMode>0</roundingMode>
      <fractions>decimal</fractions>
    </calculation>
    <pageModel active="false" viewMode="2" printGrid="false" printAreas="true" simpleEqualsOnly="false" printBackgroundImages="true">
      <paper id="1" orientation="Portrait" width="850" height="1100" />
      <margins left="37" right="37" top="37" bottom="50" />
      <footer alignment="Center" color="#a9a9a9">&amp;[PAGENUM] / &amp;[COUNT] &amp;[DATE] &amp;[TIME] - &amp;[FILENAME]</footer>
      <backgrounds />
    </pageModel>
    <dependencies>
      <assembly name="SMath Studio Desktop" version="0.99.7579.3197" guid="a37cba83-b69c-4c71-9992-55ff666763bd" />
      <assembly name="Math Region" version="0.99.7579.3197" guid="02f1ab51-215b-466e-a74d-5d8b1cf85e8d" />
      <assembly name="Custom Functions" version="1.1.7486.2690" guid="18dadffd-79a3-4cf9-aee1-d66deb0ea720" />
      <assembly name="MaximaPlugin" version="1.98.7100.23756" guid="44011c1e-5d0d-4533-8e68-e32b5badce41" />
      <assembly name="TextRegion" version="1.11.7579.3197" guid="485d28c5-349a-48b6-93be-12a35a1c1e39" />
      <assembly name="Nonlinear Solvers" version="1.1.7097.23301" guid="618b7e96-330a-406a-b055-9e577672f0b8" />
      <assembly name="X-Y Plot Region (JXCharts)" version="0.2.7575.39600" guid="c12231ec-4873-43c1-a7d0-a167ebd17066" />
    </dependencies>
  </settings>
  <regions type="content">
    <region left="0" top="0" width="775" height="138" color="#0080ff" fontSize="10">
      <text lang="eng" width="766">
        <p>Equations a and b are simplified versions of maximum deflection in a beam under different loading conditions. All variables are known except for x, the length of the beam. I would like to superimpose these equations, but combining the 3rd order and 4th order polynomials seems only to result in errors. Equation c is a deflection limit which is also based on x. 

The ultimate goal of this worksheet is to find the longest beam where maximum deflection is less than/equal to the deflection limit: the first intersection (greater than zero) where c and d intersect.</p>
      </text>
    </region>
    <region left="0" top="144" width="126" height="59" color="#000000" fontSize="10">
      <math>
        <input>
          <e type="operand">a</e>
          <e type="operand">0.00018</e>
          <e type="operand">x</e>
          <e type="operand">3</e>
          <e type="operator" args="2">^</e>
          <e type="operator" args="2">*</e>
          <e type="operand" style="unit">ft</e>
          <e type="operand">2</e>
          <e type="operator" args="2">^</e>
          <e type="operator" args="2">/</e>
          <e type="operator" args="2">:</e>
        </input>
      </math>
    </region>
    <region left="171" top="144" width="174" height="59" color="#000000" fontSize="10">
      <math>
        <input>
          <e type="operand">b</e>
          <e type="operand">7.28197</e>
          <e type="operand">10</e>
          <e type="operand">5</e>
          <e type="operator" args="1">-</e>
          <e type="operator" args="2">^</e>
          <e type="operator" args="2">*</e>
          <e type="operand">x</e>
          <e type="operand">4</e>
          <e type="operator" args="2">^</e>
          <e type="operator" args="2">*</e>
          <e type="operand" style="unit">ft</e>
          <e type="operand">3</e>
          <e type="operator" args="2">^</e>
          <e type="operator" args="2">/</e>
          <e type="operator" args="2">:</e>
        </input>
      </math>
    </region>
    <region left="378" top="144" width="66" height="41" color="#000000" fontSize="10">
      <math>
        <input>
          <e type="operand">c</e>
          <e type="operand">x</e>
          <e type="operand">600</e>
          <e type="operator" args="2">/</e>
          <e type="operator" args="2">:</e>
        </input>
      </math>
    </region>
    <region left="477" top="144" width="279" height="59" color="#000000" fontSize="10">
      <math>
        <input>
          <e type="operand">d</e>
          <e type="operand">7.28197</e>
          <e type="operand">10</e>
          <e type="operand">5</e>
          <e type="operator" args="1">-</e>
          <e type="operator" args="2">^</e>
          <e type="operator" args="2">*</e>
          <e type="operand">x</e>
          <e type="operand">4</e>
          <e type="operator" args="2">^</e>
          <e type="operator" args="2">*</e>
          <e type="operand" style="unit">ft</e>
          <e type="operand">3</e>
          <e type="operator" args="2">^</e>
          <e type="operator" args="2">/</e>
          <e type="operand">0.00018</e>
          <e type="operand">x</e>
          <e type="operand">3</e>
          <e type="operator" args="2">^</e>
          <e type="operator" args="2">*</e>
          <e type="operand" style="unit">ft</e>
          <e type="operand">2</e>
          <e type="operator" args="2">^</e>
          <e type="operator" args="2">/</e>
          <e type="operator" args="2">+</e>
          <e type="operator" args="2">:</e>
        </input>
      </math>
    </region>
    <region left="0" top="207" width="271" height="122" color="#0080ff" fontSize="10">
      <text lang="eng" width="268">
        <p>Following the example in Mkraska's reference book for FindRoot, I am getting a weird error: the solution is equal to the guess, which is visibly incorrect.
Why?</p>
      </text>
    </region>
    <region left="261" top="207" width="491" height="208" border="true" color="#000000" fontSize="10">
      <xyplot error="2" width="481" height="200" points="100" name="XYPlot">
        <chartstyle backcolor="White" bordercolor="Black" />
        <propertiessource index="1" sourcetype="PropertyGrid" />
        <grid gridcolor="LightGray" gridpattern="Dash" gridthickness="1" isxgrid="true" isygrid="true" isy2grid="false" />
        <xaxes xmin="-0.5478834" xmax="4.640535" xtick="1" visible="True" decimalplaces="3" numberformat="General" />
        <yaxes ymin="-0.001361777" ymax="0.006442089" ytick="0.002" visible="True" decimalplaces="3" numberformat="General" />
        <y2axes isy2axis="false" y2min="-1" y2max="1" y2tick="0.5" visible="True" decimalplaces="3" numberformat="General" />
        <title2d title="" titlefont="Arial, 10pt" titlefontcolor="Black" />
        <xylabel labelfont="Arial, 10pt" labelfontcolor="Black" tickfont="Arial, 8pt" tickfontcolor="Black" xlabel="x" ylabel="y" y2label="y2" />
        <legend isbordervisible="true" islegendvisible="false" legendbackcolor="White" legendbordercolor="Black" legendfont="Arial, 8pt" legendposition="NorthEast" textcolor="Black" />
        <traces>
          <trace seriesname="" isy2data="false" isvisible="true" plotmethod="Lines" lineantialias="true" linecolor="Blue" linethickness="1" linepattern="Solid" symbolantialias="true" symbolsize="8" symboltype="None" symbolborderthickness="1" symbolbordercolor="Black" symbolfillcolor="White" />
          <trace seriesname="" isy2data="false" isvisible="true" plotmethod="Lines" lineantialias="true" linecolor="Red" linethickness="1" linepattern="Solid" symbolantialias="true" symbolsize="8" symboltype="None" symbolborderthickness="1" symbolbordercolor="Black" symbolfillcolor="White" />
          <trace seriesname="" isy2data="false" isvisible="true" plotmethod="Lines" lineantialias="true" linecolor="Green" linethickness="1" linepattern="Solid" symbolantialias="true" symbolsize="8" symboltype="None" symbolborderthickness="1" symbolbordercolor="Black" symbolfillcolor="White" />
          <trace seriesname="" isy2data="false" isvisible="true" plotmethod="Lines" lineantialias="true" linecolor="Fuchsia" linethickness="1" linepattern="Solid" symbolantialias="true" symbolsize="8" symboltype="None" symbolborderthickness="1" symbolbordercolor="Black" symbolfillcolor="White" />
        </traces>
        <input>
          <e type="operand">a</e>
          <e type="operand">b</e>
          <e type="operand">c</e>
          <e type="operand">d</e>
          <e type="operand">a</e>
          <e type="operand">b</e>
          <e type="operator" args="2">+</e>
          <e type="operand">5</e>
          <e type="operand">1</e>
          <e type="function" args="7">sys</e>
        </input>
      </xyplot>
    </region>
    <region left="0" top="333" width="59" height="33" color="#000000" fontSize="10">
      <math optimize="2">
        <input>
          <e type="operand">f</e>
          <e type="operand">1</e>
          <e type="function" args="2">el</e>
          <e type="operand">a</e>
          <e type="operator" args="2">:</e>
        </input>
      </math>
    </region>
    <region left="0" top="369" width="59" height="33" color="#000000" fontSize="10">
      <math optimize="2">
        <input>
          <e type="operand">f</e>
          <e type="operand">2</e>
          <e type="function" args="2">el</e>
          <e type="operand">c</e>
          <e type="operator" args="2">:</e>
        </input>
      </math>
    </region>
    <region left="0" top="405" width="140" height="27" color="#000000" fontSize="10">
      <math>
        <input>
          <e type="operand">f</e>
          <e type="function" args="1">Unknowns</e>
        </input>
        <result action="symbolic">
          <e type="operand">x</e>
          <e type="operand">1</e>
          <e type="operand">1</e>
          <e type="function" args="3">mat</e>
        </result>
      </math>
    </region>
    <region left="369" top="414" width="365" height="57" color="#0080ff" fontSize="10">
      <text lang="eng" width="365">
        <p>You can see that the X-Y plot graphs functions a, b, and c, but not d or a+b.
Why?</p>
      </text>
    </region>
    <region left="0" top="432" width="184" height="26" color="#000000" fontSize="10">
      <math decimalPlaces="4">
        <input>
          <e type="operand">f</e>
          <e type="operand">1</e>
          <e type="operand" style="unit">ft</e>
          <e type="operator" args="2">*</e>
          <e type="function" args="2">FindRoot</e>
        </input>
        <result action="numeric">
          <e type="operand">1</e>
          <e type="operand" style="unit">ft</e>
          <e type="operator" args="2">*</e>
        </result>
      </math>
    </region>
    <region left="0" top="513" width="767" height="57" color="#0080ff" fontSize="10">
      <text lang="eng" width="754">
        <p>I also tried using the Maxima Solve function, which does provide a correct x value, but it only works with symbolic operation and the process for handing the vector solution appears is beyond me.</p>
      </text>
    </region>
    <region left="0" top="585" width="258" height="132" color="#000000" fontSize="10">
      <math>
        <input>
          <e type="operand">a</e>
          <e type="operand">c</e>
          <e type="operator" args="2">≡</e>
          <e type="operand">x</e>
          <e type="function" args="2">Solve</e>
        </input>
        <result action="symbolic">
          <e type="operand">x</e>
          <e type="operand">5</e>
          <e type="operand" style="unit">ft</e>
          <e type="operator" args="2">*</e>
          <e type="operand">10</e>
          <e type="function" args="1">sqrt</e>
          <e type="operator" args="2">*</e>
          <e type="operand">3</e>
          <e type="operand">2</e>
          <e type="function" args="2">nthroot</e>
          <e type="operand">3</e>
          <e type="operator" args="2">^</e>
          <e type="operator" args="2">/</e>
          <e type="operator" args="1">-</e>
          <e type="operator" args="2">≡</e>
          <e type="operand">x</e>
          <e type="operand">5</e>
          <e type="operand" style="unit">ft</e>
          <e type="operator" args="2">*</e>
          <e type="operand">10</e>
          <e type="function" args="1">sqrt</e>
          <e type="operator" args="2">*</e>
          <e type="operand">3</e>
          <e type="operand">2</e>
          <e type="function" args="2">nthroot</e>
          <e type="operand">3</e>
          <e type="operator" args="2">^</e>
          <e type="operator" args="2">/</e>
          <e type="operator" args="2">≡</e>
          <e type="operand">x</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">sys</e>
        </result>
      </math>
    </region>
    <region left="324" top="585" width="137" height="54" color="#000000" fontSize="9">
      <math>
        <input>
          <e type="operand">5</e>
          <e type="operand" style="unit">ft</e>
          <e type="operator" args="2">*</e>
          <e type="operand">10</e>
          <e type="function" args="1">sqrt</e>
          <e type="operator" args="2">*</e>
          <e type="operand">3</e>
          <e type="operand">2</e>
          <e type="function" args="2">nthroot</e>
          <e type="bracket">(</e>
          <e type="operand">3</e>
          <e type="operator" args="2">^</e>
          <e type="operator" args="2">/</e>
        </input>
        <result action="numeric">
          <e type="operand">3.04</e>
          <e type="operand" style="unit">ft</e>
          <e type="operator" args="2">*</e>
        </result>
      </math>
    </region>
    <region left="288" top="666" width="199" height="31" color="#000000" fontSize="9">
      <math error="68" errorLocation="11">
        <input>
          <e type="operand">x.max</e>
          <e type="operand">a</e>
          <e type="operand">c</e>
          <e type="operator" args="2">≡</e>
          <e type="operand">x</e>
          <e type="function" args="2">Solve</e>
          <e type="operand">2</e>
          <e type="function" args="2">el</e>
          <e type="operand">#</e>
          <e type="operand">#</e>
          <e type="operator" args="2">@</e>
          <e type="operator" args="2">=</e>
          <e type="operator" args="2">:</e>
        </input>
      </math>
    </region>
    <region left="0" top="729" width="754" height="57" color="#0080ff" fontSize="10">
      <text lang="eng" width="754">
        <p>Finally, if I try combining a and b to get a superimposed deflection value, I get the same error for FindRoot (guess is returned as solution) but Solve doesn't work at all.
Why?</p>
      </text>
    </region>
    <region left="0" top="783" width="59" height="33" color="#000000" fontSize="10">
      <math optimize="2" decimalPlaces="4">
        <input>
          <e type="operand">f</e>
          <e type="operand">1</e>
          <e type="function" args="2">el</e>
          <e type="operand">d</e>
          <e type="operator" args="2">:</e>
        </input>
      </math>
    </region>
    <region left="0" top="819" width="59" height="33" color="#000000" fontSize="10">
      <math optimize="2" decimalPlaces="4">
        <input>
          <e type="operand">f</e>
          <e type="operand">2</e>
          <e type="function" args="2">el</e>
          <e type="operand">c</e>
          <e type="operator" args="2">:</e>
        </input>
      </math>
    </region>
    <region left="297" top="828" width="174" height="26" color="#000000" fontSize="10">
      <math decimalPlaces="4">
        <input>
          <e type="operand">a</e>
          <e type="operand">d</e>
          <e type="operator" args="2">≡</e>
          <e type="operand">x</e>
          <e type="function" args="2">Solve</e>
        </input>
        <result action="symbolic">
          <e type="operand">x</e>
          <e type="operand">0</e>
          <e type="operator" args="2">≡</e>
        </result>
      </math>
    </region>
    <region left="0" top="855" width="140" height="27" color="#000000" fontSize="10">
      <math decimalPlaces="4">
        <input>
          <e type="operand">f</e>
          <e type="function" args="1">Unknowns</e>
        </input>
        <result action="symbolic">
          <e type="operand">x</e>
          <e type="operand">1</e>
          <e type="operand">1</e>
          <e type="function" args="3">mat</e>
        </result>
      </math>
    </region>
    <region left="0" top="882" width="184" height="26" color="#000000" fontSize="10">
      <math decimalPlaces="4">
        <input>
          <e type="operand">f</e>
          <e type="operand">1</e>
          <e type="operand" style="unit">ft</e>
          <e type="operator" args="2">*</e>
          <e type="function" args="2">FindRoot</e>
        </input>
        <result action="numeric">
          <e type="operand">1</e>
          <e type="operand" style="unit">ft</e>
          <e type="operator" args="2">*</e>
        </result>
      </math>
    </region>
  </regions>
</worksheet>