Rendering of the source text

<?xml version='1.0' encoding='utf-8'?>
<model xmlns="http://www.cellml.org/cellml/1.0#" xmlns:cmeta="http://www.cellml.org/metadata/1.0#" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:ns8="http://www.cellml.org/metadata/graphs/1.0#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:cellml="http://www.cellml.org/cellml/1.0#" xmlns:dcterms="http://purl.org/dc/terms/" xmlns:vCard="http://www.w3.org/2001/vcard-rdf/3.0#" xmlns:ns7="http://www.cellml.org/metadata/simulation/1.0#" name="sine_approximations" cmeta:id="sine_approximations">
  
  
  <component cmeta:id="main" name="main">
    <variable units="dimensionless" name="x" cmeta:id="x"/>
    <variable units="dimensionless" name="sin1" cmeta:id="sin"/>
    <variable units="dimensionless" cmeta:id="deriv_approx" name="sin2" initial_value="0"/>
    <variable units="dimensionless" name="sin3" cmeta:id="parabolic_approx"/>
    <variable units="dimensionless" name="k2_oPi"/>
    <variable units="dimensionless" name="k2Pi"/>
    <variable units="dimensionless" name="kPi_2"/>
    <variable units="dimensionless" name="kPi"/>
    <variable units="dimensionless" name="kPi_32"/>
    <variable units="dimensionless" name="z"/>
    <variable units="dimensionless" name="C" initial_value="0.75"/>
    <math xmlns="http://www.w3.org/1998/Math/MathML">
      <apply>
        <eq/>
        <ci>sin1</ci>
        <apply>
          <sin/>
          <ci>x</ci>
        </apply>
      </apply>
    </math>
    <math xmlns="http://www.w3.org/1998/Math/MathML">
      <apply>
        <eq/>
        <apply>
          <diff/>
          <bvar>
            <ci>x</ci>
          </bvar>
          <ci>sin2</ci>
        </apply>
        <apply>
          <cos/>
          <ci>x</ci>
        </apply>
      </apply>
    </math>
    <math xmlns="http://www.w3.org/1998/Math/MathML">
      <apply>
        <eq/>
        <ci>k2_oPi</ci>
        <apply>
          <divide/>
          <cn cellml:units="dimensionless">2.0</cn>
          <pi/>
        </apply>
      </apply>
      <apply>
        <eq/>
        <ci>k2Pi</ci>
        <apply>
          <times/>
          <cn cellml:units="dimensionless">2.0</cn>
          <pi/>
        </apply>
      </apply>
      <apply>
        <eq/>
        <ci>kPi_2</ci>
        <apply>
          <divide/>
          <pi/>
          <cn cellml:units="dimensionless">2.0</cn>
        </apply>
      </apply>
      <apply>
        <eq/>
        <ci>kPi</ci>
        <pi/>
      </apply>
      <apply>
        <eq/>
        <ci>kPi_32</ci>
        <apply>
          <divide/>
          <apply>
            <times/>
            <cn cellml:units="dimensionless">3.0</cn>
            <pi/>
          </apply>
          <cn cellml:units="dimensionless">2.0</cn>
        </apply>
      </apply>
      
      <apply>
        <eq/>
        <ci>z</ci>
        <piecewise>
          <piece>
            <apply>
              <minus/>
              <apply>
                <times/>
                <ci>x</ci>
                <ci>k2_oPi</ci>
              </apply>
              <cn cellml:units="dimensionless">0.5</cn>
            </apply>
            <apply>
              <lt/>
              <ci>x</ci>
              <ci>kPi_2</ci>
            </apply>
          </piece>
          <piece>
            <apply>
              <minus/>
              <apply>
                <times/>
                <apply>
                  <minus/>
                  <pi/>
                  <ci>x</ci>
                </apply>
                <ci>k2_oPi</ci>
              </apply>
              <cn cellml:units="dimensionless">0.5</cn>
            </apply>
            <apply>
              <lt/>
              <ci>x</ci>
              <ci>kPi</ci>
            </apply>
          </piece>
          <piece>
            <apply>
              <minus/>
              <apply>
                <times/>
                <apply>
                  <minus/>
                  <ci>x</ci>
                  <pi/>
                </apply>
                <ci>k2_oPi</ci>
              </apply>
              <cn cellml:units="dimensionless">0.5</cn>
            </apply>
            <apply>
              <lt/>
              <ci>x</ci>
              <ci>kPi_32</ci>
            </apply>
          </piece>
          <otherwise>
            <apply>
              <minus/>
              <apply>
                <times/>
                <apply>
                  <minus/>
                  <ci>k2Pi</ci>
                  <ci>x</ci>
                </apply>
                <ci>k2_oPi</ci>
              </apply>
              <cn cellml:units="dimensionless">0.5</cn>
            </apply>
          </otherwise>
        </piecewise>
      </apply>
      
      <apply>
        <eq/>
        <ci>sin3</ci>
        <piecewise>
          <piece>
            <apply>
              <plus/>
              <apply>
                <minus/>
                <apply>
                  <times/>
                  <ci>z</ci>
                  <ci>z</ci>
                </apply>
              </apply>
              <ci>C</ci>
              <ci>z</ci>
            </apply>
            <apply>
              <lt/>
              <ci>x</ci>
              <ci>kPi_2</ci>
            </apply>
          </piece>
          <piece>
            <apply>
              <plus/>
              <apply>
                <minus/>
                <apply>
                  <times/>
                  <ci>z</ci>
                  <ci>z</ci>
                </apply>
              </apply>
              <ci>C</ci>
              <ci>z</ci>
            </apply>
            <apply>
              <lt/>
              <ci>x</ci>
              <ci>kPi</ci>
            </apply>
          </piece>
          <piece>
            <apply>
              <minus/>
              <apply>
                <minus/>
                <apply>
                  <times/>
                  <ci>z</ci>
                  <ci>z</ci>
                </apply>
                <ci>C</ci>
              </apply>
              <ci>z</ci>
            </apply>
            <apply>
              <lt/>
              <ci>x</ci>
              <ci>kPi_32</ci>
            </apply>
          </piece>
          <otherwise>
            <apply>
              <minus/>
              <apply>
                <minus/>
                <apply>
                  <times/>
                  <ci>z</ci>
                  <ci>z</ci>
                </apply>
                <ci>C</ci>
              </apply>
              <ci>z</ci>
            </apply>
          </otherwise>
        </piecewise>
      </apply>
    </math>
  </component>
<rdf:RDF>
  <rdf:Description rdf:about="rdf:#0f336b8f-6fe1-44cf-857f-c21d99fb0dd0">
    <ns7:simulation rdf:resource="#simulation"/>
    <ns8:variable rdf:resource="#x"/>
  </rdf:Description>
  <rdf:Description rdf:about="">
    <dc:publisher/>
    <cmeta:comment rdf:resource="rdf:#5224dd8a-1cdd-4faa-bcb2-b52e312501d6"/>
    <dcterms:created rdf:resource="rdf:#223e6898-2336-4aa2-b8d0-5dd49d5478aa"/>
    <dc:creator rdf:resource="rdf:#f716cb45-7e9d-4b66-b44a-445dfde317f0"/>
  </rdf:Description>
  <rdf:Description rdf:about="#sine_approximations">
    <ns7:simulation rdf:resource="#simulation"/>
    <dc:title>
        Simple sine approximations model to illustrate graphing metadata.
      </dc:title>
    <cmeta:comment rdf:resource="rdf:#949e72e1-3f4b-44ba-bcb1-9cfe0e2f3ffb"/>
    <ns8:graph rdf:resource="#sine_approximations_graph_black"/>
    <ns8:graph rdf:resource="#sine_approximations_graph_red"/>
  </rdf:Description>
  <rdf:Description rdf:about="rdf:#747fbce7-b133-4c20-8c0d-22f37b4ff889">
    <vCard:FN>David Nickerson</vCard:FN>
  </rdf:Description>
  <rdf:Description rdf:about="rdf:#89927114-0682-4a6c-8891-e958b70e4830">
    <ns8:x-variable rdf:resource="rdf:#0421a58f-505e-4937-be8e-68314821c5ef"/>
    <ns8:label>parabolic approx.</ns8:label>
    <ns8:colour>#008000</ns8:colour>
    <ns8:y-variable rdf:resource="rdf:#cb80a73f-e252-4213-b793-7a229a26e4cc"/>
    <ns8:glyph rdf:resource="http://www.cellml.org/metadata/graphs/1.0#cross"/>
    <ns8:type rdf:resource="http://www.cellml.org/metadata/graphs/1.0#scatter"/>
  </rdf:Description>
  <rdf:Description rdf:about="rdf:#25129856-8a43-4617-aed3-df9a7ea77cf2">
    <ns7:simulation rdf:resource="#simulation"/>
    <ns8:variable rdf:resource="#parabolic_approx"/>
  </rdf:Description>
  <rdf:Description rdf:about="rdf:#f716cb45-7e9d-4b66-b44a-445dfde317f0">
    <vCard:EMAIL rdf:resource="rdf:#f2c8e5d3-69e0-41cd-9202-303a95f35bad"/>
    <vCard:ORG rdf:resource="rdf:#f2bfc3ea-07ad-4d17-846a-2b17f3b84024"/>
    <vCard:N rdf:resource="rdf:#e4b590a6-4456-4517-b927-5c9043422339"/>
  </rdf:Description>
  <rdf:Description rdf:about="rdf:#f2bfc3ea-07ad-4d17-846a-2b17f3b84024">
    <vCard:Orgname>National University of Singapore</vCard:Orgname>
    <vCard:Orgunit>Division of Bioengineering</vCard:Orgunit>
  </rdf:Description>
  <rdf:Description rdf:about="rdf:#0fefe3a0-1508-45cf-ad97-cbcd395341a0">
    <rdf:rest rdf:resource="http://www.w3.org/2002/07/owl#Nothing"/>
    <rdf:type rdf:resource="http://www.w3.org/1999/02/22-rdf-syntax-ns#List"/>
    <rdf:first rdf:resource="rdf:#54226b0b-bebb-4ab1-9ae3-71bfdbaf4b4d"/>
  </rdf:Description>
  <rdf:Description rdf:about="rdf:#798ab84c-427a-4724-ab8d-8a676c458665">
    <rdf:rest rdf:resource="http://www.w3.org/2002/07/owl#Nothing"/>
    <rdf:type rdf:resource="http://www.w3.org/1999/02/22-rdf-syntax-ns#List"/>
    <rdf:first rdf:resource="rdf:#89927114-0682-4a6c-8891-e958b70e4830"/>
  </rdf:Description>
  <rdf:Description rdf:about="rdf:#159bdb2d-a80b-4ccd-bde1-83fc54386f53">
    <ns7:simulation rdf:resource="#simulation"/>
    <ns8:variable rdf:resource="#sin"/>
  </rdf:Description>
  <rdf:Description rdf:about="rdf:#5224dd8a-1cdd-4faa-bcb2-b52e312501d6">
    <dc:creator rdf:resource="rdf:#1ac09458-3e66-42ac-ac5b-72cebac9e6a1"/>
    <rdf:value/>
  </rdf:Description>
  <rdf:Description rdf:about="rdf:#ac714380-2dfb-4e60-807e-5837f04003f8">
    <ns7:simulation rdf:resource="#simulation"/>
    <ns8:variable rdf:resource="#x"/>
  </rdf:Description>
  <rdf:Description rdf:about="rdf:#0e7d8cbd-280b-4690-9c08-0409ed8e55d7">
    <ns7:simulation rdf:resource="#simulation"/>
    <ns8:variable rdf:resource="#x"/>
  </rdf:Description>
  <rdf:Description rdf:about="rdf:#9604a7b0-700f-49b3-bf79-fc5646bd1ae8">
    <ns7:simulation rdf:resource="#simulation"/>
    <ns8:variable rdf:resource="#deriv_approx"/>
  </rdf:Description>
  <rdf:Description rdf:about="rdf:#3735a49f-19b6-4920-a961-581475ec9dbb">
    <rdf:rest rdf:resource="rdf:#bdfca01d-51b4-4ab0-875f-30c84e3c7ad6"/>
    <rdf:type rdf:resource="http://www.w3.org/1999/02/22-rdf-syntax-ns#List"/>
    <rdf:first rdf:resource="rdf:#66f801ba-6fa6-4b3f-b810-55f6ac78d1f7"/>
  </rdf:Description>
  <rdf:Description rdf:about="rdf:#cb80a73f-e252-4213-b793-7a229a26e4cc">
    <ns7:simulation rdf:resource="#simulation"/>
    <ns8:variable rdf:resource="#parabolic_approx"/>
  </rdf:Description>
  <rdf:Description rdf:about="rdf:#10b54d7a-0434-46d8-9492-3d01a2831635">
    <ns7:simulation rdf:resource="#simulation"/>
    <ns8:variable rdf:resource="#sin"/>
  </rdf:Description>
  <rdf:Description rdf:about="rdf:#0421a58f-505e-4937-be8e-68314821c5ef">
    <ns7:simulation rdf:resource="#simulation"/>
    <ns8:variable rdf:resource="#x"/>
  </rdf:Description>
  <rdf:Description rdf:about="rdf:#7cb456b1-cd30-4093-b0e9-5cebdbdb015c">
    <rdf:rest rdf:resource="rdf:#1614842e-7e83-40f2-8368-9f4f37d2ea25"/>
    <rdf:type rdf:resource="http://www.w3.org/1999/02/22-rdf-syntax-ns#List"/>
    <rdf:first rdf:resource="rdf:#b6b29b88-9c25-4528-a59b-7b8fe9a0cde8"/>
  </rdf:Description>
  <rdf:Description rdf:about="rdf:#54226b0b-bebb-4ab1-9ae3-71bfdbaf4b4d">
    <ns7:boundVariable rdf:resource="#x"/>
    <ns7:tabulationStepSize>
                0.5
              </ns7:tabulationStepSize>
    <ns7:endingValue>
                6.283185307179586232
              </ns7:endingValue>
    <ns7:maximumStepSize>
                0.1
              </ns7:maximumStepSize>
    <ns7:startingValue>
                0
              </ns7:startingValue>
  </rdf:Description>
  <rdf:Description rdf:about="rdf:#bdfca01d-51b4-4ab0-875f-30c84e3c7ad6">
    <rdf:rest rdf:resource="rdf:#798ab84c-427a-4724-ab8d-8a676c458665"/>
    <rdf:type rdf:resource="http://www.w3.org/1999/02/22-rdf-syntax-ns#List"/>
    <rdf:first rdf:resource="rdf:#e6c33cda-a8c9-4f05-a864-6d08a5710730"/>
  </rdf:Description>
  <rdf:Description rdf:about="rdf:#1614842e-7e83-40f2-8368-9f4f37d2ea25">
    <rdf:rest rdf:resource="http://www.w3.org/2002/07/owl#Nothing"/>
    <rdf:type rdf:resource="http://www.w3.org/1999/02/22-rdf-syntax-ns#List"/>
    <rdf:first rdf:resource="rdf:#9fece4a8-a6ff-43b6-a84c-6b399cf60247"/>
  </rdf:Description>
  <rdf:Description rdf:about="#simulation">
    <ns7:iterationMethod>functional</ns7:iterationMethod>
    <ns7:boundIntervals rdf:resource="rdf:#0fefe3a0-1508-45cf-ad97-cbcd395341a0"/>
    <ns7:multistepMethod>adams</ns7:multistepMethod>
    <ns7:simulationName>Sine Approximations</ns7:simulationName>
  </rdf:Description>
  <rdf:Description rdf:about="rdf:#e4b590a6-4456-4517-b927-5c9043422339">
    <vCard:Given>David</vCard:Given>
    <vCard:Family>Nickerson</vCard:Family>
    <vCard:Other/>
  </rdf:Description>
  <rdf:Description rdf:about="rdf:#66f801ba-6fa6-4b3f-b810-55f6ac78d1f7">
    <ns8:colour>#ff0000</ns8:colour>
    <ns8:label>y = sin(x)</ns8:label>
    <ns8:type rdf:resource="http://www.cellml.org/metadata/graphs/1.0#line"/>
    <ns8:x-variable rdf:resource="rdf:#0f336b8f-6fe1-44cf-857f-c21d99fb0dd0"/>
    <ns8:y-variable rdf:resource="rdf:#159bdb2d-a80b-4ccd-bde1-83fc54386f53"/>
  </rdf:Description>
  <rdf:Description rdf:about="rdf:#223e6898-2336-4aa2-b8d0-5dd49d5478aa">
    <dcterms:W3CDTF>2006-12-21T00:00:00+00:00</dcterms:W3CDTF>
  </rdf:Description>
  <rdf:Description rdf:about="rdf:#8c666d23-670b-4a13-98ba-2f3f12f7c064">
    <ns8:colour>#000000</ns8:colour>
    <ns8:label>y = sin(x)</ns8:label>
    <ns8:type rdf:resource="http://www.cellml.org/metadata/graphs/1.0#line"/>
    <ns8:x-variable rdf:resource="rdf:#dd38a998-7d9c-4b65-b3cb-82dd92a1c944"/>
    <ns8:y-variable rdf:resource="rdf:#10b54d7a-0434-46d8-9492-3d01a2831635"/>
  </rdf:Description>
  <rdf:Description rdf:about="rdf:#949e72e1-3f4b-44ba-bcb1-9cfe0e2f3ffb">
    <dc:creator rdf:resource="rdf:#747fbce7-b133-4c20-8c0d-22f37b4ff889"/>
    <rdf:value>A very simple model describing different ways to calculate sine(x)&#13;
          over the range 0 to 2*pi. Used to illustrate the use of graphing metadata.</rdf:value>
  </rdf:Description>
  <rdf:Description rdf:about="rdf:#b6b29b88-9c25-4528-a59b-7b8fe9a0cde8">
    <ns8:x-variable rdf:resource="rdf:#0e7d8cbd-280b-4690-9c08-0409ed8e55d7"/>
    <ns8:label>dy/dx = cos(x)</ns8:label>
    <ns8:colour>#0000ff</ns8:colour>
    <ns8:y-variable rdf:resource="rdf:#9604a7b0-700f-49b3-bf79-fc5646bd1ae8"/>
    <ns8:glyph rdf:resource="http://www.cellml.org/metadata/graphs/1.0#plus"/>
    <ns8:type rdf:resource="http://www.cellml.org/metadata/graphs/1.0#scatter"/>
  </rdf:Description>
  <rdf:Description rdf:about="rdf:#1ac09458-3e66-42ac-ac5b-72cebac9e6a1">
    <vCard:FN/>
  </rdf:Description>
  <rdf:Description rdf:about="rdf:#e6c33cda-a8c9-4f05-a864-6d08a5710730">
    <ns8:x-variable rdf:resource="rdf:#ac714380-2dfb-4e60-807e-5837f04003f8"/>
    <ns8:label>dy/dx = cos(x)</ns8:label>
    <ns8:colour>#0000ff</ns8:colour>
    <ns8:y-variable rdf:resource="rdf:#9c884f0d-dd6b-4222-8b4c-f5a5ac720e55"/>
    <ns8:glyph rdf:resource="http://www.cellml.org/metadata/graphs/1.0#plus"/>
    <ns8:type rdf:resource="http://www.cellml.org/metadata/graphs/1.0#scatter"/>
  </rdf:Description>
  <rdf:Description rdf:about="rdf:#f2c8e5d3-69e0-41cd-9202-303a95f35bad">
    <rdf:type rdf:resource="http://imc.org/vCard/3.0#internet"/>
    <rdf:value>david.nickerson@nus.edu.sg</rdf:value>
  </rdf:Description>
  <rdf:Description rdf:about="rdf:#2af9d06e-0060-4d9a-9a0a-d0c0395e9db9">
    <rdf:rest rdf:resource="rdf:#7cb456b1-cd30-4093-b0e9-5cebdbdb015c"/>
    <rdf:type rdf:resource="http://www.w3.org/1999/02/22-rdf-syntax-ns#List"/>
    <rdf:first rdf:resource="rdf:#8c666d23-670b-4a13-98ba-2f3f12f7c064"/>
  </rdf:Description>
  <rdf:Description rdf:about="rdf:#dd38a998-7d9c-4b65-b3cb-82dd92a1c944">
    <ns7:simulation rdf:resource="#simulation"/>
    <ns8:variable rdf:resource="#x"/>
  </rdf:Description>
  <rdf:Description rdf:about="rdf:#5222de7b-d79e-4abe-88c5-d2e22ebde0de">
    <ns7:simulation rdf:resource="#simulation"/>
    <ns8:variable rdf:resource="#x"/>
  </rdf:Description>
  <rdf:Description rdf:about="rdf:#9c884f0d-dd6b-4222-8b4c-f5a5ac720e55">
    <ns7:simulation rdf:resource="#simulation"/>
    <ns8:variable rdf:resource="#deriv_approx"/>
  </rdf:Description>
  <rdf:Description rdf:about="rdf:#9fece4a8-a6ff-43b6-a84c-6b399cf60247">
    <ns8:x-variable rdf:resource="rdf:#5222de7b-d79e-4abe-88c5-d2e22ebde0de"/>
    <ns8:label>parabolic approx.</ns8:label>
    <ns8:colour>#008000</ns8:colour>
    <ns8:y-variable rdf:resource="rdf:#25129856-8a43-4617-aed3-df9a7ea77cf2"/>
    <ns8:glyph rdf:resource="http://www.cellml.org/metadata/graphs/1.0#cross"/>
    <ns8:type rdf:resource="http://www.cellml.org/metadata/graphs/1.0#scatter"/>
  </rdf:Description>
  <rdf:Description rdf:about="#sine_approximations_graph_red">
    <ns8:background-colour>#ff0000</ns8:background-colour>
    <ns8:y-label>y ()</ns8:y-label>
    <ns8:title>sin(x) approximations</ns8:title>
    <ns8:traces rdf:resource="rdf:#2af9d06e-0060-4d9a-9a0a-d0c0395e9db9"/>
    <ns8:colour>#ffffff</ns8:colour>
    <ns8:x-label>x ()</ns8:x-label>
  </rdf:Description>
  <rdf:Description rdf:about="#sine_approximations_graph_black">
    <ns8:background-colour>#000000</ns8:background-colour>
    <ns8:y-label>y ()</ns8:y-label>
    <ns8:title>sin(x) approximations</ns8:title>
    <ns8:traces rdf:resource="rdf:#3735a49f-19b6-4920-a961-581475ec9dbb"/>
    <ns8:colour>#ffffff</ns8:colour>
    <ns8:x-label>x ()</ns8:x-label>
  </rdf:Description>
</rdf:RDF>
</model>
Source
Derived from workspace Sine-Approximations at changeset 9d669cfc03c5.
Collaboration
To begin collaborating on this work, please use your git client and issue this command:
License

This work is licensed under a Creative Commons Attribution 3.0 Unported License.