Загрузка данных
<mxfile host="app.diagrams.net" modified="2026-09-25T07:53:00.000Z" agent="Mozilla/5.0" version="21.0.0" type="device">
<diagram id="flowchart-gost" name="Алгоритм">
<mxGraphModel dx="1200" dy="900" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="1169" pageHeight="827" background="#ffffff" math="0" shadow="0">
<root>
<mxCell id="0" />
<mxCell id="1" parent="0" />
<!-- Начало -->
<mxCell id="n_start" value="Начало" style="rounded=1;whiteSpace=wrap;html=1;arcSize=50;strokeColor=#000000;fillColor=#ffffff;strokeWidth=1.5;fontFamily=Arial;fontSize=12;" vertex="1" parent="1">
<mxGeometry x="380" y="40" width="120" height="40" as="geometry" />
</mxCell>
<!-- Ввод a, b, h -->
<mxCell id="n_in" value="вв. a, b, h" style="shape=parallelogram;perimeter=parallelogramPerimeter;whiteSpace=wrap;html=1;fixedSize=1;strokeColor=#000000;fillColor=#ffffff;strokeWidth=1.5;fontFamily=Arial;fontSize=12;" vertex="1" parent="1">
<mxGeometry x="370" y="110" width="140" height="40" as="geometry" />
</mxCell>
<!-- Ромб: h <= 0 или a > b -->
<mxCell id="n_err_check" value="h <= 0 или a > b" style="rhombus;whiteSpace=wrap;html=1;strokeColor=#000000;fillColor=#ffffff;strokeWidth=1.5;fontFamily=Arial;fontSize=12;" vertex="1" parent="1">
<mxGeometry x="360" y="180" width="160" height="60" as="geometry" />
</mxCell>
<!-- Ошибка ввода -->
<mxCell id="n_err_out" value="Ошибка ввода" style="shape=parallelogram;perimeter=parallelogramPerimeter;whiteSpace=wrap;html=1;fixedSize=1;strokeColor=#000000;fillColor=#ffffff;strokeWidth=1.5;fontFamily=Arial;fontSize=12;" vertex="1" parent="1">
<mxGeometry x="580" y="190" width="130" height="40" as="geometry" />
</mxCell>
<!-- x := a -->
<mxCell id="n_init_x" value="x := a" style="rounded=0;whiteSpace=wrap;html=1;strokeColor=#000000;fillColor=#ffffff;strokeWidth=1.5;fontFamily=Arial;fontSize=12;" vertex="1" parent="1">
<mxGeometry x="380" y="270" width="120" height="40" as="geometry" />
</mxCell>
<!-- Ромб: x <= b + h / 2.0 -->
<mxCell id="n_loop_x" value="x <= b + h / 2.0" style="rhombus;whiteSpace=wrap;html=1;strokeColor=#000000;fillColor=#ffffff;strokeWidth=1.5;fontFamily=Arial;fontSize=12;" vertex="1" parent="1">
<mxGeometry x="355" y="340" width="170" height="60" as="geometry" />
</mxCell>
<!-- Ромб: x <= 0.0 -->
<mxCell id="n_cond_x" value="x <= 0.0" style="rhombus;whiteSpace=wrap;html=1;strokeColor=#000000;fillColor=#ffffff;strokeWidth=1.5;fontFamily=Arial;fontSize=12;" vertex="1" parent="1">
<mxGeometry x="375" y="430" width="130" height="60" as="geometry" />
</mxCell>
<!-- Ветка Да: y := (2 - x)^(2 - x) -->
<mxCell id="n_y_calc1" value="y := (2 - x)^(2 - x)" style="rounded=0;whiteSpace=wrap;html=1;strokeColor=#000000;fillColor=#ffffff;strokeWidth=1.5;fontFamily=Arial;fontSize=12;" vertex="1" parent="1">
<mxGeometry x="200" y="520" width="130" height="40" as="geometry" />
</mxCell>
<!-- Ветка Нет: S := 0 -->
<mxCell id="n_init_s" value="S := 0" style="rounded=0;whiteSpace=wrap;html=1;strokeColor=#000000;fillColor=#ffffff;strokeWidth=1.5;fontFamily=Arial;fontSize=12;" vertex="1" parent="1">
<mxGeometry x="510" y="440" width="100" height="40" as="geometry" />
</mxCell>
<!-- Шестиугольник: k := 3 .. 9, 1 -->
<mxCell id="n_loop_k" value="k := 3 .. 9, 1" style="shape=hexagon;perimeter=hexagonPerimeter2;whiteSpace=wrap;html=1;fixedSize=1;strokeColor=#000000;fillColor=#ffffff;strokeWidth=1.5;fontFamily=Arial;fontSize=12;" vertex="1" parent="1">
<mxGeometry x="495" y="510" width="130" height="50" as="geometry" />
</mxCell>
<!-- Тело цикла: S := S + x^(-k) -->
<mxCell id="n_calc_s" value="S := S + x^(-k)" style="rounded=0;whiteSpace=wrap;html=1;strokeColor=#000000;fillColor=#ffffff;strokeWidth=1.5;fontFamily=Arial;fontSize=12;" vertex="1" parent="1">
<mxGeometry x="495" y="590" width="130" height="40" as="geometry" />
</mxCell>
<!-- y := S -->
<mxCell id="n_y_calc2" value="y := S" style="rounded=0;whiteSpace=wrap;html=1;strokeColor=#000000;fillColor=#ffffff;strokeWidth=1.5;fontFamily=Arial;fontSize=12;" vertex="1" parent="1">
<mxGeometry x="660" y="590" width="90" height="40" as="geometry" />
</mxCell>
<!-- выв. x, y -->
<mxCell id="n_out" value="выв. x, y" style="shape=parallelogram;perimeter=parallelogramPerimeter;whiteSpace=wrap;html=1;fixedSize=1;strokeColor=#000000;fillColor=#ffffff;strokeWidth=1.5;fontFamily=Arial;fontSize=12;" vertex="1" parent="1">
<mxGeometry x="375" y="670" width="130" height="40" as="geometry" />
</mxCell>
<!-- x := x + h -->
<mxCell id="n_step_x" value="x := x + h" style="rounded=0;whiteSpace=wrap;html=1;strokeColor=#000000;fillColor=#ffffff;strokeWidth=1.5;fontFamily=Arial;fontSize=12;" vertex="1" parent="1">
<mxGeometry x="380" y="740" width="120" height="40" as="geometry" />
</mxCell>
<!-- Конец -->
<mxCell id="n_end" value="Конец" style="rounded=1;whiteSpace=wrap;html=1;arcSize=50;strokeColor=#000000;fillColor=#ffffff;strokeWidth=1.5;fontFamily=Arial;fontSize=12;" vertex="1" parent="1">
<mxGeometry x="800" y="740" width="120" height="40" as="geometry" />
</mxCell>
<!-- Связи -->
<mxCell id="e1" edge="1" parent="1" source="n_start" target="n_in" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;strokeColor=#000000;strokeWidth=1.2;">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="e2" edge="1" parent="1" source="n_in" target="n_err_check" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;strokeColor=#000000;strokeWidth=1.2;">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="e3" value="Да" edge="1" parent="1" source="n_err_check" target="n_err_out" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;strokeColor=#000000;strokeWidth=1.2;labelBackgroundColor=#ffffff;">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="e4" edge="1" parent="1" source="n_err_out" target="n_end" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;strokeColor=#000000;strokeWidth=1.2;">
<mxGeometry relative="1" as="geometry">
<Array as="points">
<mxPoint x="860" y="210" />
</Array>
</mxGeometry>
</mxCell>
<mxCell id="e5" value="Нет" edge="1" parent="1" source="n_err_check" target="n_init_x" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;strokeColor=#000000;strokeWidth=1.2;labelBackgroundColor=#ffffff;">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="e6" edge="1" parent="1" source="n_init_x" target="n_loop_x" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;strokeColor=#000000;strokeWidth=1.2;">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="e7" value="Нет" edge="1" parent="1" source="n_loop_x" target="n_end" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;strokeColor=#000000;strokeWidth=1.2;labelBackgroundColor=#ffffff;">
<mxGeometry relative="1" as="geometry">
<Array as="points">
<mxPoint x="830" y="370" />
</Array>
</mxGeometry>
</mxCell>
<mxCell id="e8" value="Да" edge="1" parent="1" source="n_loop_x" target="n_cond_x" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;strokeColor=#000000;strokeWidth=1.2;labelBackgroundColor=#ffffff;">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="e9" value="Да" edge="1" parent="1" source="n_cond_x" target="n_y_calc1" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;strokeColor=#000000;strokeWidth=1.2;labelBackgroundColor=#ffffff;">
<mxGeometry relative="1" as="geometry">
<Array as="points">
<mxPoint x="265" y="460" />
</Array>
</mxGeometry>
</mxCell>
<mxCell id="e10" value="Нет" edge="1" parent="1" source="n_cond_x" target="n_init_s" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;strokeColor=#000000;strokeWidth=1.2;labelBackgroundColor=#ffffff;">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="e11" edge="1" parent="1" source="n_init_s" target="n_loop_k" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;strokeColor=#000000;strokeWidth=1.2;">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="e12" value="Да" edge="1" parent="1" source="n_loop_k" target="n_calc_s" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;strokeColor=#000000;strokeWidth=1.2;labelBackgroundColor=#ffffff;">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="e13" edge="1" parent="1" source="n_calc_s" target="n_loop_k" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;strokeColor=#000000;strokeWidth=1.2;">
<mxGeometry relative="1" as="geometry">
<Array as="points">
<mxPoint x="460" y="610" />
<mxPoint x="460" y="535" />
</Array>
</mxGeometry>
</mxCell>
<mxCell id="e14" value="Нет" edge="1" parent="1" source="n_loop_k" target="n_y_calc2" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;strokeColor=#000000;strokeWidth=1.2;labelBackgroundColor=#ffffff;">
<mxGeometry relative="1" as="geometry">
<Array as="points">
<mxPoint x="705" y="535" />
</Array>
</mxGeometry>
</mxCell>
<mxCell id="e15" edge="1" parent="1" source="n_y_calc1" target="n_out" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;strokeColor=#000000;strokeWidth=1.2;">
<mxGeometry relative="1" as="geometry">
<Array as="points">
<mxPoint x="265" y="690" />
</Array>
</mxGeometry>
</mxCell>
<mxCell id="e16" edge="1" parent="1" source="n_y_calc2" target="n_out" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;strokeColor=#000000;strokeWidth=1.2;">
<mxGeometry relative="1" as="geometry">
<Array as="points">
<mxPoint x="705" y="690" />
</Array>
</mxGeometry>
</mxCell>
<mxCell id="e17" edge="1" parent="1" source="n_out" target="n_step_x" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;strokeColor=#000000;strokeWidth=1.2;">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="e18" edge="1" parent="1" source="n_step_x" target="n_loop_x" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;strokeColor=#000000;strokeWidth=1.2;">
<mxGeometry relative="1" as="geometry">
<Array as="points">
<mxPoint x="120" y="760" />
<mxPoint x="120" y="370" />
</Array>
</mxGeometry>
</mxCell>
</root>
</mxGraphModel>
</diagram>
</mxfile>