lab5
This commit is contained in:
71
Л5-В6/Блоксхема.drawio
Normal file
71
Л5-В6/Блоксхема.drawio
Normal file
@@ -0,0 +1,71 @@
|
||||
<mxfile host="app.diagrams.net" modified="2024-05-05T16:30:15.640Z" agent="Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0.0.0 Safari/537.36" etag="G6RgyNxifMlW16WjdJVi" version="24.2.7" type="device">
|
||||
<diagram name="Page-1" id="IsdQuIT6SBaa60DIysJm">
|
||||
<mxGraphModel dx="989" dy="509" 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="9QVsrVUUbt5jk-MIr5Bh-3" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;fontFamily=Cascadia Code;" edge="1" parent="1" source="9QVsrVUUbt5jk-MIr5Bh-1" target="9QVsrVUUbt5jk-MIr5Bh-2">
|
||||
<mxGeometry relative="1" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="9QVsrVUUbt5jk-MIr5Bh-1" value="<div>runge_kutta_4(<span style="background-color: initial;">x_0,&nbsp;</span><span style="background-color: initial;">y_0,&nbsp;</span><span style="background-color: initial;">x_n,&nbsp;</span><span style="background-color: initial;">h,&nbsp;</span><span style="background-color: initial;">f</span><span style="background-color: initial;">)</span></div>" style="rounded=1;whiteSpace=wrap;html=1;arcSize=50;fontFamily=Cascadia Code;" vertex="1" parent="1">
|
||||
<mxGeometry x="265" y="180" width="260" height="30" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="9QVsrVUUbt5jk-MIr5Bh-5" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;fontFamily=Cascadia Code;" edge="1" parent="1" source="9QVsrVUUbt5jk-MIr5Bh-2" target="9QVsrVUUbt5jk-MIr5Bh-4">
|
||||
<mxGeometry relative="1" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="9QVsrVUUbt5jk-MIr5Bh-2" value="<div>result = []</div>x_i = x_0<div>y_i = y_0</div><div>result[x_i] = y_i</div>" style="rounded=0;whiteSpace=wrap;html=1;fontFamily=Cascadia Code;" vertex="1" parent="1">
|
||||
<mxGeometry x="335" y="230" width="120" height="90" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="9QVsrVUUbt5jk-MIr5Bh-7" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;fontFamily=Cascadia Code;" edge="1" parent="1" source="9QVsrVUUbt5jk-MIr5Bh-4" target="9QVsrVUUbt5jk-MIr5Bh-6">
|
||||
<mxGeometry relative="1" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="9QVsrVUUbt5jk-MIr5Bh-12" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.5;entryY=0;entryDx=0;entryDy=0;fontFamily=Cascadia Code;" edge="1" parent="1" source="9QVsrVUUbt5jk-MIr5Bh-4" target="9QVsrVUUbt5jk-MIr5Bh-11">
|
||||
<mxGeometry relative="1" as="geometry">
|
||||
<Array as="points">
|
||||
<mxPoint x="560" y="380" />
|
||||
<mxPoint x="560" y="640" />
|
||||
<mxPoint x="395" y="640" />
|
||||
</Array>
|
||||
</mxGeometry>
|
||||
</mxCell>
|
||||
<mxCell id="9QVsrVUUbt5jk-MIr5Bh-4" value="x_i &lt; x_n + h / 2" style="rhombus;whiteSpace=wrap;html=1;spacingLeft=0;spacingRight=0;perimeterSpacing=0;fontFamily=Cascadia Code;" vertex="1" parent="1">
|
||||
<mxGeometry x="320" y="350" width="150" height="60" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="9QVsrVUUbt5jk-MIr5Bh-9" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;fontFamily=Cascadia Code;" edge="1" parent="1" source="9QVsrVUUbt5jk-MIr5Bh-6" target="9QVsrVUUbt5jk-MIr5Bh-8">
|
||||
<mxGeometry relative="1" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="9QVsrVUUbt5jk-MIr5Bh-6" value="k_1 = f(x_i, y_i)<div>k_2 = f(x_i + h / 2, y_i + h / 2 * k_1)<br></div><div>k_3 = f(x_i + h / 2, y_i + h / 2 * k_2)<br></div><div>k_4 = f(x_i + h, y_i + h * k_3)<br></div>" style="rounded=0;whiteSpace=wrap;html=1;fontFamily=Cascadia Code;" vertex="1" parent="1">
|
||||
<mxGeometry x="250" y="430" width="290" height="90" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="9QVsrVUUbt5jk-MIr5Bh-10" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;fontFamily=Cascadia Code;" edge="1" parent="1" source="9QVsrVUUbt5jk-MIr5Bh-8">
|
||||
<mxGeometry relative="1" as="geometry">
|
||||
<mxPoint x="395" y="330" as="targetPoint" />
|
||||
<Array as="points">
|
||||
<mxPoint x="395" y="630" />
|
||||
<mxPoint x="230" y="630" />
|
||||
<mxPoint x="230" y="330" />
|
||||
</Array>
|
||||
</mxGeometry>
|
||||
</mxCell>
|
||||
<mxCell id="9QVsrVUUbt5jk-MIr5Bh-8" value="y_i + h / 6 * (k_1 + 2 * k_2 + 2 * k_3 + k_4)<div>x_i += h</div><div>&nbsp;result[x_i] = y_i<br></div>" style="rounded=0;whiteSpace=wrap;html=1;fontFamily=Cascadia Code;" vertex="1" parent="1">
|
||||
<mxGeometry x="300" y="540" width="190" height="70" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="9QVsrVUUbt5jk-MIr5Bh-14" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;fontFamily=Cascadia Code;" edge="1" parent="1" source="9QVsrVUUbt5jk-MIr5Bh-11" target="9QVsrVUUbt5jk-MIr5Bh-13">
|
||||
<mxGeometry relative="1" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="9QVsrVUUbt5jk-MIr5Bh-11" value="return result" style="rounded=0;whiteSpace=wrap;html=1;fontFamily=Cascadia Code;" vertex="1" parent="1">
|
||||
<mxGeometry x="340" y="660" width="110" height="30" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="9QVsrVUUbt5jk-MIr5Bh-13" value="Конец" style="rounded=1;whiteSpace=wrap;html=1;arcSize=50;fontFamily=Cascadia Code;" vertex="1" parent="1">
|
||||
<mxGeometry x="352.5" y="710" width="85" height="30" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="9QVsrVUUbt5jk-MIr5Bh-15" value="Да" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontFamily=Cascadia Code;" vertex="1" parent="1">
|
||||
<mxGeometry x="391" y="403" width="40" height="30" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="9QVsrVUUbt5jk-MIr5Bh-16" value="Нет" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontFamily=Cascadia Code;" vertex="1" parent="1">
|
||||
<mxGeometry x="470" y="355" width="40" height="30" as="geometry" />
|
||||
</mxCell>
|
||||
</root>
|
||||
</mxGraphModel>
|
||||
</diagram>
|
||||
</mxfile>
|
||||
Reference in New Issue
Block a user