Загрузка данных


<mxGraphModel dx="1200" dy="1600" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="827" pageHeight="1169" math="0" shadow="0">
  <root>
    <mxCell id="0" />
    <mxCell id="1" parent="0" />

    <!-- 1. Начало -->
    <mxCell id="start" value="Начало" style="rounded=1;whiteSpace=wrap;html=1;arcSize=50;strokeWidth=2;strokeColor=#1E293B;fontFamily=Times New Roman;fontSize=14;fontStyle=1;" vertex="1" parent="1">
      <mxGeometry x="340" y="30" width="140" height="40" as="geometry" />
    </mxCell>

    <!-- 2. Ввод данных -->
    <mxCell id="in_data" value="вв. a, b, h" style="shape=parallelogram;perimeter=parallelogramPerimeter;whiteSpace=wrap;html=1;fixedSize=1;strokeWidth=2;strokeColor=#1E293B;fontFamily=Times New Roman;fontSize=14;" vertex="1" parent="1">
      <mxGeometry x="330" y="100" width="160" height="40" as="geometry" />
    </mxCell>

    <!-- 3. Инициализация x := a -->
    <mxCell id="init_x" value="x := a" style="rounded=0;whiteSpace=wrap;html=1;strokeWidth=2;strokeColor=#1E293B;fontFamily=Times New Roman;fontSize=14;" vertex="1" parent="1">
      <mxGeometry x="345" y="170" width="130" height="35" as="geometry" />
    </mxCell>

    <!-- Точка врезки возврата внешнего цикла while -->
    <mxCell id="p_while_entry" value="" style="ellipse;whiteSpace=wrap;html=1;aspect=fixed;fillColor=#1E293B;strokeColor=#1E293B;" vertex="1" parent="1">
      <mxGeometry x="407" y="235" width="6" height="6" as="geometry" />
    </mxCell>

    <!-- 4. Ромб внешнего цикла (ИСПРАВЛЕНО: x <= b + h / 2.0) -->
    <mxCell id="cond_while" value="x &lt;= b + h / 2.0" style="rhombus;whiteSpace=wrap;html=1;strokeWidth=2;strokeColor=#1E293B;fontFamily=Times New Roman;fontSize=14;" vertex="1" parent="1">
      <mxGeometry x="320" y="265" width="180" height="60" as="geometry" />
    </mxCell>

    <!-- 5. Разветвление функции (ИСПРАВЛЕНО: x <= 0.0) -->
    <mxCell id="cond_branch" value="x &lt;= 0.0" style="rhombus;whiteSpace=wrap;html=1;strokeWidth=2;strokeColor=#1E293B;fontFamily=Times New Roman;fontSize=14;" vertex="1" parent="1">
      <mxGeometry x="340" y="360" width="140" height="60" as="geometry" />
    </mxCell>

    <!-- 6. Ветка Да (x <= 0.0): y := (2 - x)^(2 - x) -->
    <mxCell id="calc_branch1" value="y := (2 - x)^(2 - x)" style="rounded=0;whiteSpace=wrap;html=1;strokeWidth=2;strokeColor=#1E293B;fontFamily=Times New Roman;fontSize=14;" vertex="1" parent="1">
      <mxGeometry x="150" y="460" width="170" height="40" as="geometry" />
    </mxCell>

    <!-- 7. Ветка Нет (x > 0.0): S := 0 -->
    <mxCell id="init_s" value="S := 0" style="rounded=0;whiteSpace=wrap;html=1;strokeWidth=2;strokeColor=#1E293B;fontFamily=Times New Roman;fontSize=14;" vertex="1" parent="1">
      <mxGeometry x="500" y="440" width="120" height="35" as="geometry" />
    </mxCell>

    <!-- Точка врезки возврата цикла for -->
    <mxCell id="p_for_entry" value="" style="ellipse;whiteSpace=wrap;html=1;aspect=fixed;fillColor=#1E293B;strokeColor=#1E293B;" vertex="1" parent="1">
      <mxGeometry x="557" y="500" width="6" height="6" as="geometry" />
    </mxCell>

    <!-- 8. Внутренний цикл for: k := 3 .. 9; 1 -->
    <mxCell id="loop_k" value="k := 3 .. 9; 1" style="shape=hexagon;perimeter=hexagonPerimeter2;whiteSpace=wrap;html=1;size=0.15;strokeWidth=2;strokeColor=#1E293B;fontFamily=Times New Roman;fontSize=14;" vertex="1" parent="1">
      <mxGeometry x="485" y="525" width="150" height="45" as="geometry" />
    </mxCell>

    <!-- 9. Накопление суммы: S := S + x^(-k) -->
    <mxCell id="calc_sum" value="S := S + x^(-k)" style="rounded=0;whiteSpace=wrap;html=1;strokeWidth=2;strokeColor=#1E293B;fontFamily=Times New Roman;fontSize=14;" vertex="1" parent="1">
      <mxGeometry x="485" y="605" width="150" height="40" as="geometry" />
    </mxCell>

    <!-- 10. Присваивание y := S -->
    <mxCell id="set_y_s" value="y := S" style="rounded=0;whiteSpace=wrap;html=1;strokeWidth=2;strokeColor=#1E293B;fontFamily=Times New Roman;fontSize=14;" vertex="1" parent="1">
      <mxGeometry x="500" y="700" width="120" height="35" as="geometry" />
    </mxCell>

    <!-- Точка слияния веток -->
    <mxCell id="p_merge_branches" value="" style="ellipse;whiteSpace=wrap;html=1;aspect=fixed;fillColor=#1E293B;strokeColor=#1E293B;" vertex="1" parent="1">
      <mxGeometry x="407" y="765" width="6" height="6" as="geometry" />
    </mxCell>

    <!-- 11. Вывод данных -->
    <mxCell id="out_xy" value="выв. x, y" style="shape=parallelogram;perimeter=parallelogramPerimeter;whiteSpace=wrap;html=1;fixedSize=1;strokeWidth=2;strokeColor=#1E293B;fontFamily=Times New Roman;fontSize=14;" vertex="1" parent="1">
      <mxGeometry x="335" y="795" width="150" height="40" as="geometry" />
    </mxCell>

    <!-- 12. Шаг x := x + h -->
    <mxCell id="inc_x" value="x := x + h" style="rounded=0;whiteSpace=wrap;html=1;strokeWidth=2;strokeColor=#1E293B;fontFamily=Times New Roman;fontSize=14;" vertex="1" parent="1">
      <mxGeometry x="345" y="865" width="130" height="35" as="geometry" />
    </mxCell>

    <!-- Точка перед блоком Конец -->
    <mxCell id="p_before_end" value="" style="ellipse;whiteSpace=wrap;html=1;aspect=fixed;fillColor=#1E293B;strokeColor=#1E293B;" vertex="1" parent="1">
      <mxGeometry x="407" y="945" width="6" height="6" as="geometry" />
    </mxCell>

    <!-- 13. Конец -->
    <mxCell id="end" value="Конец" style="rounded=1;whiteSpace=wrap;html=1;arcSize=50;strokeWidth=2;strokeColor=#1E293B;fontFamily=Times New Roman;fontSize=14;fontStyle=1;" vertex="1" parent="1">
      <mxGeometry x="340" y="975" width="140" height="40" as="geometry" />
    </mxCell>

    <!-- Потоки управления -->
    <mxCell id="e_start_in" style="edgeStyle=orthogonalEdgeStyle;rounded=0;strokeWidth=2;strokeColor=#1E293B;endArrow=classic;" edge="1" parent="1" source="start" target="in_data">
      <mxGeometry relative="1" as="geometry" />
    </mxCell>

    <mxCell id="e_in_init" style="edgeStyle=orthogonalEdgeStyle;rounded=0;strokeWidth=2;strokeColor=#1E293B;endArrow=classic;" edge="1" parent="1" source="in_data" target="init_x">
      <mxGeometry relative="1" as="geometry" />
    </mxCell>

    <mxCell id="e_init_p" style="edgeStyle=orthogonalEdgeStyle;rounded=0;strokeWidth=2;strokeColor=#1E293B;endArrow=none;" edge="1" parent="1" source="init_x" target="p_while_entry">
      <mxGeometry relative="1" as="geometry" />
    </mxCell>

    <mxCell id="e_p_while" style="edgeStyle=orthogonalEdgeStyle;rounded=0;strokeWidth=2;strokeColor=#1E293B;endArrow=classic;" edge="1" parent="1" source="p_while_entry" target="cond_while">
      <mxGeometry relative="1" as="geometry" />
    </mxCell>

    <!-- x <= b + h / 2.0 (Да) -->
    <mxCell id="e_while_yes" value="Да" style="edgeStyle=orthogonalEdgeStyle;rounded=0;strokeWidth=2;strokeColor=#1E293B;endArrow=classic;fontColor=#047857;fontStyle=1;labelBackgroundColor=#FFFFFF;" edge="1" parent="1" source="cond_while" target="cond_branch">
      <mxGeometry relative="1" as="geometry" />
    </mxCell>

    <!-- x <= b + h / 2.0 (Нет) -->
    <mxCell id="e_while_no" value="Нет" style="edgeStyle=orthogonalEdgeStyle;rounded=0;strokeWidth=2;strokeColor=#1E293B;endArrow=classic;fontColor=#B91C1C;fontStyle=1;labelBackgroundColor=#FFFFFF;" edge="1" parent="1" source="cond_while" target="p_before_end">
      <mxGeometry relative="1" as="geometry">
        <Array as="points">
          <mxPoint x="720" y="295" />
          <mxPoint x="720" y="948" />
        </Array>
      </mxGeometry>
    </mxCell>

    <!-- x <= 0.0 (Да) -->
    <mxCell id="e_branch_yes" value="Да" style="edgeStyle=orthogonalEdgeStyle;rounded=0;strokeWidth=2;strokeColor=#1E293B;endArrow=classic;fontColor=#047857;fontStyle=1;labelBackgroundColor=#FFFFFF;" edge="1" parent="1" source="cond_branch" target="calc_branch1">
      <mxGeometry relative="1" as="geometry">
        <Array as="points">
          <mxPoint x="235" y="390" />
        </Array>
      </mxGeometry>
    </mxCell>

    <!-- x <= 0.0 (Нет) -->
    <mxCell id="e_branch_no" value="Нет" style="edgeStyle=orthogonalEdgeStyle;rounded=0;strokeWidth=2;strokeColor=#1E293B;endArrow=classic;fontColor=#B91C1C;fontStyle=1;labelBackgroundColor=#FFFFFF;" edge="1" parent="1" source="cond_branch" target="init_s">
      <mxGeometry relative="1" as="geometry">
        <Array as="points">
          <mxPoint x="560" y="390" />
        </Array>
      </mxGeometry>
    </mxCell>

    <mxCell id="e_s_p" style="edgeStyle=orthogonalEdgeStyle;rounded=0;strokeWidth=2;strokeColor=#1E293B;endArrow=none;" edge="1" parent="1" source="init_s" target="p_for_entry">
      <mxGeometry relative="1" as="geometry" />
    </mxCell>

    <mxCell id="e_p_loopk" style="edgeStyle=orthogonalEdgeStyle;rounded=0;strokeWidth=2;strokeColor=#1E293B;endArrow=classic;" edge="1" parent="1" source="p_for_entry" target="loop_k">
      <mxGeometry relative="1" as="geometry" />
    </mxCell>

    <!-- k := 3 .. 9; 1 (Да) -->
    <mxCell id="e_k_yes" value="Да" style="edgeStyle=orthogonalEdgeStyle;rounded=0;strokeWidth=2;strokeColor=#1E293B;endArrow=classic;fontColor=#047857;fontStyle=1;labelBackgroundColor=#FFFFFF;" edge="1" parent="1" source="loop_k" target="calc_sum">
      <mxGeometry relative="1" as="geometry" />
    </mxCell>

    <!-- Петля возврата for -->
    <mxCell id="e_for_back" style="edgeStyle=orthogonalEdgeStyle;rounded=0;strokeWidth=2;strokeColor=#1E293B;endArrow=classic;" edge="1" parent="1" source="calc_sum">
      <mxGeometry relative="1" as="geometry">
        <mxPoint x="557" y="503" as="targetPoint" />
        <Array as="points">
          <mxPoint x="560" y="665" />
          <mxPoint x="450" y="665" />
          <mxPoint x="450" y="503" />
        </Array>
      </mxGeometry>
    </mxCell>

    <!-- k := 3 .. 9; 1 (Нет) -->
    <mxCell id="e_k_no" value="Нет" style="edgeStyle=orthogonalEdgeStyle;rounded=0;strokeWidth=2;strokeColor=#1E293B;endArrow=classic;fontColor=#B91C1C;fontStyle=1;labelBackgroundColor=#FFFFFF;" edge="1" parent="1" source="loop_k" target="set_y_s">
      <mxGeometry relative="1" as="geometry">
        <Array as="points">
          <mxPoint x="670" y="547.5" />
          <mxPoint x="670" y="718" />
        </Array>
      </mxGeometry>
    </mxCell>

    <mxCell id="e_merge1" style="edgeStyle=orthogonalEdgeStyle;rounded=0;strokeWidth=2;strokeColor=#1E293B;endArrow=classic;" edge="1" parent="1" source="calc_branch1" target="p_merge_branches">
      <mxGeometry relative="1" as="geometry">
        <Array as="points">
          <mxPoint x="235" y="768" />
        </Array>
      </mxGeometry>
    </mxCell>

    <mxCell id="e_merge2" style="edgeStyle=orthogonalEdgeStyle;rounded=0;strokeWidth=2;strokeColor=#1E293B;endArrow=none;" edge="1" parent="1" source="set_y_s" target="p_merge_branches">
      <mxGeometry relative="1" as="geometry">
        <Array as="points">
          <mxPoint x="560" y="768" />
        </Array>
      </mxGeometry>
    </mxCell>

    <mxCell id="e_p_out" style="edgeStyle=orthogonalEdgeStyle;rounded=0;strokeWidth=2;strokeColor=#1E293B;endArrow=classic;" edge="1" parent="1" source="p_merge_branches" target="out_xy">
      <mxGeometry relative="1" as="geometry" />
    </mxCell>

    <mxCell id="e_out_inc" style="edgeStyle=orthogonalEdgeStyle;rounded=0;strokeWidth=2;strokeColor=#1E293B;endArrow=classic;" edge="1" parent="1" source="out_xy" target="inc_x">
      <mxGeometry relative="1" as="geometry" />
    </mxCell>

    <!-- Петля возврата while -->
    <mxCell id="e_while_back" style="edgeStyle=orthogonalEdgeStyle;rounded=0;strokeWidth=2;strokeColor=#1E293B;endArrow=classic;" edge="1" parent="1" source="inc_x">
      <mxGeometry relative="1" as="geometry">
        <mxPoint x="407" y="238" as="targetPoint" />
        <Array as="points">
          <mxPoint x="410" y="920" />
          <mxPoint x="80" y="920" />
          <mxPoint x="80" y="238" />
        </Array>
      </mxGeometry>
    </mxCell>

    <mxCell id="e_p_end" style="edgeStyle=orthogonalEdgeStyle;rounded=0;strokeWidth=2;strokeColor=#1E293B;endArrow=classic;" edge="1" parent="1" source="p_before_end" target="end">
      <mxGeometry relative="1" as="geometry" />
    </mxCell>
  </root>
</mxGraphModel>