Skip to content

Instantly share code, notes, and snippets.

@phasetr
Created August 26, 2021 13:20
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 phasetr/0a32f2eee8afa8f76a8eac65e70563d6 to your computer and use it in GitHub Desktop.
Save phasetr/0a32f2eee8afa8f76a8eac65e70563d6 to your computer and use it in GitHub Desktop.
Display the source blob
Display the rendered blob
Raw
{
"metadata": {
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "julia",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": 3
},
"orig_nbformat": 4,
"kernelspec": {
"name": "julia-1.6",
"display_name": "Julia 1.6.1",
"language": "julia"
}
},
"nbformat": 4,
"nbformat_minor": 2,
"cells": [
{
"cell_type": "code",
"execution_count": 6,
"metadata": {},
"outputs": [
{
"output_type": "execute_result",
"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=\"clip210\">\n <rect x=\"0\" y=\"0\" width=\"2400\" height=\"1600\"/>\n </clipPath>\n</defs>\n<path clip-path=\"url(#clip210)\" d=\"\nM0 1600 L2400 1600 L2400 0 L0 0 Z\n \" fill=\"#ffffff\" fill-rule=\"evenodd\" fill-opacity=\"1\"/>\n<defs>\n <clipPath id=\"clip211\">\n <rect x=\"480\" y=\"0\" width=\"1681\" height=\"1600\"/>\n </clipPath>\n</defs>\n<path clip-path=\"url(#clip210)\" d=\"\nM186.274 1486.45 L2352.76 1486.45 L2352.76 47.2441 L186.274 47.2441 Z\n \" fill=\"#ffffff\" fill-rule=\"evenodd\" fill-opacity=\"1\"/>\n<defs>\n <clipPath id=\"clip212\">\n <rect x=\"186\" y=\"47\" width=\"2167\" height=\"1440\"/>\n </clipPath>\n</defs>\n<polyline clip-path=\"url(#clip212)\" style=\"stroke:#000000; stroke-linecap:butt; stroke-linejoin:round; stroke-width:2; stroke-opacity:0.1; fill:none\" points=\"\n 247.59,1486.45 247.59,47.2441 \n \"/>\n<polyline clip-path=\"url(#clip212)\" style=\"stroke:#000000; stroke-linecap:butt; stroke-linejoin:round; stroke-width:2; stroke-opacity:0.1; fill:none\" points=\"\n 928.873,1486.45 928.873,47.2441 \n \"/>\n<polyline clip-path=\"url(#clip212)\" style=\"stroke:#000000; stroke-linecap:butt; stroke-linejoin:round; stroke-width:2; stroke-opacity:0.1; fill:none\" points=\"\n 1610.16,1486.45 1610.16,47.2441 \n \"/>\n<polyline clip-path=\"url(#clip212)\" style=\"stroke:#000000; stroke-linecap:butt; stroke-linejoin:round; stroke-width:2; stroke-opacity:0.1; fill:none\" points=\"\n 2291.44,1486.45 2291.44,47.2441 \n \"/>\n<polyline clip-path=\"url(#clip210)\" style=\"stroke:#000000; stroke-linecap:butt; stroke-linejoin:round; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n 186.274,1486.45 2352.76,1486.45 \n \"/>\n<polyline clip-path=\"url(#clip210)\" style=\"stroke:#000000; stroke-linecap:butt; stroke-linejoin:round; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n 247.59,1486.45 247.59,1469.18 \n \"/>\n<polyline clip-path=\"url(#clip210)\" style=\"stroke:#000000; stroke-linecap:butt; stroke-linejoin:round; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n 928.873,1486.45 928.873,1469.18 \n \"/>\n<polyline clip-path=\"url(#clip210)\" style=\"stroke:#000000; stroke-linecap:butt; stroke-linejoin:round; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n 1610.16,1486.45 1610.16,1469.18 \n \"/>\n<polyline clip-path=\"url(#clip210)\" style=\"stroke:#000000; stroke-linecap:butt; stroke-linejoin:round; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n 2291.44,1486.45 2291.44,1469.18 \n \"/>\n<path clip-path=\"url(#clip210)\" d=\"M217.347 1530.29 L247.022 1530.29 L247.022 1534.23 L217.347 1534.23 L217.347 1530.29 Z\" fill=\"#000000\" fill-rule=\"evenodd\" fill-opacity=\"1\" /><path clip-path=\"url(#clip210)\" d=\"M257.925 1543.18 L265.564 1543.18 L265.564 1516.82 L257.254 1518.49 L257.254 1514.23 L265.518 1512.56 L270.194 1512.56 L270.194 1543.18 L277.832 1543.18 L277.832 1547.12 L257.925 1547.12 L257.925 1543.18 Z\" fill=\"#000000\" fill-rule=\"evenodd\" fill-opacity=\"1\" /><path clip-path=\"url(#clip210)\" d=\"M928.873 1515.64 Q925.262 1515.64 923.433 1519.2 Q921.628 1522.75 921.628 1529.87 Q921.628 1536.98 923.433 1540.55 Q925.262 1544.09 928.873 1544.09 Q932.507 1544.09 934.313 1540.55 Q936.142 1536.98 936.142 1529.87 Q936.142 1522.75 934.313 1519.2 Q932.507 1515.64 928.873 1515.64 M928.873 1511.93 Q934.683 1511.93 937.739 1516.54 Q940.818 1521.12 940.818 1529.87 Q940.818 1538.6 937.739 1543.21 Q934.683 1547.79 928.873 1547.79 Q923.063 1547.79 919.984 1543.21 Q916.929 1538.6 916.929 1529.87 Q916.929 1521.12 919.984 1516.54 Q923.063 1511.93 928.873 1511.93 Z\" fill=\"#000000\" fill-rule=\"evenodd\" fill-opacity=\"1\" /><path clip-path=\"url(#clip210)\" d=\"M1600.54 1543.18 L1608.18 1543.18 L1608.18 1516.82 L1599.87 1518.49 L1599.87 1514.23 L1608.13 1512.56 L1612.81 1512.56 L1612.81 1543.18 L1620.45 1543.18 L1620.45 1547.12 L1600.54 1547.12 L1600.54 1543.18 Z\" fill=\"#000000\" fill-rule=\"evenodd\" fill-opacity=\"1\" /><path clip-path=\"url(#clip210)\" d=\"M2286.09 1543.18 L2302.41 1543.18 L2302.41 1547.12 L2280.47 1547.12 L2280.47 1543.18 Q2283.13 1540.43 2287.71 1535.8 Q2292.32 1531.15 2293.5 1529.81 Q2295.75 1527.28 2296.63 1525.55 Q2297.53 1523.79 2297.53 1522.1 Q2297.53 1519.34 2295.58 1517.61 Q2293.66 1515.87 2290.56 1515.87 Q2288.36 1515.87 2285.91 1516.63 Q2283.48 1517.4 2280.7 1518.95 L2280.7 1514.23 Q2283.52 1513.09 2285.98 1512.51 Q2288.43 1511.93 2290.47 1511.93 Q2295.84 1511.93 2299.03 1514.62 Q2302.23 1517.31 2302.23 1521.8 Q2302.23 1523.93 2301.42 1525.85 Q2300.63 1527.74 2298.52 1530.34 Q2297.94 1531.01 2294.84 1534.23 Q2291.74 1537.42 2286.09 1543.18 Z\" fill=\"#000000\" fill-rule=\"evenodd\" fill-opacity=\"1\" /><polyline clip-path=\"url(#clip212)\" style=\"stroke:#000000; stroke-linecap:butt; stroke-linejoin:round; stroke-width:2; stroke-opacity:0.1; fill:none\" points=\"\n 186.274,1445.72 2352.76,1445.72 \n \"/>\n<polyline clip-path=\"url(#clip212)\" style=\"stroke:#000000; stroke-linecap:butt; stroke-linejoin:round; stroke-width:2; stroke-opacity:0.1; fill:none\" points=\"\n 186.274,1106.28 2352.76,1106.28 \n \"/>\n<polyline clip-path=\"url(#clip212)\" style=\"stroke:#000000; stroke-linecap:butt; stroke-linejoin:round; stroke-width:2; stroke-opacity:0.1; fill:none\" points=\"\n 186.274,766.846 2352.76,766.846 \n \"/>\n<polyline clip-path=\"url(#clip212)\" style=\"stroke:#000000; stroke-linecap:butt; stroke-linejoin:round; stroke-width:2; stroke-opacity:0.1; fill:none\" points=\"\n 186.274,427.411 2352.76,427.411 \n \"/>\n<polyline clip-path=\"url(#clip212)\" style=\"stroke:#000000; stroke-linecap:butt; stroke-linejoin:round; stroke-width:2; stroke-opacity:0.1; fill:none\" points=\"\n 186.274,87.9763 2352.76,87.9763 \n \"/>\n<polyline clip-path=\"url(#clip210)\" style=\"stroke:#000000; stroke-linecap:butt; stroke-linejoin:round; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n 186.274,1486.45 186.274,47.2441 \n \"/>\n<polyline clip-path=\"url(#clip210)\" style=\"stroke:#000000; stroke-linecap:butt; stroke-linejoin:round; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n 186.274,1445.72 212.272,1445.72 \n \"/>\n<polyline clip-path=\"url(#clip210)\" style=\"stroke:#000000; stroke-linecap:butt; stroke-linejoin:round; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n 186.274,1106.28 212.272,1106.28 \n \"/>\n<polyline clip-path=\"url(#clip210)\" style=\"stroke:#000000; stroke-linecap:butt; stroke-linejoin:round; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n 186.274,766.846 212.272,766.846 \n \"/>\n<polyline clip-path=\"url(#clip210)\" style=\"stroke:#000000; stroke-linecap:butt; stroke-linejoin:round; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n 186.274,427.411 212.272,427.411 \n \"/>\n<polyline clip-path=\"url(#clip210)\" style=\"stroke:#000000; stroke-linecap:butt; stroke-linejoin:round; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n 186.274,87.9763 212.272,87.9763 \n \"/>\n<path clip-path=\"url(#clip210)\" d=\"M62.9365 1431.51 Q59.3254 1431.51 57.4967 1435.08 Q55.6912 1438.62 55.6912 1445.75 Q55.6912 1452.86 57.4967 1456.42 Q59.3254 1459.96 62.9365 1459.96 Q66.5707 1459.96 68.3763 1456.42 Q70.205 1452.86 70.205 1445.75 Q70.205 1438.62 68.3763 1435.08 Q66.5707 1431.51 62.9365 1431.51 M62.9365 1427.81 Q68.7467 1427.81 71.8022 1432.42 Q74.8809 1437 74.8809 1445.75 Q74.8809 1454.48 71.8022 1459.08 Q68.7467 1463.67 62.9365 1463.67 Q57.1264 1463.67 54.0477 1459.08 Q50.9921 1454.48 50.9921 1445.75 Q50.9921 1437 54.0477 1432.42 Q57.1264 1427.81 62.9365 1427.81 Z\" fill=\"#000000\" fill-rule=\"evenodd\" fill-opacity=\"1\" /><path clip-path=\"url(#clip210)\" d=\"M83.0984 1457.12 L87.9827 1457.12 L87.9827 1463 L83.0984 1463 L83.0984 1457.12 Z\" fill=\"#000000\" fill-rule=\"evenodd\" fill-opacity=\"1\" /><path clip-path=\"url(#clip210)\" d=\"M108.168 1431.51 Q104.557 1431.51 102.728 1435.08 Q100.922 1438.62 100.922 1445.75 Q100.922 1452.86 102.728 1456.42 Q104.557 1459.96 108.168 1459.96 Q111.802 1459.96 113.608 1456.42 Q115.436 1452.86 115.436 1445.75 Q115.436 1438.62 113.608 1435.08 Q111.802 1431.51 108.168 1431.51 M108.168 1427.81 Q113.978 1427.81 117.033 1432.42 Q120.112 1437 120.112 1445.75 Q120.112 1454.48 117.033 1459.08 Q113.978 1463.67 108.168 1463.67 Q102.358 1463.67 99.2789 1459.08 Q96.2234 1454.48 96.2234 1445.75 Q96.2234 1437 99.2789 1432.42 Q102.358 1427.81 108.168 1427.81 Z\" fill=\"#000000\" fill-rule=\"evenodd\" fill-opacity=\"1\" /><path clip-path=\"url(#clip210)\" d=\"M138.33 1431.51 Q134.719 1431.51 132.89 1435.08 Q131.084 1438.62 131.084 1445.75 Q131.084 1452.86 132.89 1456.42 Q134.719 1459.96 138.33 1459.96 Q141.964 1459.96 143.769 1456.42 Q145.598 1452.86 145.598 1445.75 Q145.598 1438.62 143.769 1435.08 Q141.964 1431.51 138.33 1431.51 M138.33 1427.81 Q144.14 1427.81 147.195 1432.42 Q150.274 1437 150.274 1445.75 Q150.274 1454.48 147.195 1459.08 Q144.14 1463.67 138.33 1463.67 Q132.519 1463.67 129.441 1459.08 Q126.385 1454.48 126.385 1445.75 Q126.385 1437 129.441 1432.42 Q132.519 1427.81 138.33 1427.81 Z\" fill=\"#000000\" fill-rule=\"evenodd\" fill-opacity=\"1\" /><path clip-path=\"url(#clip210)\" d=\"M63.9319 1092.08 Q60.3208 1092.08 58.4921 1095.64 Q56.6865 1099.19 56.6865 1106.32 Q56.6865 1113.42 58.4921 1116.99 Q60.3208 1120.53 63.9319 1120.53 Q67.5661 1120.53 69.3717 1116.99 Q71.2004 1113.42 71.2004 1106.32 Q71.2004 1099.19 69.3717 1095.64 Q67.5661 1092.08 63.9319 1092.08 M63.9319 1088.38 Q69.742 1088.38 72.7976 1092.98 Q75.8763 1097.57 75.8763 1106.32 Q75.8763 1115.04 72.7976 1119.65 Q69.742 1124.23 63.9319 1124.23 Q58.1217 1124.23 55.043 1119.65 Q51.9875 1115.04 51.9875 1106.32 Q51.9875 1097.57 55.043 1092.98 Q58.1217 1088.38 63.9319 1088.38 Z\" fill=\"#000000\" fill-rule=\"evenodd\" fill-opacity=\"1\" /><path clip-path=\"url(#clip210)\" d=\"M84.0938 1117.68 L88.978 1117.68 L88.978 1123.56 L84.0938 1123.56 L84.0938 1117.68 Z\" fill=\"#000000\" fill-rule=\"evenodd\" fill-opacity=\"1\" /><path clip-path=\"url(#clip210)\" d=\"M103.191 1119.63 L119.51 1119.63 L119.51 1123.56 L97.566 1123.56 L97.566 1119.63 Q100.228 1116.87 104.811 1112.24 Q109.418 1107.59 110.598 1106.25 Q112.844 1103.72 113.723 1101.99 Q114.626 1100.23 114.626 1098.54 Q114.626 1095.78 112.682 1094.05 Q110.76 1092.31 107.658 1092.31 Q105.459 1092.31 103.006 1093.07 Q100.575 1093.84 97.7974 1095.39 L97.7974 1090.67 Q100.621 1089.53 103.075 1088.95 Q105.529 1088.38 107.566 1088.38 Q112.936 1088.38 116.131 1091.06 Q119.325 1093.75 119.325 1098.24 Q119.325 1100.37 118.515 1102.29 Q117.728 1104.19 115.621 1106.78 Q115.043 1107.45 111.941 1110.67 Q108.839 1113.86 103.191 1119.63 Z\" fill=\"#000000\" fill-rule=\"evenodd\" fill-opacity=\"1\" /><path clip-path=\"url(#clip210)\" d=\"M129.371 1089 L147.728 1089 L147.728 1092.94 L133.654 1092.94 L133.654 1101.41 Q134.672 1101.06 135.691 1100.9 Q136.709 1100.71 137.728 1100.71 Q143.515 1100.71 146.894 1103.89 Q150.274 1107.06 150.274 1112.47 Q150.274 1118.05 146.802 1121.15 Q143.33 1124.23 137.01 1124.23 Q134.834 1124.23 132.566 1123.86 Q130.32 1123.49 127.913 1122.75 L127.913 1118.05 Q129.996 1119.19 132.219 1119.74 Q134.441 1120.3 136.918 1120.3 Q140.922 1120.3 143.26 1118.19 Q145.598 1116.08 145.598 1112.47 Q145.598 1108.86 143.26 1106.76 Q140.922 1104.65 136.918 1104.65 Q135.043 1104.65 133.168 1105.07 Q131.316 1105.48 129.371 1106.36 L129.371 1089 Z\" fill=\"#000000\" fill-rule=\"evenodd\" fill-opacity=\"1\" /><path clip-path=\"url(#clip210)\" d=\"M62.9365 752.645 Q59.3254 752.645 57.4967 756.209 Q55.6912 759.751 55.6912 766.881 Q55.6912 773.987 57.4967 777.552 Q59.3254 781.094 62.9365 781.094 Q66.5707 781.094 68.3763 777.552 Q70.205 773.987 70.205 766.881 Q70.205 759.751 68.3763 756.209 Q66.5707 752.645 62.9365 752.645 M62.9365 748.941 Q68.7467 748.941 71.8022 753.547 Q74.8809 758.131 74.8809 766.881 Q74.8809 775.608 71.8022 780.214 Q68.7467 784.797 62.9365 784.797 Q57.1264 784.797 54.0477 780.214 Q50.9921 775.608 50.9921 766.881 Q50.9921 758.131 54.0477 753.547 Q57.1264 748.941 62.9365 748.941 Z\" fill=\"#000000\" fill-rule=\"evenodd\" fill-opacity=\"1\" /><path clip-path=\"url(#clip210)\" d=\"M83.0984 778.246 L87.9827 778.246 L87.9827 784.126 L83.0984 784.126 L83.0984 778.246 Z\" fill=\"#000000\" fill-rule=\"evenodd\" fill-opacity=\"1\" /><path clip-path=\"url(#clip210)\" d=\"M98.2141 749.566 L116.57 749.566 L116.57 753.501 L102.496 753.501 L102.496 761.973 Q103.515 761.626 104.534 761.464 Q105.552 761.279 106.571 761.279 Q112.358 761.279 115.737 764.45 Q119.117 767.621 119.117 773.038 Q119.117 778.617 115.645 781.719 Q112.172 784.797 105.853 784.797 Q103.677 784.797 101.409 784.427 Q99.1632 784.057 96.7558 783.316 L96.7558 778.617 Q98.8391 779.751 101.061 780.307 Q103.284 780.862 105.76 780.862 Q109.765 780.862 112.103 778.756 Q114.441 776.649 114.441 773.038 Q114.441 769.427 112.103 767.321 Q109.765 765.214 105.76 765.214 Q103.885 765.214 102.01 765.631 Q100.159 766.047 98.2141 766.927 L98.2141 749.566 Z\" fill=\"#000000\" fill-rule=\"evenodd\" fill-opacity=\"1\" /><path clip-path=\"url(#clip210)\" d=\"M138.33 752.645 Q134.719 752.645 132.89 756.209 Q131.084 759.751 131.084 766.881 Q131.084 773.987 132.89 777.552 Q134.719 781.094 138.33 781.094 Q141.964 781.094 143.769 777.552 Q145.598 773.987 145.598 766.881 Q145.598 759.751 143.769 756.209 Q141.964 752.645 138.33 752.645 M138.33 748.941 Q144.14 748.941 147.195 753.547 Q150.274 758.131 150.274 766.881 Q150.274 775.608 147.195 780.214 Q144.14 784.797 138.33 784.797 Q132.519 784.797 129.441 780.214 Q126.385 775.608 126.385 766.881 Q126.385 758.131 129.441 753.547 Q132.519 748.941 138.33 748.941 Z\" fill=\"#000000\" fill-rule=\"evenodd\" fill-opacity=\"1\" /><path clip-path=\"url(#clip210)\" d=\"M63.9319 413.21 Q60.3208 413.21 58.4921 416.775 Q56.6865 420.316 56.6865 427.446 Q56.6865 434.552 58.4921 438.117 Q60.3208 441.659 63.9319 441.659 Q67.5661 441.659 69.3717 438.117 Q71.2004 434.552 71.2004 427.446 Q71.2004 420.316 69.3717 416.775 Q67.5661 413.21 63.9319 413.21 M63.9319 409.506 Q69.742 409.506 72.7976 414.113 Q75.8763 418.696 75.8763 427.446 Q75.8763 436.173 72.7976 440.779 Q69.742 445.362 63.9319 445.362 Q58.1217 445.362 55.043 440.779 Q51.9875 436.173 51.9875 427.446 Q51.9875 418.696 55.043 414.113 Q58.1217 409.506 63.9319 409.506 Z\" fill=\"#000000\" fill-rule=\"evenodd\" fill-opacity=\"1\" /><path clip-path=\"url(#clip210)\" d=\"M84.0938 438.812 L88.978 438.812 L88.978 444.691 L84.0938 444.691 L84.0938 438.812 Z\" fill=\"#000000\" fill-rule=\"evenodd\" fill-opacity=\"1\" /><path clip-path=\"url(#clip210)\" d=\"M97.9826 410.131 L120.205 410.131 L120.205 412.122 L107.658 444.691 L102.774 444.691 L114.58 414.066 L97.9826 414.066 L97.9826 410.131 Z\" fill=\"#000000\" fill-rule=\"evenodd\" fill-opacity=\"1\" /><path clip-path=\"url(#clip210)\" d=\"M129.371 410.131 L147.728 410.131 L147.728 414.066 L133.654 414.066 L133.654 422.538 Q134.672 422.191 135.691 422.029 Q136.709 421.844 137.728 421.844 Q143.515 421.844 146.894 425.015 Q150.274 428.187 150.274 433.603 Q150.274 439.182 146.802 442.284 Q143.33 445.362 137.01 445.362 Q134.834 445.362 132.566 444.992 Q130.32 444.622 127.913 443.881 L127.913 439.182 Q129.996 440.316 132.219 440.872 Q134.441 441.427 136.918 441.427 Q140.922 441.427 143.26 439.321 Q145.598 437.214 145.598 433.603 Q145.598 429.992 143.26 427.886 Q140.922 425.779 136.918 425.779 Q135.043 425.779 133.168 426.196 Q131.316 426.613 129.371 427.492 L129.371 410.131 Z\" fill=\"#000000\" fill-rule=\"evenodd\" fill-opacity=\"1\" /><path clip-path=\"url(#clip210)\" d=\"M53.7467 101.321 L61.3856 101.321 L61.3856 74.9555 L53.0754 76.6222 L53.0754 72.3629 L61.3393 70.6963 L66.0152 70.6963 L66.0152 101.321 L73.654 101.321 L73.654 105.256 L53.7467 105.256 L53.7467 101.321 Z\" fill=\"#000000\" fill-rule=\"evenodd\" fill-opacity=\"1\" /><path clip-path=\"url(#clip210)\" d=\"M83.0984 99.3767 L87.9827 99.3767 L87.9827 105.256 L83.0984 105.256 L83.0984 99.3767 Z\" fill=\"#000000\" fill-rule=\"evenodd\" fill-opacity=\"1\" /><path clip-path=\"url(#clip210)\" d=\"M108.168 73.775 Q104.557 73.775 102.728 77.3398 Q100.922 80.8814 100.922 88.011 Q100.922 95.1174 102.728 98.6822 Q104.557 102.224 108.168 102.224 Q111.802 102.224 113.608 98.6822 Q115.436 95.1174 115.436 88.011 Q115.436 80.8814 113.608 77.3398 Q111.802 73.775 108.168 73.775 M108.168 70.0713 Q113.978 70.0713 117.033 74.6777 Q120.112 79.261 120.112 88.011 Q120.112 96.7378 117.033 101.344 Q113.978 105.928 108.168 105.928 Q102.358 105.928 99.2789 101.344 Q96.2234 96.7378 96.2234 88.011 Q96.2234 79.261 99.2789 74.6777 Q102.358 70.0713 108.168 70.0713 Z\" fill=\"#000000\" fill-rule=\"evenodd\" fill-opacity=\"1\" /><path clip-path=\"url(#clip210)\" d=\"M138.33 73.775 Q134.719 73.775 132.89 77.3398 Q131.084 80.8814 131.084 88.011 Q131.084 95.1174 132.89 98.6822 Q134.719 102.224 138.33 102.224 Q141.964 102.224 143.769 98.6822 Q145.598 95.1174 145.598 88.011 Q145.598 80.8814 143.769 77.3398 Q141.964 73.775 138.33 73.775 M138.33 70.0713 Q144.14 70.0713 147.195 74.6777 Q150.274 79.261 150.274 88.011 Q150.274 96.7378 147.195 101.344 Q144.14 105.928 138.33 105.928 Q132.519 105.928 129.441 101.344 Q126.385 96.7378 126.385 88.011 Q126.385 79.261 129.441 74.6777 Q132.519 70.0713 138.33 70.0713 Z\" fill=\"#000000\" fill-rule=\"evenodd\" fill-opacity=\"1\" /><polyline clip-path=\"url(#clip212)\" style=\"stroke:#009af9; stroke-linecap:butt; stroke-linejoin:round; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n 247.59,87.9763 254.402,114.995 261.215,141.743 268.028,168.219 274.841,194.423 281.654,220.356 288.467,246.017 295.279,271.407 302.092,296.525 308.905,321.372 \n 315.718,345.947 322.531,370.25 329.344,394.282 336.156,418.043 342.969,441.532 349.782,464.749 356.595,487.695 363.408,510.369 370.221,532.772 377.033,554.903 \n 383.846,576.762 390.659,598.351 397.472,619.667 404.285,640.712 411.098,661.485 417.91,681.987 424.723,702.218 431.536,722.176 438.349,741.864 445.162,761.279 \n 451.975,780.423 458.787,799.296 465.6,817.897 472.413,836.226 479.226,854.284 486.039,872.071 492.852,889.586 499.664,906.829 506.477,923.801 513.29,940.501 \n 520.103,956.93 526.916,973.087 533.729,988.972 540.541,1004.59 547.354,1019.93 554.167,1035 560.98,1049.8 567.793,1064.33 574.606,1078.58 581.418,1092.57 \n 588.231,1106.28 595.044,1119.72 601.857,1132.89 608.67,1145.79 615.483,1158.42 622.296,1170.77 629.108,1182.86 635.921,1194.67 642.734,1206.21 649.547,1217.48 \n 656.36,1228.48 663.173,1239.2 669.985,1249.66 676.798,1259.84 683.611,1269.75 690.424,1279.39 697.237,1288.76 704.05,1297.86 710.862,1306.68 717.675,1315.24 \n 724.488,1323.52 731.301,1331.53 738.114,1339.27 744.927,1346.74 751.739,1353.93 758.552,1360.86 765.365,1367.51 772.178,1373.89 778.991,1380 785.804,1385.84 \n 792.616,1391.41 799.429,1396.7 806.242,1401.72 813.055,1406.48 819.868,1410.96 826.681,1415.17 833.493,1419.1 840.306,1422.77 847.119,1426.16 853.932,1429.29 \n 860.745,1432.14 867.558,1434.72 874.37,1437.03 881.183,1439.06 887.996,1440.83 894.809,1442.32 901.622,1443.54 908.435,1444.49 915.247,1445.17 922.06,1445.58 \n 928.873,1445.72 935.686,1445.58 942.499,1445.17 949.312,1444.49 956.124,1443.54 962.937,1442.32 969.75,1440.83 976.563,1439.06 983.376,1437.03 990.189,1434.72 \n 997.002,1432.14 1003.81,1429.29 1010.63,1426.16 1017.44,1422.77 1024.25,1419.1 1031.07,1415.17 1037.88,1410.96 1044.69,1406.48 1051.5,1401.72 1058.32,1396.7 \n 1065.13,1391.41 1071.94,1385.84 1078.76,1380 1085.57,1373.89 1092.38,1367.51 1099.19,1360.86 1106.01,1353.93 1112.82,1346.74 1119.63,1339.27 1126.45,1331.53 \n 1133.26,1323.52 1140.07,1315.24 1146.88,1306.68 1153.7,1297.86 1160.51,1288.76 1167.32,1279.39 1174.14,1269.75 1180.95,1259.84 1187.76,1249.66 1194.57,1239.2 \n 1201.39,1228.48 1208.2,1217.48 1215.01,1206.21 1221.83,1194.67 1228.64,1182.86 1235.45,1170.77 1242.26,1158.42 1249.08,1145.79 1255.89,1132.89 1262.7,1119.72 \n 1269.51,1106.28 1276.33,1119.72 1283.14,1132.89 1289.95,1145.79 1296.77,1158.42 1303.58,1170.77 1310.39,1182.86 1317.2,1194.67 1324.02,1206.21 1330.83,1217.48 \n 1337.64,1228.48 1344.46,1239.2 1351.27,1249.66 1358.08,1259.84 1364.89,1269.75 1371.71,1279.39 1378.52,1288.76 1385.33,1297.86 1392.15,1306.68 1398.96,1315.24 \n 1405.77,1323.52 1412.58,1331.53 1419.4,1339.27 1426.21,1346.74 1433.02,1353.93 1439.84,1360.86 1446.65,1367.51 1453.46,1373.89 1460.27,1380 1467.09,1385.84 \n 1473.9,1391.41 1480.71,1396.7 1487.53,1401.72 1494.34,1406.48 1501.15,1410.96 1507.96,1415.17 1514.78,1419.1 1521.59,1422.77 1528.4,1426.16 1535.22,1429.29 \n 1542.03,1432.14 1548.84,1434.72 1555.65,1437.03 1562.47,1439.06 1569.28,1440.83 1576.09,1442.32 1582.91,1443.54 1589.72,1444.49 1596.53,1445.17 1603.34,1445.58 \n 1610.16,1445.72 1616.97,1445.58 1623.78,1445.17 1630.6,1444.49 1637.41,1443.54 1644.22,1442.32 1651.03,1440.83 1657.85,1439.06 1664.66,1437.03 1671.47,1434.72 \n 1678.29,1432.14 1685.1,1429.29 1691.91,1426.16 1698.72,1422.77 1705.54,1419.1 1712.35,1415.17 1719.16,1410.96 1725.97,1406.48 1732.79,1401.72 1739.6,1396.7 \n 1746.41,1391.41 1753.23,1385.84 1760.04,1380 1766.85,1373.89 1773.66,1367.51 1780.48,1360.86 1787.29,1353.93 1794.1,1346.74 1800.92,1339.27 1807.73,1331.53 \n 1814.54,1323.52 1821.35,1315.24 1828.17,1306.68 1834.98,1297.86 1841.79,1288.76 1848.61,1279.39 1855.42,1269.75 1862.23,1259.84 1869.04,1249.66 1875.86,1239.2 \n 1882.67,1228.48 1889.48,1217.48 1896.3,1206.21 1903.11,1194.67 1909.92,1182.86 1916.73,1170.77 1923.55,1158.42 1930.36,1145.79 1937.17,1132.89 1943.99,1119.72 \n 1950.8,1106.28 1957.61,1092.57 1964.42,1078.58 1971.24,1064.33 1978.05,1049.8 1984.86,1035 1991.68,1019.93 1998.49,1004.59 2005.3,988.972 2012.11,973.087 \n 2018.93,956.93 2025.74,940.501 2032.55,923.801 2039.37,906.829 2046.18,889.586 2052.99,872.071 2059.8,854.284 2066.62,836.226 2073.43,817.897 2080.24,799.296 \n 2087.06,780.423 2093.87,761.279 2100.68,741.864 2107.49,722.176 2114.31,702.218 2121.12,681.987 2127.93,661.485 2134.75,640.712 2141.56,619.667 2148.37,598.351 \n 2155.18,576.762 2162,554.903 2168.81,532.772 2175.62,510.369 2182.44,487.695 2189.25,464.749 2196.06,441.532 2202.87,418.043 2209.69,394.282 2216.5,370.25 \n 2223.31,345.947 2230.12,321.372 2236.94,296.525 2243.75,271.407 2250.56,246.017 2257.38,220.356 2264.19,194.423 2271,168.219 2277.81,141.743 2284.63,114.995 \n 2291.44,87.9763 \n \"/>\n<path clip-path=\"url(#clip210)\" d=\"\nM1987.39 216.178 L2280.54 216.178 L2280.54 95.2176 L1987.39 95.2176 Z\n \" fill=\"#ffffff\" fill-rule=\"evenodd\" fill-opacity=\"1\"/>\n<polyline clip-path=\"url(#clip210)\" style=\"stroke:#000000; stroke-linecap:butt; stroke-linejoin:round; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n 1987.39,216.178 2280.54,216.178 2280.54,95.2176 1987.39,95.2176 1987.39,216.178 \n \"/>\n<polyline clip-path=\"url(#clip210)\" style=\"stroke:#009af9; stroke-linecap:butt; stroke-linejoin:round; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n 2011.46,155.698 2155.89,155.698 \n \"/>\n<path clip-path=\"url(#clip210)\" d=\"M2193.81 175.385 Q2192 180.015 2190.29 181.427 Q2188.58 182.839 2185.71 182.839 L2182.3 182.839 L2182.3 179.274 L2184.8 179.274 Q2186.56 179.274 2187.53 178.44 Q2188.51 177.607 2189.69 174.505 L2190.45 172.561 L2179.97 147.052 L2184.48 147.052 L2192.58 167.329 L2200.68 147.052 L2205.2 147.052 L2193.81 175.385 Z\" fill=\"#000000\" fill-rule=\"evenodd\" fill-opacity=\"1\" /><path clip-path=\"url(#clip210)\" d=\"M2212.49 169.042 L2220.13 169.042 L2220.13 142.677 L2211.82 144.343 L2211.82 140.084 L2220.08 138.418 L2224.76 138.418 L2224.76 169.042 L2232.4 169.042 L2232.4 172.978 L2212.49 172.978 L2212.49 169.042 Z\" fill=\"#000000\" fill-rule=\"evenodd\" fill-opacity=\"1\" /></svg>\n"
},
"metadata": {},
"execution_count": 6
}
],
"source": [
"using Plots; gr();\n",
"x = -1.0:0.01:2.0\n",
"f(x) = x^2\n",
"g(x) = (x-1)^2\n",
"h(x) = min(f(x), g(x))\n",
"y = h.(x)\n",
"plot(x, y)"
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment