Rendering of the source text

<?xml version="1.0" encoding="iso-8859-1"?>
<model
    name="sin_approximations_import"
    cmeta:id="sin_approximations_import"
    xmlns="http://www.cellml.org/cellml/1.1#"
    xmlns:cellml="http://www.cellml.org/cellml/1.1#"
    xmlns:cmeta="http://www.cellml.org/metadata/1.0#"
    xmlns:xlink="http://www.w3.org/1999/xlink">
  <simulation xmlns="http://cellml.sourceforge.net/csim/simulation/0.1#" id="simulation1">
  	<boundVariable start="0.0" end="6.283185307179586232" maxStep="0.1" tabulationStep="0.7"/>
  	<outputVariable component="main" variable="x" column="1"/>
  	<outputVariable component="main" variable="sin1" column="2"/>
  	<outputVariable component="main" variable="sin2" column="3"/>
  	<outputVariable component="main" variable="sin3" column="4"/>
  </simulation>
  <rdf:RDF
      xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
      xmlns:cmeta="http://www.cellml.org/metadata/1.0#"
      xmlns:bqs="http://www.cellml.org/bqs/1.0#"
      xmlns:dc="http://purl.org/dc/elements/1.1/"
      xmlns:dcterms="http://purl.org/dc/terms/"
      xmlns:vCard="http://www.w3.org/2001/vcard-rdf/3.0#"
      xmlns:cs="http://www.cellml.org/metadata/simulation/1.0#"
      xmlns:cg="http://www.cellml.org/metadata/graphs/1.0#">
    <rdf:Description rdf:about="">
      <dc:creator rdf:parseType="Resource">
        <vCard:N rdf:parseType="Resource">
          <vCard:Family>Nickerson</vCard:Family>
          <vCard:Given>David</vCard:Given>
        </vCard:N>
        <vCard:EMAIL rdf:parseType="Resource">
          <rdf:value>david.nickerson@nus.edu.sg</rdf:value>
          <rdf:type rdf:resource="http://imc.org/vCard/3.0#internet" />
        </vCard:EMAIL>
        <vCard:ORG rdf:parseType="Resource">
          <vCard:Orgname>National University of Singapore</vCard:Orgname>
          <vCard:Orgunit>Division of Bioengineering</vCard:Orgunit>
        </vCard:ORG>
      </dc:creator>
      <dcterms:created rdf:parseType="Resource">
        <dcterms:W3CDTF>2006-12-21</dcterms:W3CDTF>
      </dcterms:created>
    </rdf:Description>
    <rdf:Description rdf:about="#sin_approximations_import">
      <dc:title>
        Simple sine approximations model for testing - import version.
      </dc:title>
      <cmeta:comment rdf:parseType="Resource">
        <rdf:value>
          A very simple model describing different ways to calculate sine(x)
          over the range 0 to 2*pi and using imports.
        </rdf:value>
        <dc:creator rdf:parseType="Resource">
          <vCard:FN>David Nickerson</vCard:FN>
        </dc:creator>
      </cmeta:comment>
    </rdf:Description>
  </rdf:RDF>

  <import xlink:href="sin.xml">
    <component name="actual_sin" component_ref="sin"/>
  </import>
  <import xlink:href="deriv_approx_sin.xml">
    <component name="deriv_approx_sin" component_ref="sin"/>
  </import>
  <import xlink:href="parabolic_approx_sin.xml">
    <component name="parabolic_approx_sin" component_ref="sin"/>
  </import>

  <component name="main" cmeta:id="main">
    <variable cmeta:id="x" name="x" initial_value="0" units="dimensionless" public_interface="out" private_interface="out"/>
    <variable cmeta:id="sin" name="sin1" units="dimensionless" public_interface="out" private_interface="in"/>
    <variable cmeta:id="deriv_approx" name="sin2" units="dimensionless" public_interface="out" private_interface="in"/>
    <variable cmeta:id="deriv_approx_initial_value" name="deriv_approx_initial_value" initial_value="0" units="dimensionless" public_interface="out" private_interface="out"/>
    <variable cmeta:id="parabolic_approx" name="sin3" units="dimensionless" public_interface="out" private_interface="in"/>
  </component>
  
  <group>
    <relationship_ref relationship="encapsulation"/>
    <component_ref component="main">
      <component_ref component="actual_sin"/>
      <component_ref component="deriv_approx_sin"/>
      <component_ref component="parabolic_approx_sin"/>
    </component_ref>
  </group>
  
  <connection>
    <map_components component_1="actual_sin" component_2="main"/>
    <map_variables variable_1="sin" variable_2="sin1"/>
    <map_variables variable_1="x" variable_2="x"/>
  </connection>
  
  <connection>
    <map_components component_1="deriv_approx_sin" component_2="main"/>
    <map_variables variable_1="sin" variable_2="sin2"/>
    <map_variables variable_1="x" variable_2="x"/>
    <map_variables variable_1="sin_initial_value" variable_2="deriv_approx_initial_value"/>
  </connection>

  <connection>
    <map_components component_1="parabolic_approx_sin" component_2="main"/>
    <map_variables variable_1="sin" variable_2="sin3"/>
    <map_variables variable_1="x" variable_2="x"/>
  </connection>

</model>
Source
Derived from workspace Approximating Sine Waves at changeset d80ad0e8c5c5.
This exposure was expired.
Collaboration
To begin collaborating on this work, please use your git client and issue this command:
License
The terms of use/license for this work is unspecified.