Загрузка данных
<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="1000" dy="800" 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" />
<!-- Начало -->
<mxCell id="start" value="Начало" style="ellipse;whiteSpace=wrap;html=1;fillColor=#f5f5f5;strokeColor=#666666;" vertex="1" parent="1">
<mxGeometry x="370" y="40" width="120" height="50" as="geometry" />
</mxCell>
<!-- Ввод данных -->
<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="360" y="120" width="140" height="50" as="geometry" />
</mxCell>
<!-- Проверка ввода -->
<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="350" y="200" width="160" height="80" as="geometry" />
</mxCell>
<!-- Ошибка ввода -->
<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="600" y="215" width="120" height="50" as="geometry" />
</mxCell>
<!-- 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="370" y="320" width="120" height="50" as="geometry" />
</mxCell>
<!-- Условие цикла x <= b + h/2.0 -->
<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="345" y="400" width="170" height="80" as="geometry" />
</mxCell>
<!-- Условие 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="345" y="520" width="170" height="80" as="geometry" />
</mxCell>
<!-- Формула y = (2-x)^(2-x) -->
<mxCell id="formula_1" value="y := (2 - x)^(2 - x)" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#f5f5f5;strokeColor=#666666;" vertex="1" parent="1">
<mxGeometry x="200" y="620" width="180" height="50" as="geometry" />
</mxCell>
<!-- 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="520" width="120" height="50" as="geometry" />
</mxCell>
<!-- Цикл k = 3..9, 1 -->
<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="610" width="160" height="60" as="geometry" />
</mxCell>
<!-- S = S + x^(-k) -->
<mxCell id="sum_s" value="S := S + x^(-k)" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#f5f5f5;strokeColor=#666666;" vertex="1" parent="1">
<mxGeometry x="480" y="700" width="120" height="50" as="geometry" />
</mxCell>
<!-- 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="800" width="120" height="50" as="geometry" />
</mxCell>
<!-- Вывод 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="330" y="920" width="160" height="50" as="geometry" />
</mxCell>
<!-- 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="350" y="1000" width="120" height="50" as="geometry" />
</mxCell>
<!-- Конец -->
<mxCell id="end" value="Конец" style="ellipse;whiteSpace=wrap;html=1;fillColor=#f5f5f5;strokeColor=#666666;" vertex="1" parent="1">
<mxGeometry x="370" y="1100" 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="660" y="1125" />
</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="725" />
<mxPoint x="440" y="640" />
</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="640" />
<mxPoint x="660" y="825" />
</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 и y := S -> Вывод 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="290" y="880" />
<mxPoint x="410" y="880" />
</Array>
</mxGeometry>
</mxCell>
<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="880" />
<mxPoint x="410" y="880" />
</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="1025" />
<mxPoint x="150" y="440" />
</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="440" />
<mxPoint x="740" y="1125" />
</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>