Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save genkuroki/d58e15861d61b2d0ce090c408e1e2da7 to your computer and use it in GitHub Desktop.
Save genkuroki/d58e15861d61b2d0ce090c408e1e2da7 to your computer and use it in GitHub Desktop.
DifferentialEquations.jl minimal example
Display the source blob
Display the rendered blob
Raw
{
"cells": [
{
"metadata": {
"trusted": true
},
"cell_type": "code",
"source": "using DifferentialEquations\nusing Plots; gr(titlefontsize=10)\n\nf(y, p, t) = 0.3134y*(1-y/1.97e8)\ny₀ = 3.9e6\ntspan = (0.0, 10.0)\nprob = ODEProblem(f, y₀, tspan)\n@time sol = solve(prob)\nplot(sol; legend=:topleft)",
"execution_count": 3,
"outputs": [
{
"output_type": "stream",
"text": " 0.499416 seconds (1.10 M allocations: 56.981 MiB, 6.41% gc time)\n",
"name": "stdout"
},
{
"output_type": "execute_result",
"execution_count": 3,
"data": {
"image/svg+xml": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"600\" height=\"400\" viewBox=\"0 0 2400 1600\">\n<defs>\n <clipPath id=\"clip1400\">\n <rect x=\"0\" y=\"0\" width=\"2400\" height=\"1600\"/>\n </clipPath>\n</defs>\n<polygon clip-path=\"url(#clip1400)\" points=\"\n0,1600 2400,1600 2400,0 0,0 \n \" fill=\"#ffffff\" fill-rule=\"evenodd\" fill-opacity=\"1\"/>\n<defs>\n <clipPath id=\"clip1401\">\n <rect x=\"480\" y=\"0\" width=\"1681\" height=\"1600\"/>\n </clipPath>\n</defs>\n<polygon clip-path=\"url(#clip1400)\" points=\"\n251.272,1425.62 2352.76,1425.62 2352.76,47.2441 251.272,47.2441 \n \" fill=\"#ffffff\" fill-rule=\"evenodd\" fill-opacity=\"1\"/>\n<defs>\n <clipPath id=\"clip1402\">\n <rect x=\"251\" y=\"47\" width=\"2102\" height=\"1379\"/>\n </clipPath>\n</defs>\n<polyline clip-path=\"url(#clip1402)\" style=\"stroke:#000000; stroke-width:2; stroke-opacity:0.1; fill:none\" points=\"\n 251.272,1425.62 251.272,47.2441 \n \"/>\n<polyline clip-path=\"url(#clip1402)\" style=\"stroke:#000000; stroke-width:2; stroke-opacity:0.1; fill:none\" points=\"\n 671.569,1425.62 671.569,47.2441 \n \"/>\n<polyline clip-path=\"url(#clip1402)\" style=\"stroke:#000000; stroke-width:2; stroke-opacity:0.1; fill:none\" points=\"\n 1091.87,1425.62 1091.87,47.2441 \n \"/>\n<polyline clip-path=\"url(#clip1402)\" style=\"stroke:#000000; stroke-width:2; stroke-opacity:0.1; fill:none\" points=\"\n 1512.16,1425.62 1512.16,47.2441 \n \"/>\n<polyline clip-path=\"url(#clip1402)\" style=\"stroke:#000000; stroke-width:2; stroke-opacity:0.1; fill:none\" points=\"\n 1932.46,1425.62 1932.46,47.2441 \n \"/>\n<polyline clip-path=\"url(#clip1402)\" style=\"stroke:#000000; stroke-width:2; stroke-opacity:0.1; fill:none\" points=\"\n 2352.76,1425.62 2352.76,47.2441 \n \"/>\n<polyline clip-path=\"url(#clip1402)\" style=\"stroke:#000000; stroke-width:2; stroke-opacity:0.1; fill:none\" points=\"\n 251.272,1251.07 2352.76,1251.07 \n \"/>\n<polyline clip-path=\"url(#clip1402)\" style=\"stroke:#000000; stroke-width:2; stroke-opacity:0.1; fill:none\" points=\"\n 251.272,1028.87 2352.76,1028.87 \n \"/>\n<polyline clip-path=\"url(#clip1402)\" style=\"stroke:#000000; stroke-width:2; stroke-opacity:0.1; fill:none\" points=\"\n 251.272,806.667 2352.76,806.667 \n \"/>\n<polyline clip-path=\"url(#clip1402)\" style=\"stroke:#000000; stroke-width:2; stroke-opacity:0.1; fill:none\" points=\"\n 251.272,584.468 2352.76,584.468 \n \"/>\n<polyline clip-path=\"url(#clip1402)\" style=\"stroke:#000000; stroke-width:2; stroke-opacity:0.1; fill:none\" points=\"\n 251.272,362.268 2352.76,362.268 \n \"/>\n<polyline clip-path=\"url(#clip1402)\" style=\"stroke:#000000; stroke-width:2; stroke-opacity:0.1; fill:none\" points=\"\n 251.272,140.068 2352.76,140.068 \n \"/>\n<polyline clip-path=\"url(#clip1400)\" style=\"stroke:#000000; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n 251.272,1425.62 2352.76,1425.62 \n \"/>\n<polyline clip-path=\"url(#clip1400)\" style=\"stroke:#000000; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n 251.272,1425.62 251.272,47.2441 \n \"/>\n<polyline clip-path=\"url(#clip1400)\" style=\"stroke:#000000; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n 251.272,1425.62 251.272,1404.94 \n \"/>\n<polyline clip-path=\"url(#clip1400)\" style=\"stroke:#000000; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n 671.569,1425.62 671.569,1404.94 \n \"/>\n<polyline clip-path=\"url(#clip1400)\" style=\"stroke:#000000; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n 1091.87,1425.62 1091.87,1404.94 \n \"/>\n<polyline clip-path=\"url(#clip1400)\" style=\"stroke:#000000; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n 1512.16,1425.62 1512.16,1404.94 \n \"/>\n<polyline clip-path=\"url(#clip1400)\" style=\"stroke:#000000; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n 1932.46,1425.62 1932.46,1404.94 \n \"/>\n<polyline clip-path=\"url(#clip1400)\" style=\"stroke:#000000; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n 2352.76,1425.62 2352.76,1404.94 \n \"/>\n<polyline clip-path=\"url(#clip1400)\" style=\"stroke:#000000; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n 251.272,1251.07 282.795,1251.07 \n \"/>\n<polyline clip-path=\"url(#clip1400)\" style=\"stroke:#000000; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n 251.272,1028.87 282.795,1028.87 \n \"/>\n<polyline clip-path=\"url(#clip1400)\" style=\"stroke:#000000; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n 251.272,806.667 282.795,806.667 \n \"/>\n<polyline clip-path=\"url(#clip1400)\" style=\"stroke:#000000; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n 251.272,584.468 282.795,584.468 \n \"/>\n<polyline clip-path=\"url(#clip1400)\" style=\"stroke:#000000; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n 251.272,362.268 282.795,362.268 \n \"/>\n<polyline clip-path=\"url(#clip1400)\" style=\"stroke:#000000; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n 251.272,140.068 282.795,140.068 \n \"/>\n<g clip-path=\"url(#clip1400)\">\n<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:middle;\" transform=\"rotate(0, 251.272, 1479.62)\" x=\"251.272\" y=\"1479.62\">0</text>\n</g>\n<g clip-path=\"url(#clip1400)\">\n<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:middle;\" transform=\"rotate(0, 671.569, 1479.62)\" x=\"671.569\" y=\"1479.62\">2</text>\n</g>\n<g clip-path=\"url(#clip1400)\">\n<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:middle;\" transform=\"rotate(0, 1091.87, 1479.62)\" x=\"1091.87\" y=\"1479.62\">4</text>\n</g>\n<g clip-path=\"url(#clip1400)\">\n<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:middle;\" transform=\"rotate(0, 1512.16, 1479.62)\" x=\"1512.16\" y=\"1479.62\">6</text>\n</g>\n<g clip-path=\"url(#clip1400)\">\n<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:middle;\" transform=\"rotate(0, 1932.46, 1479.62)\" x=\"1932.46\" y=\"1479.62\">8</text>\n</g>\n<g clip-path=\"url(#clip1400)\">\n<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:middle;\" transform=\"rotate(0, 2352.76, 1479.62)\" x=\"2352.76\" y=\"1479.62\">10</text>\n</g>\n<g clip-path=\"url(#clip1400)\">\n<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:start;\" transform=\"rotate(0, 97.131, 1274.79)\" x=\"97.131\" y=\"1274.79\">1×10</text>\n</g>\n<g clip-path=\"url(#clip1400)\">\n<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:38px; text-anchor:start;\" transform=\"rotate(0, 205.528, 1247.38)\" x=\"205.528\" y=\"1247.38\">7</text>\n</g>\n<g clip-path=\"url(#clip1400)\">\n<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:start;\" transform=\"rotate(0, 97.131, 1052.59)\" x=\"97.131\" y=\"1052.59\">2×10</text>\n</g>\n<g clip-path=\"url(#clip1400)\">\n<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:38px; text-anchor:start;\" transform=\"rotate(0, 205.528, 1025.18)\" x=\"205.528\" y=\"1025.18\">7</text>\n</g>\n<g clip-path=\"url(#clip1400)\">\n<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:start;\" transform=\"rotate(0, 97.131, 830.395)\" x=\"97.131\" y=\"830.395\">3×10</text>\n</g>\n<g clip-path=\"url(#clip1400)\">\n<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:38px; text-anchor:start;\" transform=\"rotate(0, 205.528, 802.984)\" x=\"205.528\" y=\"802.984\">7</text>\n</g>\n<g clip-path=\"url(#clip1400)\">\n<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:start;\" transform=\"rotate(0, 97.131, 608.195)\" x=\"97.131\" y=\"608.195\">4×10</text>\n</g>\n<g clip-path=\"url(#clip1400)\">\n<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:38px; text-anchor:start;\" transform=\"rotate(0, 205.528, 580.785)\" x=\"205.528\" y=\"580.785\">7</text>\n</g>\n<g clip-path=\"url(#clip1400)\">\n<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:start;\" transform=\"rotate(0, 97.131, 385.996)\" x=\"97.131\" y=\"385.996\">5×10</text>\n</g>\n<g clip-path=\"url(#clip1400)\">\n<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:38px; text-anchor:start;\" transform=\"rotate(0, 205.528, 358.585)\" x=\"205.528\" y=\"358.585\">7</text>\n</g>\n<g clip-path=\"url(#clip1400)\">\n<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:start;\" transform=\"rotate(0, 97.131, 163.796)\" x=\"97.131\" y=\"163.796\">6×10</text>\n</g>\n<g clip-path=\"url(#clip1400)\">\n<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:38px; text-anchor:start;\" transform=\"rotate(0, 205.528, 136.386)\" x=\"205.528\" y=\"136.386\">7</text>\n</g>\n<g clip-path=\"url(#clip1400)\">\n<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:66px; text-anchor:middle;\" transform=\"rotate(0, 1302.01, 1559.48)\" x=\"1302.01\" y=\"1559.48\">t</text>\n</g>\n<polyline clip-path=\"url(#clip1402)\" style=\"stroke:#009af9; stroke-width:12; stroke-opacity:1; fill:none\" points=\"\n 251.272,1386.61 253.376,1386.34 255.48,1386.07 257.583,1385.8 259.687,1385.54 261.79,1385.27 263.894,1384.99 265.998,1384.72 268.101,1384.45 270.205,1384.18 \n 272.308,1383.9 274.412,1383.63 276.516,1383.35 278.619,1383.08 280.723,1382.8 282.826,1382.52 284.93,1382.24 287.033,1381.96 289.137,1381.68 291.241,1381.4 \n 293.344,1381.11 295.448,1380.83 297.551,1380.55 299.655,1380.26 301.759,1379.98 303.862,1379.69 305.966,1379.4 308.069,1379.11 310.173,1378.82 312.276,1378.53 \n 314.38,1378.24 316.484,1377.95 318.587,1377.66 320.691,1377.36 322.794,1377.07 324.898,1376.77 327.002,1376.48 329.105,1376.18 331.209,1375.88 333.312,1375.58 \n 335.416,1375.28 337.52,1374.98 339.623,1374.68 341.727,1374.38 343.83,1374.07 345.934,1373.77 348.037,1373.46 350.141,1373.16 352.245,1372.85 354.348,1372.54 \n 356.452,1372.23 358.555,1371.92 360.659,1371.61 362.763,1371.3 364.866,1370.98 366.97,1370.67 369.073,1370.36 371.177,1370.04 373.281,1369.72 375.384,1369.41 \n 377.488,1369.09 379.591,1368.77 381.695,1368.45 383.798,1368.13 385.902,1367.8 388.006,1367.48 390.109,1367.16 392.213,1366.83 394.316,1366.5 396.42,1366.18 \n 398.524,1365.85 400.627,1365.52 402.731,1365.19 404.834,1364.86 406.938,1364.53 409.041,1364.19 411.145,1363.86 413.249,1363.52 415.352,1363.19 417.456,1362.85 \n 419.559,1362.51 421.663,1362.17 423.767,1361.83 425.87,1361.49 427.974,1361.15 430.077,1360.81 432.181,1360.46 434.285,1360.12 436.388,1359.77 438.492,1359.42 \n 440.595,1359.07 442.699,1358.73 444.802,1358.38 446.906,1358.02 449.01,1357.67 451.113,1357.32 453.217,1356.96 455.32,1356.61 457.424,1356.25 459.528,1355.89 \n 461.631,1355.53 463.735,1355.17 465.838,1354.81 467.942,1354.45 470.046,1354.09 472.149,1353.72 474.253,1353.36 476.356,1352.99 478.46,1352.62 480.563,1352.26 \n 482.667,1351.89 484.771,1351.51 486.874,1351.14 488.978,1350.77 491.081,1350.4 493.185,1350.02 495.289,1349.64 497.392,1349.27 499.496,1348.89 501.599,1348.51 \n 503.703,1348.13 505.806,1347.75 507.91,1347.36 510.014,1346.98 512.117,1346.59 514.221,1346.21 516.324,1345.82 518.428,1345.43 520.532,1345.04 522.635,1344.65 \n 524.739,1344.26 526.842,1343.86 528.946,1343.47 531.05,1343.07 533.153,1342.68 535.257,1342.28 537.36,1341.88 539.464,1341.48 541.567,1341.08 543.671,1340.68 \n 545.775,1340.27 547.878,1339.87 549.982,1339.46 552.085,1339.05 554.189,1338.64 556.293,1338.23 558.396,1337.82 560.5,1337.41 562.603,1337 564.707,1336.58 \n 566.811,1336.17 568.914,1335.75 571.018,1335.33 573.121,1334.91 575.225,1334.49 577.328,1334.07 579.432,1333.64 581.536,1333.22 583.639,1332.79 585.743,1332.37 \n 587.846,1331.94 589.95,1331.51 592.054,1331.08 594.157,1330.64 596.261,1330.21 598.364,1329.78 600.468,1329.34 602.571,1328.9 604.675,1328.46 606.779,1328.02 \n 608.882,1327.58 610.986,1327.14 613.089,1326.7 615.193,1326.25 617.297,1325.81 619.4,1325.36 621.504,1324.91 623.607,1324.46 625.711,1324.01 627.815,1323.55 \n 629.918,1323.1 632.022,1322.64 634.125,1322.19 636.229,1321.73 638.332,1321.27 640.436,1320.81 642.54,1320.35 644.643,1319.88 646.747,1319.42 648.85,1318.95 \n 650.954,1318.48 653.058,1318.01 655.161,1317.54 657.265,1317.07 659.368,1316.6 661.472,1316.12 663.576,1315.65 665.679,1315.17 667.783,1314.69 669.886,1314.21 \n 671.99,1313.73 674.093,1313.25 676.197,1312.76 678.301,1312.28 680.404,1311.79 682.508,1311.3 684.611,1310.81 686.715,1310.32 688.819,1309.83 690.922,1309.33 \n 693.026,1308.84 695.129,1308.34 697.233,1307.84 699.336,1307.34 701.44,1306.84 703.544,1306.34 705.647,1305.83 707.751,1305.33 709.854,1304.82 711.958,1304.31 \n 714.062,1303.8 716.165,1303.29 718.269,1302.78 720.372,1302.26 722.476,1301.74 724.58,1301.23 726.683,1300.71 728.787,1300.19 730.89,1299.66 732.994,1299.14 \n 735.097,1298.62 737.201,1298.09 739.305,1297.56 741.408,1297.03 743.512,1296.5 745.615,1295.97 747.719,1295.43 749.823,1294.9 751.926,1294.36 754.03,1293.82 \n 756.133,1293.28 758.237,1292.74 760.341,1292.19 762.444,1291.65 764.548,1291.1 766.651,1290.55 768.755,1290 770.858,1289.45 772.962,1288.9 775.066,1288.34 \n 777.169,1287.79 779.273,1287.23 781.376,1286.67 783.48,1286.11 785.584,1285.54 787.687,1284.98 789.791,1284.41 791.894,1283.85 793.998,1283.28 796.102,1282.7 \n 798.205,1282.13 800.309,1281.56 802.412,1280.98 804.516,1280.4 806.619,1279.83 808.723,1279.24 810.827,1278.66 812.93,1278.08 815.034,1277.49 817.137,1276.9 \n 819.241,1276.32 821.345,1275.72 823.448,1275.13 825.552,1274.54 827.655,1273.94 829.759,1273.34 831.862,1272.74 833.966,1272.14 836.07,1271.54 838.173,1270.94 \n 840.277,1270.33 842.38,1269.72 844.484,1269.11 846.588,1268.5 848.691,1267.89 850.795,1267.27 852.898,1266.66 855.002,1266.04 857.106,1265.42 859.209,1264.8 \n 861.313,1264.17 863.416,1263.55 865.52,1262.92 867.623,1262.29 869.727,1261.66 871.831,1261.03 873.934,1260.39 876.038,1259.76 878.141,1259.12 880.245,1258.48 \n 882.349,1257.84 884.452,1257.19 886.556,1256.55 888.659,1255.9 890.763,1255.25 892.867,1254.6 894.97,1253.95 897.074,1253.29 899.177,1252.64 901.281,1251.98 \n 903.384,1251.32 905.488,1250.66 907.592,1249.99 909.695,1249.33 911.799,1248.66 913.902,1247.99 916.006,1247.32 918.11,1246.65 920.213,1245.97 922.317,1245.29 \n 924.42,1244.61 926.524,1243.93 928.627,1243.25 930.731,1242.57 932.835,1241.88 934.938,1241.19 937.042,1240.5 939.145,1239.81 941.249,1239.11 943.353,1238.42 \n 945.456,1237.72 947.56,1237.02 949.663,1236.32 951.767,1235.61 953.871,1234.91 955.974,1234.2 958.078,1233.49 960.181,1232.78 962.285,1232.06 964.388,1231.35 \n 966.492,1230.63 968.596,1229.91 970.699,1229.19 972.803,1228.46 974.906,1227.74 977.01,1227.01 979.114,1226.28 981.217,1225.55 983.321,1224.81 985.424,1224.08 \n 987.528,1223.34 989.632,1222.6 991.735,1221.86 993.839,1221.11 995.942,1220.37 998.046,1219.62 1000.15,1218.87 1002.25,1218.11 1004.36,1217.36 1006.46,1216.6 \n 1008.56,1215.84 1010.67,1215.08 1012.77,1214.32 1014.87,1213.55 1016.98,1212.79 1019.08,1212.02 1021.19,1211.24 1023.29,1210.47 1025.39,1209.69 1027.5,1208.92 \n 1029.6,1208.14 1031.7,1207.35 1033.81,1206.57 1035.91,1205.78 1038.01,1204.99 1040.12,1204.2 1042.22,1203.41 1044.32,1202.61 1046.43,1201.82 1048.53,1201.02 \n 1050.64,1200.21 1052.74,1199.41 1054.84,1198.6 1056.95,1197.79 1059.05,1196.98 1061.15,1196.17 1063.26,1195.35 1065.36,1194.54 1067.46,1193.72 1069.57,1192.89 \n 1071.67,1192.07 1073.77,1191.24 1075.88,1190.41 1077.98,1189.58 1080.09,1188.75 1082.19,1187.91 1084.29,1187.08 1086.4,1186.24 1088.5,1185.39 1090.6,1184.55 \n 1092.71,1183.7 1094.81,1182.85 1096.91,1182 1099.02,1181.15 1101.12,1180.29 1103.23,1179.43 1105.33,1178.57 1107.43,1177.71 1109.54,1176.84 1111.64,1175.97 \n 1113.74,1175.1 1115.85,1174.23 1117.95,1173.35 1120.05,1172.48 1122.16,1171.6 1124.26,1170.71 1126.36,1169.83 1128.47,1168.94 1130.57,1168.05 1132.68,1167.16 \n 1134.78,1166.27 1136.88,1165.37 1138.99,1164.47 1141.09,1163.57 1143.19,1162.66 1145.3,1161.76 1147.4,1160.85 1149.5,1159.94 1151.61,1159.02 1153.71,1158.11 \n 1155.81,1157.19 1157.92,1156.27 1160.02,1155.34 1162.13,1154.42 1164.23,1153.49 1166.33,1152.56 1168.44,1151.62 1170.54,1150.69 1172.64,1149.75 1174.75,1148.81 \n 1176.85,1147.87 1178.95,1146.92 1181.06,1145.97 1183.16,1145.02 1185.27,1144.07 1187.37,1143.11 1189.47,1142.15 1191.58,1141.19 1193.68,1140.22 1195.78,1139.26 \n 1197.89,1138.29 1199.99,1137.32 1202.09,1136.34 1204.2,1135.37 1206.3,1134.39 1208.4,1133.4 1210.51,1132.42 1212.61,1131.43 1214.72,1130.44 1216.82,1129.45 \n 1218.92,1128.45 1221.03,1127.46 1223.13,1126.46 1225.23,1125.45 1227.34,1124.45 1229.44,1123.44 1231.54,1122.43 1233.65,1121.41 1235.75,1120.4 1237.85,1119.38 \n 1239.96,1118.36 1242.06,1117.33 1244.17,1116.31 1246.27,1115.28 1248.37,1114.24 1250.48,1113.21 1252.58,1112.17 1254.68,1111.13 1256.79,1110.09 1258.89,1109.04 \n 1260.99,1107.99 1263.1,1106.94 1265.2,1105.89 1267.3,1104.83 1269.41,1103.77 1271.51,1102.71 1273.62,1101.64 1275.72,1100.57 1277.82,1099.5 1279.93,1098.43 \n 1282.03,1097.35 1284.13,1096.27 1286.24,1095.19 1288.34,1094.1 1290.44,1093.02 1292.55,1091.92 1294.65,1090.83 1296.76,1089.74 1298.86,1088.64 1300.96,1087.53 \n 1303.07,1086.43 1305.17,1085.32 1307.27,1084.21 1309.38,1083.1 1311.48,1081.98 1313.58,1080.86 1315.69,1079.74 1317.79,1078.61 1319.89,1077.49 1322,1076.36 \n 1324.1,1075.22 1326.21,1074.09 1328.31,1072.95 1330.41,1071.8 1332.52,1070.66 1334.62,1069.51 1336.72,1068.36 1338.83,1067.2 1340.93,1066.05 1343.03,1064.89 \n 1345.14,1063.72 1347.24,1062.56 1349.34,1061.39 1351.45,1060.22 1353.55,1059.04 1355.66,1057.86 1357.76,1056.68 1359.86,1055.5 1361.97,1054.31 1364.07,1053.12 \n 1366.17,1051.93 1368.28,1050.73 1370.38,1049.53 1372.48,1048.33 1374.59,1047.12 1376.69,1045.92 1378.8,1044.71 1380.9,1043.49 1383,1042.27 1385.11,1041.05 \n 1387.21,1039.83 1389.31,1038.6 1391.42,1037.37 1393.52,1036.14 1395.62,1034.9 1397.73,1033.66 1399.83,1032.42 1401.93,1031.18 1404.04,1029.93 1406.14,1028.68 \n 1408.25,1027.42 1410.35,1026.16 1412.45,1024.9 1414.56,1023.64 1416.66,1022.37 1418.76,1021.1 1420.87,1019.83 1422.97,1018.55 1425.07,1017.27 1427.18,1015.99 \n 1429.28,1014.7 1431.38,1013.41 1433.49,1012.12 1435.59,1010.82 1437.7,1009.53 1439.8,1008.22 1441.9,1006.92 1444.01,1005.61 1446.11,1004.3 1448.21,1002.98 \n 1450.32,1001.66 1452.42,1000.34 1454.52,999.016 1456.63,997.688 1458.73,996.356 1460.84,995.022 1462.94,993.684 1465.04,992.342 1467.15,990.998 1469.25,989.65 \n 1471.35,988.299 1473.46,986.944 1475.56,985.586 1477.66,984.225 1479.77,982.861 1481.87,981.493 1483.97,980.122 1486.08,978.747 1488.18,977.37 1490.29,975.989 \n 1492.39,974.604 1494.49,973.216 1496.6,971.825 1498.7,970.431 1500.8,969.033 1502.91,967.631 1505.01,966.227 1507.11,964.819 1509.22,963.407 1511.32,961.992 \n 1513.42,960.574 1515.53,959.152 1517.63,957.727 1519.74,956.299 1521.84,954.867 1523.94,953.431 1526.05,951.992 1528.15,950.55 1530.25,949.104 1532.36,947.655 \n 1534.46,946.203 1536.56,944.747 1538.67,943.287 1540.77,941.824 1542.87,940.357 1544.98,938.887 1547.08,937.414 1549.19,935.937 1551.29,934.456 1553.39,932.972 \n 1555.5,931.485 1557.6,929.994 1559.7,928.5 1561.81,927.002 1563.91,925.5 1566.01,923.995 1568.12,922.486 1570.22,920.974 1572.33,919.459 1574.43,917.939 \n 1576.53,916.417 1578.64,914.89 1580.74,913.36 1582.84,911.827 1584.95,910.29 1587.05,908.749 1589.15,907.205 1591.26,905.657 1593.36,904.105 1595.46,902.55 \n 1597.57,900.992 1599.67,899.429 1601.78,897.864 1603.88,896.294 1605.98,894.721 1608.09,893.144 1610.19,891.564 1612.29,889.98 1614.4,888.392 1616.5,886.8 \n 1618.6,885.205 1620.71,883.607 1622.81,882.004 1624.91,880.398 1627.02,878.788 1629.12,877.175 1631.23,875.558 1633.33,873.937 1635.43,872.312 1637.54,870.684 \n 1639.64,869.052 1641.74,867.417 1643.85,865.777 1645.95,864.134 1648.05,862.487 1650.16,860.837 1652.26,859.182 1654.37,857.524 1656.47,855.862 1658.57,854.197 \n 1660.68,852.528 1662.78,850.855 1664.88,849.178 1666.99,847.497 1669.09,845.813 1671.19,844.125 1673.3,842.433 1675.4,840.737 1677.5,839.037 1679.61,837.334 \n 1681.71,835.627 1683.82,833.916 1685.92,832.201 1688.02,830.483 1690.13,828.76 1692.23,827.034 1694.33,825.304 1696.44,823.57 1698.54,821.833 1700.64,820.091 \n 1702.75,818.346 1704.85,816.597 1706.95,814.844 1709.06,813.087 1711.16,811.326 1713.27,809.561 1715.37,807.793 1717.47,806.021 1719.58,804.244 1721.68,802.464 \n 1723.78,800.68 1725.89,798.892 1727.99,797.101 1730.09,795.305 1732.2,793.505 1734.3,791.702 1736.4,789.895 1738.51,788.083 1740.61,786.268 1742.72,784.449 \n 1744.82,782.626 1746.92,780.799 1749.03,778.969 1751.13,777.134 1753.23,775.295 1755.34,773.453 1757.44,771.606 1759.54,769.756 1761.65,767.901 1763.75,766.043 \n 1765.86,764.18 1767.96,762.314 1770.06,760.444 1772.17,758.57 1774.27,756.692 1776.37,754.809 1778.48,752.923 1780.58,751.033 1782.68,749.139 1784.79,747.241 \n 1786.89,745.339 1788.99,743.433 1791.1,741.523 1793.2,739.609 1795.31,737.691 1797.41,735.769 1799.51,733.844 1801.62,731.914 1803.72,729.98 1805.82,728.042 \n 1807.93,726.1 1810.03,724.154 1812.13,722.204 1814.24,720.25 1816.34,718.292 1818.44,716.33 1820.55,714.363 1822.65,712.393 1824.76,710.419 1826.86,708.441 \n 1828.96,706.459 1831.07,704.473 1833.17,702.482 1835.27,700.488 1837.38,698.489 1839.48,696.487 1841.58,694.481 1843.69,692.47 1845.79,690.455 1847.9,688.437 \n 1850,686.414 1852.1,684.387 1854.21,682.356 1856.31,680.321 1858.41,678.282 1860.52,676.239 1862.62,674.192 1864.72,672.141 1866.83,670.086 1868.93,668.026 \n 1871.03,665.963 1873.14,663.895 1875.24,661.824 1877.35,659.748 1879.45,657.668 1881.55,655.584 1883.66,653.496 1885.76,651.404 1887.86,649.308 1889.97,647.208 \n 1892.07,645.103 1894.17,642.995 1896.28,640.882 1898.38,638.765 1900.48,636.644 1902.59,634.519 1904.69,632.39 1906.8,630.257 1908.9,628.12 1911,625.979 \n 1913.11,623.833 1915.21,621.683 1917.31,619.53 1919.42,617.372 1921.52,615.21 1923.62,613.044 1925.73,610.873 1927.83,608.699 1929.93,606.52 1932.04,604.338 \n 1934.14,602.151 1936.25,599.96 1938.35,597.765 1940.45,595.566 1942.56,593.362 1944.66,591.155 1946.76,588.943 1948.87,586.727 1950.97,584.507 1953.07,582.283 \n 1955.18,580.055 1957.28,577.823 1959.39,575.586 1961.49,573.346 1963.59,571.101 1965.7,568.852 1967.8,566.599 1969.9,564.341 1972.01,562.08 1974.11,559.814 \n 1976.21,557.545 1978.32,555.271 1980.42,552.993 1982.52,550.711 1984.63,548.425 1986.73,546.134 1988.84,543.84 1990.94,541.541 1993.04,539.238 1995.15,536.931 \n 1997.25,534.62 1999.35,532.305 2001.46,529.985 2003.56,527.662 2005.66,525.334 2007.77,523.002 2009.87,520.666 2011.97,518.326 2014.08,515.982 2016.18,513.633 \n 2018.29,511.281 2020.39,508.924 2022.49,506.563 2024.6,504.198 2026.7,501.829 2028.8,499.456 2030.91,497.079 2033.01,494.697 2035.11,492.311 2037.22,489.922 \n 2039.32,487.528 2041.43,485.13 2043.53,482.727 2045.63,480.321 2047.74,477.911 2049.84,475.496 2051.94,473.077 2054.05,470.654 2056.15,468.227 2058.25,465.796 \n 2060.36,463.361 2062.46,460.922 2064.56,458.478 2066.67,456.031 2068.77,453.579 2070.88,451.123 2072.98,448.663 2075.08,446.199 2077.19,443.731 2079.29,441.259 \n 2081.39,438.783 2083.5,436.302 2085.6,433.818 2087.7,431.329 2089.81,428.836 2091.91,426.34 2094.01,423.839 2096.12,421.334 2098.22,418.825 2100.33,416.311 \n 2102.43,413.794 2104.53,411.273 2106.64,408.747 2108.74,406.218 2110.84,403.684 2112.95,401.147 2115.05,398.605 2117.15,396.059 2119.26,393.509 2121.36,390.956 \n 2123.46,388.398 2125.57,385.836 2127.67,383.27 2129.78,380.7 2131.88,378.126 2133.98,375.547 2136.09,372.965 2138.19,370.379 2140.29,367.789 2142.4,365.195 \n 2144.5,362.596 2146.6,359.994 2148.71,357.388 2150.81,354.777 2152.92,352.163 2155.02,349.545 2157.12,346.922 2159.23,344.296 2161.33,341.666 2163.43,339.031 \n 2165.54,336.393 2167.64,333.751 2169.74,331.105 2171.85,328.454 2173.95,325.8 2176.05,323.142 2178.16,320.48 2180.26,317.814 2182.37,315.144 2184.47,312.47 \n 2186.57,309.792 2188.68,307.11 2190.78,304.424 2192.88,301.735 2194.99,299.041 2197.09,296.344 2199.19,293.642 2201.3,290.937 2203.4,288.227 2205.5,285.514 \n 2207.61,282.797 2209.71,280.076 2211.82,277.351 2213.92,274.623 2216.02,271.89 2218.13,269.154 2220.23,266.413 2222.33,263.669 2224.44,260.921 2226.54,258.169 \n 2228.64,255.414 2230.75,252.654 2232.85,249.891 2234.96,247.124 2237.06,244.353 2239.16,241.578 2241.27,238.799 2243.37,236.017 2245.47,233.231 2247.58,230.441 \n 2249.68,227.647 2251.78,224.849 2253.89,222.048 2255.99,219.243 2258.09,216.434 2260.2,213.621 2262.3,210.805 2264.41,207.985 2266.51,205.161 2268.61,202.333 \n 2270.72,199.502 2272.82,196.667 2274.92,193.828 2277.03,190.986 2279.13,188.14 2281.23,185.29 2283.34,182.437 2285.44,179.579 2287.54,176.719 2289.65,173.854 \n 2291.75,170.986 2293.86,168.114 2295.96,165.239 2298.06,162.36 2300.17,159.477 2302.27,156.591 2304.37,153.701 2306.48,150.807 2308.58,147.91 2310.68,145.01 \n 2312.79,142.105 2314.89,139.198 2316.99,136.286 2319.1,133.371 2321.2,130.453 2323.31,127.531 2325.41,124.605 2327.51,121.676 2329.62,118.743 2331.72,115.807 \n 2333.82,112.868 2335.93,109.925 2338.03,106.978 2340.13,104.028 2342.24,101.074 2344.34,98.1172 2346.45,95.1568 2348.55,92.1928 2350.65,89.2255 2352.76,86.2547 \n \n \"/>\n<polygon clip-path=\"url(#clip1400)\" points=\"\n323.272,251.724 662.235,251.724 662.235,130.764 323.272,130.764 \n \" fill=\"#ffffff\" fill-rule=\"evenodd\" fill-opacity=\"1\"/>\n<polyline clip-path=\"url(#clip1400)\" style=\"stroke:#000000; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n 323.272,251.724 662.235,251.724 662.235,130.764 323.272,130.764 323.272,251.724 \n \"/>\n<polyline clip-path=\"url(#clip1400)\" style=\"stroke:#009af9; stroke-width:12; stroke-opacity:1; fill:none\" points=\"\n 347.272,191.244 491.272,191.244 \n \"/>\n<g clip-path=\"url(#clip1400)\">\n<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:start;\" transform=\"rotate(0, 515.272, 208.744)\" x=\"515.272\" y=\"208.744\">u1(t)</text>\n</g>\n</svg>\n"
},
"metadata": {}
}
]
},
{
"metadata": {
"trusted": true
},
"cell_type": "code",
"source": "",
"execution_count": null,
"outputs": []
}
],
"metadata": {
"kernelspec": {
"name": "julia-1.2",
"display_name": "Julia 1.2.0",
"language": "julia"
},
"toc": {
"nav_menu": {},
"number_sections": true,
"sideBar": true,
"skip_h1_title": false,
"base_numbering": 1,
"title_cell": "Table of Contents",
"title_sidebar": "Contents",
"toc_cell": false,
"toc_position": {},
"toc_section_display": true,
"toc_window_display": false
},
"language_info": {
"file_extension": ".jl",
"name": "julia",
"mimetype": "application/julia",
"version": "1.2.0"
},
"@webio": {
"lastKernelId": null,
"lastCommId": null
},
"gist": {
"id": "",
"data": {
"description": "DifferentialEquations.jl minimal example",
"public": true
}
}
},
"nbformat": 4,
"nbformat_minor": 2
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment