Загрузка данных
<mxfile host="app.diagrams.net" modified="2026-09-25T12:00:00.000Z" agent="Mozilla/5.0" version="24.7.17" type="device">
<diagram id="diagram_1" name="Блок-схема">
<mxGraphModel dx="1200" dy="1000" 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="ellipse;whiteSpace=wrap;html=1;fillColor=#f5f5f5;strokeColor=#666666;" vertex="1" parent="1">
<mxGeometry x="360" y="40" width="120" height="50" as="geometry" />
</mxCell>
<!-- 2. Ввод данных -->
<mxCell id="input" value="вв. a, b, h" style="shape=parallelogram;perimeter=parallelogramPerimeter;whiteSpace=wrap;html=1;fixedSize=1;fillColor=#f5f5f5;strokeColor=#666666;" vertex="1" parent="1">
<mxGeometry x="350" y="120" width="140" height="50" as="geometry" />
</mxCell>
<!-- 3. Проверка корректности ввода -->
<mxCell id="check_input" value="h <= 0 или a > b" style="rhombus;whiteSpace=wrap;html=1;fillColor=#f5f5f5;strokeColor=#666666;" vertex="1" parent="1">
<mxGeometry x="340" y="200" width="160" height="80" as="geometry" />
</mxCell>
<!-- 3a. Ошибка ввода -->
<mxCell id="error" value="Ошибка ввода" style="shape=parallelogram;perimeter=parallelogramPerimeter;whiteSpace=wrap;html=1;fixedSize=1;fillColor=#f5f5f5;strokeColor=#666666;" vertex="1" parent="1">
<mxGeometry x="580" y="215" width="120" height="50" as="geometry" />
</mxCell>
<!-- 4. x := a -->
<mxCell id="init_x" value="x := a" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#f5f5f5;strokeColor=#666666;" vertex="1" parent="1">
<mxGeometry x="360" y="320" width="120" height="50" as="geometry" />
</mxCell>
<!-- 5. Условие цикла -->
<mxCell id="loop_cond" value="x <= b + h / 2.0" style="rhombus;whiteSpace=wrap;html=1;fillColor=#f5f5f5;strokeColor=#666666;" vertex="1" parent="1">
<mxGeometry x="335" y="410" width="170" height="80" as="geometry" />
</mxCell>
<!-- 6. Условие x <= 0.0 -->
<mxCell id="if_cond" value="x <= 0.0" style="rhombus;whiteSpace=wrap;html=1;fillColor=#f5f5f5;strokeColor=#666666;" vertex="1" parent="1">
<mxGeometry x="335" y="530" width="170" height="80" as="geometry" />
</mxCell>
<!-- 7a. Формула 1 (левая ветка) - СТЕПЕНЬ ИСПРАВЛЕНА -->
<mxCell id="formula_1" value="y := (2 - x)<sup>(2 - x)</sup>" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#f5f5f5;strokeColor=#666666;" vertex="1" parent="1">
<mxGeometry x="180" y="630" width="180" height="50" as="geometry" />
</mxCell>
<!-- 7b. S := 0 (правая ветка) -->
<mxCell id="init_s" value="S := 0" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#f5f5f5;strokeColor=#666666;" vertex="1" parent="1">
<mxGeometry x="480" y="530" width="120" height="50" as="geometry" />
</mxCell>
<!-- 8. Цикл k -->
<mxCell id="loop_k" value="k := 3 .. 9, 1" style="shape=hexagon;perimeter=hexagonPerimeter2;whiteSpace=wrap;html=1;fixedSize=1;fillColor=#f5f5f5;strokeColor=#666666;" vertex="1" parent="1">
<mxGeometry x="460" y="620" width="160" height="60" as="geometry" />
</mxCell>
<!-- 9. S := S + x^(-k) - СТЕПЕНЬ ИСПРАВЛЕНА -->
<mxCell id="sum_s" value="S := S + x<sup>(-k)</sup>" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#f5f5f5;strokeColor=#666666;" vertex="1" parent="1">
<mxGeometry x="480" y="710" width="120" height="50" as="geometry" />
</mxCell>
<!-- 10. y := S -->
<mxCell id="y_s" value="y := S" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#f5f5f5;strokeColor=#666666;" vertex="1" parent="1">
<mxGeometry x="480" y="810" width="120" height="50" as="geometry" />
</mxCell>
<!-- 11. Вывод x, y -->
<mxCell id="output" value="выв. x, y" style="shape=parallelogram;perimeter=parallelogramPerimeter;whiteSpace=wrap;html=1;fixedSize=1;fillColor=#f5f5f5;strokeColor=#666666;" vertex="1" parent="1">
<mxGeometry x="320" y="930" width="160" height="50" as="geometry" />
</mxCell>
<!-- 12. x := x + h -->
<mxCell id="inc_x" value="x := x + h" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#f5f5f5;strokeColor=#666666;" vertex="1" parent="1">
<mxGeometry x="340" y="1010" width="120" height="50" as="geometry" />
</mxCell>
<!-- 13. Конец -->
<mxCell id="end" value="Конец" style="ellipse;whiteSpace=wrap;html=1;fillColor=#f5f5f5;strokeColor=#666666;" vertex="1" parent="1">
<mxGeometry x="360" y="1110" width="120" height="50" as="geometry" />
</mxCell>
<!-- ================== СТРЕЛКИ ================== -->
<!-- Начало -> Ввод -->
<mxCell id="e1" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" edge="1" parent="1" source="start" target="input">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<!-- Ввод -> Проверка ввода -->
<mxCell id="e2" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" edge="1" parent="1" source="input" target="check_input">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<!-- Проверка ввода (Да) -> Ошибка -->
<mxCell id="e3" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=1;exitY=0.5;exitDx=0;exitDy=0;entryX=0;entryY=0.5;entryDx=0;entryDy=0;" edge="1" parent="1" source="check_input" target="error">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="e3_lbl" value="Да" style="edgeLabel;html=1;align=center;verticalAlign=middle;resizable=0;points=[];" vertex="1" connectable="0" parent="e3">
<mxGeometry x="-0.2" relative="1" as="geometry"><mxPoint as="offset" /></mxGeometry>
</mxCell>
<!-- Ошибка -> Конец -->
<mxCell id="e4" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=1;entryY=0.5;entryDx=0;entryDy=0;" edge="1" parent="1" source="error" target="end">
<mxGeometry relative="1" as="geometry"><Array as="points"><mxPoint x="640" y="1135" /></Array></mxGeometry>
</mxCell>
<!-- Проверка ввода (Нет) -> x := a -->
<mxCell id="e5" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" edge="1" parent="1" source="check_input" target="init_x">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="e5_lbl" value="Нет" style="edgeLabel;html=1;align=center;verticalAlign=middle;resizable=0;points=[];" vertex="1" connectable="0" parent="e5">
<mxGeometry x="-0.2" relative="1" as="geometry"><mxPoint as="offset" /></mxGeometry>
</mxCell>
<!-- x:=a -> Условие цикла -->
<mxCell id="e6" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" edge="1" parent="1" source="init_x" target="loop_cond">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<!-- Условие цикла (Да) -> Условие x <= 0.0 -->
<mxCell id="e7" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" edge="1" parent="1" source="loop_cond" target="if_cond">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="e7_lbl" value="Да" style="edgeLabel;html=1;align=center;verticalAlign=middle;resizable=0;points=[];" vertex="1" connectable="0" parent="e7">
<mxGeometry x="-0.2" relative="1" as="geometry"><mxPoint as="offset" /></mxGeometry>
</mxCell>
<!-- Условие x <= 0.0 (Да) -> Формула 1 -->
<mxCell id="e8" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0;exitY=0.5;exitDx=0;exitDy=0;entryX=1;entryY=0.5;entryDx=0;entryDy=0;" edge="1" parent="1" source="if_cond" target="formula_1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="e8_lbl" value="Да" style="edgeLabel;html=1;align=center;verticalAlign=middle;resizable=0;points=[];" vertex="1" connectable="0" parent="e8">
<mxGeometry x="-0.2" relative="1" as="geometry"><mxPoint as="offset" /></mxGeometry>
</mxCell>
<!-- Условие x <= 0.0 (Нет) -> S := 0 -->
<mxCell id="e9" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=1;exitY=0.5;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" edge="1" parent="1" source="if_cond" target="init_s">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="e9_lbl" value="Нет" style="edgeLabel;html=1;align=center;verticalAlign=middle;resizable=0;points=[];" vertex="1" connectable="0" parent="e9">
<mxGeometry x="-0.2" relative="1" as="geometry"><mxPoint as="offset" /></mxGeometry>
</mxCell>
<!-- S:=0 -> Цикл k -->
<mxCell id="e10" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" edge="1" parent="1" source="init_s" target="loop_k">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<!-- Цикл k (Да) -> S := S + x^(-k) -->
<mxCell id="e11" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" edge="1" parent="1" source="loop_k" target="sum_s">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="e11_lbl" value="Да" style="edgeLabel;html=1;align=center;verticalAlign=middle;resizable=0;points=[];" vertex="1" connectable="0" parent="e11">
<mxGeometry x="-0.2" relative="1" as="geometry"><mxPoint as="offset" /></mxGeometry>
</mxCell>
<!-- S := S + x^(-k) -> обратно к циклу k -->
<mxCell id="e12" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0;exitY=0.5;exitDx=0;exitDy=0;entryX=0;entryY=0.5;entryDx=0;entryDy=0;" edge="1" parent="1" source="sum_s" target="loop_k">
<mxGeometry relative="1" as="geometry">
<Array as="points"><mxPoint x="440" y="735" /><mxPoint x="440" y="650" /></Array>
</mxGeometry>
</mxCell>
<!-- Цикл k (Нет) -> y := S -->
<mxCell id="e13" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=1;exitY=0.5;exitDx=0;exitDy=0;entryX=1;entryY=0.5;entryDx=0;entryDy=0;" edge="1" parent="1" source="loop_k" target="y_s">
<mxGeometry relative="1" as="geometry">
<Array as="points"><mxPoint x="660" y="650" /><mxPoint x="660" y="835" /></Array>
</mxGeometry>
</mxCell>
<mxCell id="e13_lbl" value="Нет" style="edgeLabel;html=1;align=center;verticalAlign=middle;resizable=0;points=[];" vertex="1" connectable="0" parent="e13">
<mxGeometry x="-0.2" relative="1" as="geometry"><mxPoint as="offset" /></mxGeometry>
</mxCell>
<!-- Формула 1 -> Вывод x, y -->
<mxCell id="e14" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" edge="1" parent="1" source="formula_1" target="output">
<mxGeometry relative="1" as="geometry">
<Array as="points"><mxPoint x="270" y="900" /><mxPoint x="400" y="900" /></Array>
</mxGeometry>
</mxCell>
<!-- y := S -> Вывод x, y -->
<mxCell id="e15" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" edge="1" parent="1" source="y_s" target="output">
<mxGeometry relative="1" as="geometry">
<Array as="points"><mxPoint x="540" y="900" /><mxPoint x="400" y="900" /></Array>
</mxGeometry>
</mxCell>
<!-- Вывод -> x := x + h -->
<mxCell id="e16" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" edge="1" parent="1" source="output" target="inc_x">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<!-- x := x + h -> обратно к Условию цикла -->
<mxCell id="e17" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0;exitY=0.5;exitDx=0;exitDy=0;entryX=0;entryY=0.5;entryDx=0;entryDy=0;" edge="1" parent="1" source="inc_x" target="loop_cond">
<mxGeometry relative="1" as="geometry">
<Array as="points"><mxPoint x="150" y="1035" /><mxPoint x="150" y="450" /></Array>
</mxGeometry>
</mxCell>
<!-- Условие цикла (Нет) -> Конец -->
<mxCell id="e18" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=1;exitY=0.5;exitDx=0;exitDy=0;entryX=1;entryY=0.5;entryDx=0;entryDy=0;" edge="1" parent="1" source="loop_cond" target="end">
<mxGeometry relative="1" as="geometry">
<Array as="points"><mxPoint x="740" y="450" /><mxPoint x="740" y="1135" /></Array>
</mxGeometry>
</mxCell>
<mxCell id="e18_lbl" value="Нет" style="edgeLabel;html=1;align=center;verticalAlign=middle;resizable=0;points=[];" vertex="1" connectable="0" parent="e18">
<mxGeometry x="-0.2" relative="1" as="geometry"><mxPoint as="offset" /></mxGeometry>
</mxCell>
</root>
</mxGraphModel>
</diagram>
</mxfile>