﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<?application progid="SMath Studio Desktop" version="0.99.7822.147"?>
<worksheet xmlns="http://smath.info/schemas/worksheet/1.0">
  <settings ppi="96">
    <identity>
      <id>0c56983e-a921-4b61-9970-495725cb0387</id>
      <revision>5</revision>
    </identity>
    <calculation>
      <precision>4</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="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 Studio Desktop" version="0.99.7822.147" guid="a37cba83-b69c-4c71-9992-55ff666763bd" />
      <assembly name="MathRegion" version="1.11.7822.147" guid="02f1ab51-215b-466e-a74d-5d8b1cf85e8d" />
      <assembly name="Maple Tools" version="1.1.7809.39615" guid="32dfd679-8cfd-483a-b79a-19d5ea838750" />
      <assembly name="TextRegion" version="1.11.7822.147" guid="485d28c5-349a-48b6-93be-12a35a1c1e39" />
    </dependencies>
  </settings>
  <regions type="content">
    <region left="0" top="0" width="754" height="44" color="#000000" bgColor="#80ffff" fontSize="24">
      <text lang="eng" fontFamily="Arial" fontSize="10">
        <content>
          <p style="font-size: 24px; background-color: #80ffff;">Example function sometimes provides maple 6 help </p>
        </content>
      </text>
    </region>
    <region left="0" top="90" width="317" height="28" color="#000000" fontSize="10">
      <math>
        <input>
          <e type="operand">kernel</e>
          <e type="function" args="1">example</e>
          <e type="function" args="1">maple</e>
        </input>
        <result action="symbolic">
          <e type="operand" style="string">Stack empty.</e>
        </result>
      </math>
    </region>
    <region left="0" top="117" width="173" height="53" color="#000000" bgColor="#ffff80" fontSize="10">
      <text lang="eng" fontFamily="Arial" fontSize="10">
        <content>
          <p style="background-color: #ffff80;">Multiple matches found:<br />   linalg,kernel<br />   LinearAlgebra,NullSpace</p>
        </content>
      </text>
    </region>
    <region left="0" top="234" width="309" height="28" color="#000000" fontSize="10">
      <math>
        <input>
          <e type="operand">evaln</e>
          <e type="function" args="1">example</e>
          <e type="function" args="1">maple</e>
        </input>
        <result action="symbolic">
          <e type="operand" style="string">Stack empty.</e>
        </result>
      </math>
    </region>
    <region left="0" top="279" width="482" height="608" color="#000000" bgColor="#ffff80" fontSize="10">
      <text lang="eng" fontFamily="Arial" fontSize="10">
        <content>
          <p style="background-color: #ffff80;">Examples:<br />&gt; i := 1;<br /><br />                                    i := 1<br /><br />&gt; evaln(i);<br /><br />                                       i<br /><br />&gt; evaln(a || i);<br /><br />                                      a1<br /><br />&gt; evaln(a || (1..3));<br /><br />                                  a1, a2, a3<br /><br />&gt; evaln(t[i]);<br /><br />                                     t[1]<br /><br />&gt; evaln(f(i));<br /><br />                                     f(1)<br /><br />&gt; divide(x^2,x,evaln(t[i]));<br /><br />                                     true<br /><br />&gt; t[i];<br /><br />                                       x<br /><br /># If something which does not evaluate to a name is passed to evaln an error is<br /># returned <br /><br />&gt; evaln(3);<br /><br />Error, illegal use of an object as a name<br /></p>
        </content>
      </text>
    </region>
    <region left="0" top="981" width="317" height="28" color="#000000" fontSize="10">
      <math>
        <input>
          <e type="operand">plot3d</e>
          <e type="function" args="1">example</e>
          <e type="function" args="1">maple</e>
        </input>
        <result action="symbolic">
          <e type="operand" style="string">Stack empty.</e>
        </result>
      </math>
    </region>
    <region left="0" top="1035" width="479" height="533" color="#000000" bgColor="#ffff80" fontSize="10">
      <text lang="eng" fontFamily="Arial" fontSize="10">
        <content>
          <p style="background-color: #ffff80;">Examples:<br />&gt; plot3d(sin(x+y),x=-1..1,y=-1..1);<br />&gt; plot3d(binomial,0..5,0..5,grid=[10,10]);<br /><br /># can have alternate coordinate systems <br /><br />&gt; plot3d((1.3)^x * sin(y),x=-1..2*Pi,y=0..Pi,coords=spherical,style=patch);<br />&gt; plot3d([1,x,y],x=0..2*Pi,y=0..2*Pi,coords=toroidal(10),scaling=constrained);\<br />&gt; plot3d(sin(x*y),x=-Pi..Pi,y=-Pi..Pi,style=contour);<br /><br /># can have variable endpoints in some cases <br /><br />&gt; plot3d(sin(x*y),x=-Pi..Pi,y=-x..x);<br />&gt; p:= proc(x,y) if x^2 &lt; y then cos(x*y) else x*sin(x*y) end if end proc:<br />&gt; h:= proc(x) x^2  end proc:<br />&gt; plot3d(p,-2..2,-1..h);<br />&gt; plot3d([x*sin(x)*cos(y),x*cos(x)*cos(y),x*sin(y)],x=0..2*Pi,y=0..Pi);<br />&gt; plot3d(x*exp(-x^2-y^2),x=-2..2,y=-2..2,grid=[49,49]);<br /><br /># can specify a color function (or procedure) <br /><br />&gt; plot3d(x*exp(-x^2-y^2),x=-2..2,y=-2..2,color=x);<br />&gt; plot3d(p,-2..2,-1..h,color=h);<br /><br /># multiple 3d plots can also be done <br /><br />&gt; plot3d({sin(x*y), x + 2*y},x=-Pi..Pi,y=-Pi..Pi);<br />&gt; c1:= [cos(x)-2*cos(0.4*y),sin(x)-2*sin(0.4*y),y]:<br />&gt; c2:= [cos(x)+2*cos(0.4*y),sin(x)+2*sin(0.4*y),y]:<br />&gt; c3:= [cos(x)+2*sin(0.4*y),sin(x)-2*cos(0.4*y),y]:<br />&gt; c4:= [cos(x)-2*sin(0.4*y),sin(x)+2*cos(0.4*y),y]:<br />&gt; plot3d({c1,c2,c3,c4},x=0..2*Pi,y=0..10,grid=[25,15],style=patch);<br />&gt; plot3d({c1,c2,c3,c4},x=0..2*Pi,y=0..10,grid=[25,15],style=patch,color=sin(x));\<br />&gt; <br /></p>
        </content>
      </text>
    </region>
    <region left="0" top="1584" width="341" height="28" color="#000000" fontSize="10">
      <math>
        <input>
          <e type="operand">plotsetup</e>
          <e type="function" args="1">example</e>
          <e type="function" args="1">maple</e>
        </input>
        <result action="symbolic">
          <e type="operand" style="string">Stack empty.</e>
        </result>
      </math>
    </region>
    <region left="0" top="1611" width="408" height="98" color="#000000" bgColor="#ffff80" fontSize="10">
      <text lang="eng" fontFamily="Arial" fontSize="10">
        <content>
          <p style="background-color: #ffff80;">Examples:<br />&gt; plotsetup(default);<br />&gt; interface(plotdevice);<br />&gt; plotsetup(tek, kermit);<br />&gt; plotsetup(ps,plotoutput=`plot.ps`,plotoptions=`portrait,noborder`);<br />&gt; plotsetup(x11);</p>
        </content>
      </text>
    </region>
    <region left="0" top="1728" width="341" height="28" color="#000000" fontSize="10">
      <math>
        <input>
          <e type="operand">pointplot</e>
          <e type="function" args="1">example</e>
          <e type="function" args="1">maple</e>
        </input>
        <result action="symbolic">
          <e type="operand" style="string">Stack empty.</e>
        </result>
      </math>
    </region>
    <region left="0" top="1755" width="307" height="128" color="#000000" bgColor="#ffff80" fontSize="10">
      <text lang="eng" fontFamily="Arial" fontSize="10">
        <content>
          <p style="background-color: #ffff80;">Examples:<br />&gt; with(plots):<br />&gt; pointplot({[0,1],[1,-1],[3,0],[4,-3]},axes=BOXED);<br />&gt; pointplot({seq([n,sin(n/10)],n=0..30)});<br />&gt; points:= { seq([T^2,T],T=0..40) }:<br />&gt; pointplot(points);<br />&gt; pointplot(points,coords=polar,color=red);<br /></p>
        </content>
      </text>
    </region>
    <region left="9" top="1989" width="317" height="28" color="#000000" fontSize="10">
      <math>
        <input>
          <e type="operand">tensor</e>
          <e type="function" args="1">example</e>
          <e type="function" args="1">maple</e>
        </input>
        <result action="symbolic">
          <e type="operand" style="string">Stack empty.</e>
        </result>
      </math>
    </region>
    <region left="9" top="2034" width="510" height="818" color="#000000" bgColor="#ffff80" fontSize="10">
      <text lang="eng" fontFamily="Arial" fontSize="10">
        <content>
          <p style="background-color: #ffff80;">Examples:<br />&gt; with(tensor):<br /><br /># Define the Schwarzschild covariant metric tensor: In defining the array of<br /># metric components, we use sparse to cut down on the number of components that<br /># must be entered. We always use the symmetric indexing function when defining<br /># the metric components.<br /><br />&gt; g_compts:=array(symmetric,sparse,1..4,1..4):<br />&gt; g_compts[1,1]:=(1-2*m/r): g_compts[2,2]:=-1/g_compts[1,1]:<br />&gt; g_compts[3,3]:=-r^2: g_compts[4,4]:=-r^2*sin(th)^2:<br /><br /># Now create the metric tensor by assigning the proper values to fields<br /># index_char and compts of a table (or use tensor[create]).<br /><br />&gt; g:=create([-1,-1], eval(g_compts));<br /><br />                     [1 - 2 m/r         0          0          0      ]<br />                     [                                               ]<br />                     [                   1                           ]<br />                     [    0        - ---------     0          0      ]<br />                     [               1 - 2 m/r                       ]<br />g := table([compts = [                                               ],<br />                     [                              2                ]<br />                     [    0             0         -r          0      ]<br />                     [                                               ]<br />                     [                                     2        2]<br />                     [    0             0          0     -r  sin(th) ]<br /><br />index_char = [-1, -1]<br /><br />])<br /><br /># Verify that the new object "g" is really a tensor_type: <br /><br />&gt; type(g,tensor_type);<br /><br />                                     true<br /><br /># Create a "rank-0" tensor, i.e., a scalar: <br /><br />&gt; R:= create([], -4/r^2);<br /><br />                                        4<br />                R := table([compts = - ----, index_char = []])<br />                                         2<br />                                        r<br /><br /># Verify that this object is also really a tensor_type: <br /><br />&gt; type(R,tensor_type);<br /><br />                                     true<br /></p>
        </content>
      </text>
    </region>
    <region left="9" top="2970" width="309" height="28" color="#000000" fontSize="10">
      <math>
        <input>
          <e type="operand">group</e>
          <e type="function" args="1">example</e>
          <e type="function" args="1">maple</e>
        </input>
        <result action="symbolic">
          <e type="operand" style="string">Stack empty.</e>
        </result>
      </math>
    </region>
    <region left="0" top="3015" width="372" height="83" color="#000000" bgColor="#ffff80" fontSize="10">
      <text lang="eng" fontFamily="Arial" fontSize="10">
        <content>
          <p style="background-color: #ffff80;">Examples:<br />&gt; with(group):<br />&gt; grouporder(permgroup(8, {a=[[1,2]], b=[[1,2,3,4,5,6,7,8]]}));<br /><br />                                     40320</p>
        </content>
      </text>
    </region>
    <region left="0" top="3159" width="333" height="28" color="#000000" fontSize="10">
      <math>
        <input>
          <e type="operand">geometry</e>
          <e type="function" args="1">example</e>
          <e type="function" args="1">maple</e>
        </input>
        <result action="symbolic">
          <e type="operand" style="string">Stack empty.</e>
        </result>
      </math>
    </region>
    <region left="0" top="3204" width="474" height="1343" color="#000000" bgColor="#ffff80" fontSize="10">
      <text lang="eng" fontFamily="Arial" fontSize="10">
        <content>
          <p style="background-color: #ffff80;">Examples:<br />&gt; with(geometry): <br /><br />&gt; circle(c,x^2+y^2=1,[x,y],'centername'=o);<br /><br />                                       c<br /><br />&gt; detail(c);<br /><br />name of the object:  c<br />form of the object:  circle2d<br />name of the center:  o<br />coordinates of the center:  [0, 0]<br />radius of the circle:  1<br />equation of the circle:  x^2+y^2-1 = 0<br /><br /># define the same circle but without the names of the axes in the input <br /><br />&gt; circle(c,a^2+b^2=1);<br />&gt; a;<br />&gt; b;<br /><br />                                       c<br /><br />&gt; detail(c);<br /><br />name of the object:  c<br />form of the object:  circle2d<br />name of the center:  center_c<br />coordinates of the center:  [0, 0]<br />radius of the circle:  1<br />equation of the circle:  a^2+b^2-1 = 0<br /><br /># define the same circle where the names of the axes are assigned by the two<br /># environment variables <br /><br />&gt; _EnvHorizontalName := 'm': _EnvVerticalName := 'n':<br />&gt; circle(c,[point(oo,0,0),1]);<br /><br />                                       c<br /><br />&gt; Equation(c);<br /><br />                                 2        2<br />                                m  - 1 + n  = 0<br /><br /># In the above examples, c is assigned to a geometric object (circle), c can<br /># also be assigned to a list of objects <br /><br />&gt; line(l2, x + y = 1, [x,y]),circle(c, x^2 + y^2 = 1, [x,y]):<br />&gt; intersection(H, l2, c, [M,N]);<br /><br />                                    [M, N]<br /><br />&gt; H;<br /><br />                                    [M, N]<br /><br />&gt; detail(H);<br /><br />[name of the object:  M<br />form of the object:  point2d<br /><br />coordinates of the point:  [0, 1], name of the object:  N<br />form of the object:  point2d<br /><br />coordinates of the point:  [1, 0]]<br /><br /># The following is an example when unknown parameters exist: <br /><br />&gt; line(l2, x + y = 1,[x,y]), point(A, a, 1/2), point(B,3/5,b):<br />&gt; IsOnLine({A,B},l2,'cond');<br /><br />IsOnLine:   "hint: the following conditions must be satisfi\<br />ed: {-1/2+conjugate(a) = 0, -2/5+conjugate(b) = 0}"<br /><br />                                     FAIL<br /><br />&gt; cond;<br /><br />                            ___                    ___<br />                   (- 1/2 + (a) = 0) &amp;and (- 2/5 + (b) = 0)<br /><br />&gt; assume(op(cond));<br />&gt; IsOnLine({A,B},l2);<br /><br />                                     true<br /><br /># More examples can be found in examples,geometry.</p>
        </content>
      </text>
    </region>
    <region left="0" top="4608" width="411" height="28" color="#000000" fontSize="10">
      <math>
        <input>
          <e type="operand">examples</e>
          <e type="operand">geometry</e>
          <e type="function" args="2">example</e>
          <e type="function" args="1">maple</e>
        </input>
        <result action="symbolic">
          <e type="operand" style="string">Stack empty.</e>
        </result>
      </math>
    </region>
    <region left="0" top="4644" width="250" height="83" color="#000000" bgColor="#ffff80" fontSize="10">
      <text lang="eng" fontFamily="Arial" fontSize="10">
        <content>
          <p style="background-color: #ffff80;">Multiple matches found:<br />   worksheet,expressions,mathobjects<br />   worksheet,expressions,math<br />   worksheet,expressions,mathfunctions<br />   worksheet,expressions,copyexamples</p>
        </content>
      </text>
    </region>
  </regions>
</worksheet>