Загрузка данных
<mxfile host="app.diagrams.net" agent="Mozilla/5.0" version="24.0.0">
<diagram id="lab7_var10_spaced" 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" />
<!-- Центр блоков: X = 390, ширина = 140 -> центр = 460 -->
<!-- 1. Начало -->
<mxCell id="b_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="395" y="30" width="130" height="40" as="geometry" />
</mxCell>
<!-- 2. Ввод -->
<mxCell id="b_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="390" y="95" width="140" height="40" as="geometry" />
</mxCell>
<!-- 3. S = 0 -->
<mxCell id="b_s0" 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="400" y="160" width="120" height="35" as="geometry" />
</mxCell>
<!-- 4. Цикл k -->
<mxCell id="b_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="385" y="220" width="150" height="45" as="geometry" />
</mxCell>
<!-- 5. Проверка k = 2 -->
<mxCell id="b_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="405" y="295" width="110" height="45" as="geometry" />
</mxCell>
<!-- 6. u и P -->
<mxCell id="b_term_k" value="u = (-3)³ᵏ⁺¹ / (2 · (k - 2) · x³ᵏ⁺¹)
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="345" y="375" width="230" height="45" as="geometry" />
</mxCell>
<!-- 7. Цикл m -->
<mxCell id="b_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="380" y="450" width="160" height="45" as="geometry" />
</mxCell>
<!-- 8. Проверка m = 4 -->
<mxCell id="b_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="405" y="525" width="110" height="45" as="geometry" />
</mxCell>
<!-- 9. Вычисление P -->
<mxCell id="b_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="365" y="605" width="190" height="35" as="geometry" />
</mxCell>
<!-- 10. Сумма S -->
<mxCell id="b_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="395" y="715" width="130" height="35" as="geometry" />
</mxCell>
<!-- 11. Вывод S -->
<mxCell id="b_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="395" y="830" width="130" height="40" as="geometry" />
</mxCell>
<!-- 12. Конец -->
<mxCell id="b_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="395" y="905" 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="b_start" target="b_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="b_in" target="b_s0"><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="b_s0" target="b_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="b_loop_k" target="b_chk_k"><mxGeometry relative="1" as="geometry" /></mxCell>
<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="b_chk_k" target="b_term_k"><mxGeometry relative="1" as="geometry" /></mxCell>
<mxCell id="e_5" style="edgeStyle=orthogonalEdgeStyle;rounded=0;strokeWidth=2;strokeColor=#1E293B;endArrow=classic;" edge="1" parent="1" source="b_term_k" target="b_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="b_loop_m" target="b_chk_m"><mxGeometry relative="1" as="geometry" /></mxCell>
<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="b_chk_m" target="b_calc_p"><mxGeometry relative="1" as="geometry" /></mxCell>
<mxCell id="e_end" style="edgeStyle=orthogonalEdgeStyle;rounded=0;strokeWidth=2;strokeColor=#1E293B;endArrow=classic;" edge="1" parent="1" source="b_out" target="b_end"><mxGeometry relative="1" as="geometry" /></mxCell>
<!-- ================= СПРАВА: ОБХОДЫ ДЕЛЕНИЯ НА 0 ================= -->
<!-- 1. Обход m = 4 (по коридору X = 570) -->
<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="b_chk_m" target="b_loop_m">
<mxGeometry relative="1" as="geometry">
<Array as="points">
<mxPoint x="570" y="548" />
<mxPoint x="570" y="665" />
<mxPoint x="310" y="665" />
<mxPoint x="310" y="472" />
</Array>
</mxGeometry>
</mxCell>
<!-- Замыкание ветки вычисления P (по коридору X = 460 -> 310) -->
<mxCell id="e_p_loop" style="edgeStyle=orthogonalEdgeStyle;rounded=0;strokeWidth=2;strokeColor=#1E293B;endArrow=classic;" edge="1" parent="1" source="b_calc_p" target="b_loop_m">
<mxGeometry relative="1" as="geometry">
<Array as="points">
<mxPoint x="460" y="665" />
<mxPoint x="310" y="665" />
<mxPoint x="310" y="472" />
</Array>
</mxGeometry>
</mxCell>
<!-- 2. Обход k = 2 (по широкому коридору X = 650) -->
<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="b_chk_k" target="b_loop_k">
<mxGeometry relative="1" as="geometry">
<Array as="points">
<mxPoint x="650" y="318" />
<mxPoint x="650" y="780" />
<mxPoint x="180" y="780" />
<mxPoint x="180" y="242" />
</Array>
</mxGeometry>
</mxCell>
<!-- ================= СЛЕВА: ВЫХОДЫ И ЦИКЛЫ ================= -->
<!-- Выход из цикла m (Нет) -> переход к сложению S (коридор X = 240) -->
<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="b_loop_m" target="b_add_s">
<mxGeometry relative="1" as="geometry">
<Array as="points">
<mxPoint x="240" y="472" />
<mxPoint x="240" y="732" />
</Array>
</mxGeometry>
</mxCell>
<!-- Замыкание внешнего цикла k после суммы S (коридор X = 180) -->
<mxCell id="e_k_back" style="edgeStyle=orthogonalEdgeStyle;rounded=0;strokeWidth=2;strokeColor=#1E293B;endArrow=classic;" edge="1" parent="1" source="b_add_s" target="b_loop_k">
<mxGeometry relative="1" as="geometry">
<Array as="points">
<mxPoint x="460" y="780" />
<mxPoint x="180" y="780" />
<mxPoint x="180" y="242" />
</Array>
</mxGeometry>
</mxCell>
<!-- Выход из внешнего цикла k (Нет) -> переход к выводу S (коридор X = 110) -->
<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="b_loop_k" target="b_out">
<mxGeometry relative="1" as="geometry">
<Array as="points">
<mxPoint x="110" y="242" />
<mxPoint x="110" y="850" />
</Array>
</mxGeometry>
</mxCell>
</root>
</mxGraphModel>
</diagram>
</mxfile>