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


<mxfile host="app.diagrams.net" agent="Mozilla/5.0" version="24.0.0">
  <diagram id="lab7_var10_clean" name="Лабораторная 7.1">
    <mxGraphModel dx="1200" dy="1400" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="1169" pageHeight="1654" math="0" shadow="0">
      <root>
        <mxCell id="0" />
        <mxCell id="1" parent="0" />

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

        <!-- Ввод -->
        <mxCell id="s_in" value="вв. x, n" 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="375" y="95" width="140" height="40" as="geometry" />
        </mxCell>

        <!-- Инициализация суммы -->
        <mxCell id="s_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="385" y="160" width="120" height="35" as="geometry" />
        </mxCell>

        <!-- Внешний цикл k -->
        <mxCell id="s_loop_k" value="k = 1 .. n" style="shape=hexagon;perimeter=hexagonPerimeter2;whiteSpace=wrap;html=1;fixedSize=1;strokeWidth=2;strokeColor=#1E293B;fontFamily=Times New Roman;fontSize=14;" vertex="1" parent="1">
          <mxGeometry x="375" y="220" width="140" height="45" as="geometry" />
        </mxCell>

        <!-- Ромб проверки k = 2 -->
        <mxCell id="s_chk_k" value="k = 2" style="rhombus;whiteSpace=wrap;html=1;strokeWidth=2;strokeColor=#1E293B;fontFamily=Times New Roman;fontSize=14;" vertex="1" parent="1">
          <mxGeometry x="390" y="290" width="110" height="45" as="geometry" />
        </mxCell>

        <!-- Подготовка коэффициента u и произведения P -->
        <mxCell id="s_term_k" value="u = (-3)³ᵏ⁺¹ / (2 · (k - 2) · x³ᵏ⁺¹)&#xa;P = 1" style="rounded=0;whiteSpace=wrap;html=1;strokeWidth=2;strokeColor=#1E293B;fontFamily=Times New Roman;fontSize=12;" vertex="1" parent="1">
          <mxGeometry x="330" y="365" width="230" height="45" as="geometry" />
        </mxCell>

        <!-- Внутренний цикл m -->
        <mxCell id="s_loop_m" value="m = 1 .. k + 2" style="shape=hexagon;perimeter=hexagonPerimeter2;whiteSpace=wrap;html=1;fixedSize=1;strokeWidth=2;strokeColor=#1E293B;fontFamily=Times New Roman;fontSize=14;" vertex="1" parent="1">
          <mxGeometry x="365" y="440" width="160" height="45" as="geometry" />
        </mxCell>

        <!-- Ромб проверки m = 4 -->
        <mxCell id="s_chk_m" value="m = 4" style="rhombus;whiteSpace=wrap;html=1;strokeWidth=2;strokeColor=#1E293B;fontFamily=Times New Roman;fontSize=14;" vertex="1" parent="1">
          <mxGeometry x="390" y="515" width="110" height="45" as="geometry" />
        </mxCell>

        <!-- Вычисление P -->
        <mxCell id="s_calc_p" value="P = P · (m³ - 8) / (m - 4)" style="rounded=0;whiteSpace=wrap;html=1;strokeWidth=2;strokeColor=#1E293B;fontFamily=Times New Roman;fontSize=13;" vertex="1" parent="1">
          <mxGeometry x="350" y="590" width="190" height="35" as="geometry" />
        </mxCell>

        <!-- Точка схождения цикла m -->
        <mxCell id="s_m_join" value="" style="ellipse;whiteSpace=wrap;html=1;aspect=fixed;fillColor=#1E293B;strokeColor=#1E293B;" vertex="1" parent="1">
          <mxGeometry x="442" y="650" width="6" height="6" as="geometry" />
        </mxCell>

        <!-- Накопление суммы S -->
        <mxCell id="s_add_s" value="S = S + u · P" style="rounded=0;whiteSpace=wrap;html=1;strokeWidth=2;strokeColor=#1E293B;fontFamily=Times New Roman;fontSize=14;" vertex="1" parent="1">
          <mxGeometry x="380" y="690" width="130" height="35" as="geometry" />
        </mxCell>

        <!-- Точка схождения цикла k -->
        <mxCell id="s_k_join" value="" style="ellipse;whiteSpace=wrap;html=1;aspect=fixed;fillColor=#1E293B;strokeColor=#1E293B;" vertex="1" parent="1">
          <mxGeometry x="442" y="750" width="6" height="6" as="geometry" />
        </mxCell>

        <!-- Вывод результата -->
        <mxCell id="s_out" value="выв. S" 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="380" y="800" width="130" height="40" as="geometry" />
        </mxCell>

        <!-- Конец -->
        <mxCell id="s_end" value="конец" style="rounded=1;whiteSpace=wrap;html=1;arcSize=50;strokeWidth=2;strokeColor=#1E293B;fontFamily=Times New Roman;fontSize=14;" vertex="1" parent="1">
          <mxGeometry x="380" y="870" width="130" height="40" as="geometry" />
        </mxCell>

        <!-- Соединительные линии -->
        <mxCell id="e_1" style="edgeStyle=orthogonalEdgeStyle;rounded=0;strokeWidth=2;strokeColor=#1E293B;endArrow=classic;" edge="1" parent="1" source="s_start" target="s_in"><mxGeometry relative="1" as="geometry" /></mxCell>
        <mxCell id="e_2" style="edgeStyle=orthogonalEdgeStyle;rounded=0;strokeWidth=2;strokeColor=#1E293B;endArrow=classic;" edge="1" parent="1" source="s_in" target="s_init_s"><mxGeometry relative="1" as="geometry" /></mxCell>
        <mxCell id="e_3" style="edgeStyle=orthogonalEdgeStyle;rounded=0;strokeWidth=2;strokeColor=#1E293B;endArrow=classic;" edge="1" parent="1" source="s_init_s" target="s_loop_k"><mxGeometry relative="1" as="geometry" /></mxCell>
        <mxCell id="e_4" style="edgeStyle=orthogonalEdgeStyle;rounded=0;strokeWidth=2;strokeColor=#1E293B;endArrow=classic;" edge="1" parent="1" source="s_loop_k" target="s_chk_k"><mxGeometry relative="1" as="geometry" /></mxCell>

        <!-- Обход k = 2 (Да - пропуск, Нет - вычисление) -->
        <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="s_chk_k" target="s_term_k"><mxGeometry relative="1" as="geometry" /></mxCell>
        <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="s_chk_k" target="s_k_join"><mxGeometry relative="1" as="geometry"><Array as="points"><mxPoint x="590" y="313" /><mxPoint x="590" y="753" /></Array></mxGeometry></mxCell>

        <mxCell id="e_5" style="edgeStyle=orthogonalEdgeStyle;rounded=0;strokeWidth=2;strokeColor=#1E293B;endArrow=classic;" edge="1" parent="1" source="s_term_k" target="s_loop_m"><mxGeometry relative="1" as="geometry" /></mxCell>
        <mxCell id="e_6" style="edgeStyle=orthogonalEdgeStyle;rounded=0;strokeWidth=2;strokeColor=#1E293B;endArrow=classic;" edge="1" parent="1" source="s_loop_m" target="s_chk_m"><mxGeometry relative="1" as="geometry" /></mxCell>

        <!-- Обход m = 4 (Да - пропуск, Нет - вычисление) -->
        <mxCell id="e_m_no" value="Нет" style="edgeStyle=orthogonalEdgeStyle;rounded=0;strokeWidth=2;strokeColor=#1E293B;endArrow=classic;fontColor=#B91C1C;fontStyle=1;labelBackgroundColor=#FFFFFF;" edge="1" parent="1" source="s_chk_m" target="s_calc_p"><mxGeometry relative="1" as="geometry" /></mxCell>
        <mxCell id="e_m_yes" value="Да" style="edgeStyle=orthogonalEdgeStyle;rounded=0;strokeWidth=2;strokeColor=#1E293B;endArrow=classic;fontColor=#047857;fontStyle=1;labelBackgroundColor=#FFFFFF;" edge="1" parent="1" source="s_chk_m" target="s_m_join"><mxGeometry relative="1" as="geometry"><Array as="points"><mxPoint x="560" y="538" /><mxPoint x="560" y="653" /></Array></mxGeometry></mxCell>

        <!-- Выход из s_calc_p в точку m_join -->
        <mxCell id="e_7" style="edgeStyle=orthogonalEdgeStyle;rounded=0;strokeWidth=2;strokeColor=#1E293B;endArrow=classic;" edge="1" parent="1" source="s_calc_p" target="s_m_join"><mxGeometry relative="1" as="geometry" /></mxCell>

        <!-- Замыкание внутреннего цикла m -->
        <mxCell id="e_m_back" style="edgeStyle=orthogonalEdgeStyle;rounded=0;strokeWidth=2;strokeColor=#1E293B;endArrow=classic;" edge="1" parent="1" source="s_m_join" target="s_loop_m"><mxGeometry relative="1" as="geometry"><Array as="points"><mxPoint x="445" y="670" /><mxPoint x="300" y="670" /><mxPoint x="300" y="462" /></Array></mxGeometry></mxCell>

        <!-- Выход из цикла m (Нет) к сложению -->
        <mxCell id="e_m_exit" value="Нет" style="edgeStyle=orthogonalEdgeStyle;rounded=0;strokeWidth=2;strokeColor=#1E293B;endArrow=classic;fontColor=#B91C1C;fontStyle=1;labelBackgroundColor=#FFFFFF;" edge="1" parent="1" source="s_loop_m" target="s_add_s"><mxGeometry relative="1" as="geometry"><Array as="points"><mxPoint x="260" y="462" /><mxPoint x="260" y="707" /></Array></mxGeometry></mxCell>

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

        <!-- Замыкание внешнего цикла k -->
        <mxCell id="e_k_back" style="edgeStyle=orthogonalEdgeStyle;rounded=0;strokeWidth=2;strokeColor=#1E293B;endArrow=classic;" edge="1" parent="1" source="s_k_join" target="s_loop_k"><mxGeometry relative="1" as="geometry"><Array as="points"><mxPoint x="445" y="770" /><mxPoint x="200" y="770" /><mxPoint x="200" y="242" /></Array></mxGeometry></mxCell>

        <!-- Выход из цикла k (Нет) к выводу -->
        <mxCell id="e_k_exit" value="Нет" style="edgeStyle=orthogonalEdgeStyle;rounded=0;strokeWidth=2;strokeColor=#1E293B;endArrow=classic;fontColor=#B91C1C;fontStyle=1;labelBackgroundColor=#FFFFFF;" edge="1" parent="1" source="s_loop_k" target="s_out"><mxGeometry relative="1" as="geometry"><Array as="points"><mxPoint x="160" y="242" /><mxPoint x="160" y="820" /></Array></mxGeometry></mxCell>

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

      </root>
    </mxGraphModel>
  </diagram>
</mxfile>