You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tdeedu/kig/examples/sine-curve.kig

56 lines
2.0 KiB

<!DOCTYPE KigDocument>
<KigDocument Version="0.5.1" >
<CoordinateSystem>Euclidean</CoordinateSystem>
<Objects>
<Data internal="true" type="double" id="1" >-3.50779</Data>
<Data internal="true" type="double" id="2" >3.80326</Data>
<Data internal="true" type="double" id="3" >5.49045</Data>
<Data internal="true" type="double" id="4" >-0.492505</Data>
<Data internal="true" type="double" id="5" >0.65293</Data>
<Data internal="true" type="hierarchy" id="6" >
<input requirement="any" id="1" />
<input requirement="string" id="2" />
<intermediate action="calc" type="PythonCompileType" id="3" >
<arg>2</arg>
</intermediate>
<result action="calc" type="PythonExecuteType" id="4" >
<arg>3</arg>
<arg>1</arg>
</result>
</Data>
<Data internal="true" type="string" id="7" >def calc( arg1 ):
c = arg1.coordinate();
y = sin( c.x );
return Point( Coordinate( c.x, y ) )
</Data>
<Object width="-1" internal="false" shown="true" type="FixedPoint" id="8" color="#0000ff" >
<Parent id="1" />
<Parent id="2" />
</Object>
<Object width="-1" internal="false" shown="true" type="FixedPoint" id="9" color="#0000ff" >
<Parent id="3" />
<Parent id="4" />
</Object>
<Object width="-1" internal="true" shown="true" type="PythonCompileType" id="10" color="#0000ff" >
<Parent id="7" />
</Object>
<Object width="-1" internal="false" shown="true" type="LineAB" id="11" color="#0000ff" >
<Parent id="8" />
<Parent id="9" />
</Object>
<Object width="-1" internal="false" shown="true" type="ConstrainedPoint" id="12" color="#0000ff" >
<Parent id="11" />
<Parent id="5" />
</Object>
<Object width="-1" internal="false" shown="true" type="Locus" id="13" color="#0000ff" >
<Parent id="11" />
<Parent id="6" />
<Parent id="7" />
</Object>
<Object width="-1" internal="false" shown="true" type="PythonExecuteType" id="14" color="#0000ff" >
<Parent id="10" />
<Parent id="12" />
</Object>
</Objects>
</KigDocument>