Загрузка данных
<mxGraphModel dx="1200" dy="1400" grid="0" 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. Ввод x, n -->
<mxCell id="in_data" 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="330" y="95" width="160" height="40" as="geometry" />
</mxCell>
<!-- 3. Инициализация суммы 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="340" y="160" width="140" height="35" as="geometry" />
</mxCell>
<!-- 4. Внешний цикл: k = 1, n, 1 -->
<mxCell id="loop_k" value="k = 1, n, 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="325" y="225" width="170" height="45" as="geometry" />
</mxCell>
<!-- 5. Инициализация произведения P = 1 внутри внешнего цикла -->
<mxCell id="init_p" value="P = 1" style="rounded=0;whiteSpace=wrap;html=1;strokeWidth=2;strokeColor=#1E293B;fontFamily=Times New Roman;fontSize=14;" vertex="1" parent="1">
<mxGeometry x="340" y="295" width="140" height="35" as="geometry" />
</mxCell>
<!-- 6. Внутренний цикл: m = 1, k + 2, 1 -->
<mxCell id="loop_m" value="m = 1, k + 2, 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="315" y="355" width="190" height="45" as="geometry" />
</mxCell>
<!-- 7. Тело внутреннего цикла: P = P * ((m^3 - 8) / (m - 4)) -->
<mxCell id="calc_p" value="P = P · ((m<sup>3</sup> - 8) / (m - 4))" style="rounded=0;whiteSpace=wrap;html=1;strokeWidth=2;strokeColor=#1E293B;fontFamily=Times New Roman;fontSize=14;" vertex="1" parent="1">
<mxGeometry x="295" y="430" width="230" height="40" as="geometry" />
</mxCell>
<!-- 8. Расчет слагаемого и добавление к сумме S -->
<mxCell id="calc_s" value="S = S + ((-3)<sup>3k+1</sup> / (2·(k - 2)·x<sup>3k+1</sup>)) · P" style="rounded=0;whiteSpace=wrap;html=1;strokeWidth=2;strokeColor=#1E293B;fontFamily=Times New Roman;fontSize=14;" vertex="1" parent="1">
<mxGeometry x="245" y="505" width="330" height="45" as="geometry" />
</mxCell>
<!-- 9. Вывод S -->
<mxCell id="out_s" 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="340" y="590" width="140" height="40" as="geometry" />
</mxCell>
<!-- 10. Конец -->
<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="660" width="140" height="40" as="geometry" />
</mxCell>
<!-- Соединительные линии ствола -->
<mxCell id="e_start" 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" style="edgeStyle=orthogonalEdgeStyle;rounded=0;strokeWidth=2;strokeColor=#1E293B;endArrow=classic;" edge="1" parent="1" source="in_data" target="init_s">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="e_init_s" style="edgeStyle=orthogonalEdgeStyle;rounded=0;strokeWidth=2;strokeColor=#1E293B;endArrow=classic;" edge="1" parent="1" source="init_s" target="loop_k">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<!-- Вход во внешний цикл: Да -> P = 1 -->
<mxCell id="e_loop_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="init_p">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="e_init_p" style="edgeStyle=orthogonalEdgeStyle;rounded=0;strokeWidth=2;strokeColor=#1E293B;endArrow=classic;" edge="1" parent="1" source="init_p" target="loop_m">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<!-- Вход во внутренний цикл: Да -> calc_p -->
<mxCell id="e_loop_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="loop_m" target="calc_p">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<!-- Петля внутреннего цикла m: из calc_p обратно наверх перед loop_m -->
<mxCell id="e_loop_m_back" style="edgeStyle=orthogonalEdgeStyle;rounded=0;strokeWidth=2;strokeColor=#1E293B;endArrow=classic;" edge="1" parent="1" source="calc_p">
<mxGeometry relative="1" as="geometry">
<mxPoint x="410" y="342" as="targetPoint" />
<Array as="points">
<mxPoint x="200" y="450" />
<mxPoint x="200" y="342" />
</Array>
</mxGeometry>
</mxCell>
<!-- Выход из внутреннего цикла m: Нет -> расчет слагаемого и накопление суммы S -->
<mxCell id="e_loop_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="loop_m" target="calc_s">
<mxGeometry relative="1" as="geometry">
<Array as="points">
<mxPoint x="550" y="377.5" />
<mxPoint x="550" y="490" />
<mxPoint x="410" y="490" />
</Array>
</mxGeometry>
</mxCell>
<!-- Петля внешнего цикла k: из calc_s обратно наверх перед loop_k -->
<mxCell id="e_loop_k_back" style="edgeStyle=orthogonalEdgeStyle;rounded=0;strokeWidth=2;strokeColor=#1E293B;endArrow=classic;" edge="1" parent="1" source="calc_s">
<mxGeometry relative="1" as="geometry">
<mxPoint x="410" y="210" as="targetPoint" />
<Array as="points">
<mxPoint x="140" y="527.5" />
<mxPoint x="140" y="210" />
</Array>
</mxGeometry>
</mxCell>
<!-- Выход из внешнего цикла k: Нет -> вывод S -->
<mxCell id="e_loop_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="out_s">
<mxGeometry relative="1" as="geometry">
<Array as="points">
<mxPoint x="640" y="247.5" />
<mxPoint x="640" y="570" />
<mxPoint x="410" y="570" />
</Array>
</mxGeometry>
</mxCell>
<!-- Вывод S -> Конец -->
<mxCell id="e_out" style="edgeStyle=orthogonalEdgeStyle;rounded=0;strokeWidth=2;strokeColor=#1E293B;endArrow=classic;" edge="1" parent="1" source="out_s" target="end">
<mxGeometry relative="1" as="geometry" />
</mxCell>
</root>
</mxGraphModel>