<!DOCTYPE dtk>
<dtk>
 <note w="218" x="-343" y="-76" h="105">Number of iterations</note>
 <note w="205" x="998" y="314" h="142">Pi</note>
 <node w="705" x="106" y="-148" h="852" type="for" id="0">
  <header x="0" title="For" y="0" type="proxy" id="1"/>
  <block w="705" x="0" title="Conditional" y="30" h="266,6666666666667" blockid="0" type="composite" id="2">
   <port kind="proxy" type="input" id="1" label="max"/>
   <port loop="3" kind="proxy" type="input" id="2" label="x"/>
   <port loop="4" kind="proxy" type="input" id="3" label="sum"/>
   <node x="334" y="-84" type="lt" id="3"/>
   <edge>
    <source node="2" type="input" id="0"/>
    <destination node="3" type="input" id="0"/>
   </edge>
   <edge>
    <source node="2" type="input" id="1"/>
    <destination node="3" type="input" id="1"/>
   </edge>
   <edge>
    <source node="3" type="output" id="0"/>
    <destination node="2" type="output" id="0"/>
   </edge>
  </block>
  <block w="705" x="0" title="Body" y="292.667" h="266,6666666666667" blockid="1" type="composite" id="4">
   <port loop="3" kind="variant" type="input" id="1" label="x"/>
   <port loop="4" kind="variant" type="input" id="2" label="sum"/>
   <port kind="proxy" type="input" id="3" label="h"/>
   <port loop="3" kind="variant" twin="1" type="output" id="0" label="x"/>
   <port loop="4" kind="variant" twin="2" type="output" id="1" label="sum"/>
   <node x="421" y="336.667" type="plus" id="5"/>
   <node x="406" y="156.667" type="mult" id="6"/>
   <node x="458" y="256.667" type="plus" id="7"/>
   <node x="214.5" title="f" y="158.167" type="composite" id="8">
    <port kind="proxy" type="input" id="0" label=""/>
    <port kind="proxy" type="output" id="0" label=""/>
    <node x="-87.5" title="1" y="-134" type="real" id="9">
     <value>1</value>
    </node>
    <node x="144.5" title="4" y="-96" type="real" id="10">
     <value>4</value>
    </node>
    <node x="-72" y="-247" type="square" id="11"/>
    <node x="97" y="-193" type="plus" id="12"/>
    <node x="233" y="-261" type="inv" id="13"/>
    <node x="321" y="-156" type="mult" id="14"/>
    <edge>
     <source node="8" type="input" id="0"/>
     <destination node="11" type="input" id="0"/>
    </edge>
    <edge>
     <source node="11" type="output" id="0"/>
     <destination node="12" type="input" id="0"/>
    </edge>
    <edge>
     <source node="9" type="output" id="0"/>
     <destination node="12" type="input" id="1"/>
    </edge>
    <edge>
     <source node="12" type="output" id="0"/>
     <destination node="13" type="input" id="0"/>
    </edge>
    <edge>
     <source node="10" type="output" id="0"/>
     <destination node="14" type="input" id="1"/>
    </edge>
    <edge>
     <source node="13" type="output" id="0"/>
     <destination node="14" type="input" id="0"/>
    </edge>
    <edge>
     <source node="14" type="output" id="0"/>
     <destination node="8" type="output" id="0"/>
    </edge>
   </node>
   <edge>
    <source node="4" type="input" id="1"/>
    <destination node="5" type="input" id="0"/>
   </edge>
   <edge>
    <source node="4" type="input" id="3"/>
    <destination node="5" type="input" id="1"/>
   </edge>
   <edge>
    <source node="5" type="output" id="0"/>
    <destination node="4" type="output" id="0"/>
   </edge>
   <edge>
    <source node="4" type="input" id="3"/>
    <destination node="6" type="input" id="1"/>
   </edge>
   <edge>
    <source node="4" type="input" id="2"/>
    <destination node="7" type="input" id="0"/>
   </edge>
   <edge>
    <source node="6" type="output" id="0"/>
    <destination node="7" type="input" id="1"/>
   </edge>
   <edge>
    <source node="7" type="output" id="0"/>
    <destination node="4" type="output" id="1"/>
   </edge>
   <edge>
    <source node="8" type="output" id="0"/>
    <destination node="6" type="input" id="0"/>
   </edge>
   <edge>
    <source node="4" type="input" id="1"/>
    <destination node="8" type="input" id="0"/>
   </edge>
  </block>
  <block w="705" x="0" title="Increment" y="555.333" h="266,6666666666667" blockid="2" type="composite" id="15">
   <port loop="3" kind="proxy" type="input" id="1" label="x"/>
   <port loop="4" kind="proxy" type="input" id="2" label="sum"/>
   <node x="358" y="439" type="incr" id="16"/>
   <edge>
    <source node="15" type="input" id="0"/>
    <destination node="16" type="input" id="0"/>
   </edge>
   <edge>
    <source node="16" type="output" id="0"/>
    <destination node="15" type="output" id="0"/>
   </edge>
  </block>
  <footer x="0" title="" y="818" type="proxy" id="17"/>
 </node>
 <node x="-181" y="-65" type="integer" id="18">
  <value>2</value>
 </node>
 <node x="-409" title="iterations" y="-131" type="integer" id="19">
  <value>10000000</value>
 </node>
 <node x="-125" title="x" y="136" type="real" id="20">
  <value>0</value>
 </node>
 <node x="925" title="Result" y="274" type="real" id="21">
  <value>3.14</value>
 </node>
 <node x="868" y="84" type="logger" id="22"/>
 <node x="-265" y="208" type="inv" id="23"/>
 <node x="-267" y="431" type="real" id="24">
  <value>3</value>
 </node>
 <node x="-135" y="316" type="mult" id="25"/>
 <node x="1109" y="263" type="print" id="26"/>
 <edge>
  <source node="18" type="output" id="0"/>
  <destination node="1" type="input" id="0"/>
 </edge>
 <edge>
  <source node="19" type="output" id="0"/>
  <destination node="2" type="input" id="1"/>
 </edge>
 <edge>
  <source node="20" type="output" id="0"/>
  <destination node="4" type="input" id="1"/>
 </edge>
 <edge>
  <source node="19" type="output" id="0"/>
  <destination node="23" type="input" id="0"/>
 </edge>
 <edge>
  <source node="23" type="output" id="0"/>
  <destination node="4" type="input" id="3"/>
 </edge>
 <edge>
  <source node="23" type="output" id="0"/>
  <destination node="25" type="input" id="0"/>
 </edge>
 <edge>
  <source node="24" type="output" id="0"/>
  <destination node="25" type="input" id="1"/>
 </edge>
 <edge>
  <source node="25" type="output" id="0"/>
  <destination node="4" type="input" id="2"/>
 </edge>
 <edge>
  <source node="4" type="output" id="1"/>
  <destination node="22" type="input" id="0"/>
 </edge>
 <edge>
  <source node="4" type="output" id="1"/>
  <destination node="21" type="input" id="0"/>
 </edge>
 <edge>
  <source node="21" type="output" id="0"/>
  <destination node="26" type="input" id="0"/>
 </edge>
</dtk>
