231 lines
30 KiB
Plaintext
231 lines
30 KiB
Plaintext
{
|
||
"cells": [
|
||
{
|
||
"cell_type": "markdown",
|
||
"metadata": {},
|
||
"source": [
|
||
"# Ed's polynomial"
|
||
]
|
||
},
|
||
{
|
||
"cell_type": "code",
|
||
"execution_count": 1,
|
||
"metadata": {},
|
||
"outputs": [
|
||
{
|
||
"data": {
|
||
"text/plain": [
|
||
"y (generic function with 1 method)"
|
||
]
|
||
},
|
||
"execution_count": 1,
|
||
"metadata": {},
|
||
"output_type": "execute_result"
|
||
}
|
||
],
|
||
"source": [
|
||
"y(x) = x^5 + x^2 + x^3 + x^2 + x + 5"
|
||
]
|
||
},
|
||
{
|
||
"cell_type": "markdown",
|
||
"metadata": {},
|
||
"source": [
|
||
"A polynomial is a mathematical expression involving a sum of powers in one or more variables multiplied by coefficients. A polynomial in one variable (i.e., a univariate polynomial) with constant coefficients is given by\n",
|
||
"$a_n x^n + \\dots + a_2 x^2 + a_1 x + a_0$.\n",
|
||
"The individual summands with the coefficients (usually) included are called monomials, whereas the products of the form $x_1^{a_1} \\dots x_n^{a_n}$ in the multivariate case, i.e., with the coefficients omitted, are called terms. However, the term \"monomial\" is sometimes also used to mean polynomial summands without their coefficients, and in some older works, the definitions of monomial and term are reversed. Care is therefore needed in attempting to distinguish these conflicting usages.\n",
|
||
"The highest power in a univariate polynomial is called its order, or sometimes its degree.\n",
|
||
"Any polynomial $P(x)$ with $P(0)!=0$ can be expressed as\n",
|
||
"$P(x) = P(0) product_ρ(1 - x/ρ)$, where the product runs over the roots $ρ$ of $P(ρ) = 0$ and it is understood that multiple roots are counted with multiplicity."
|
||
]
|
||
},
|
||
{
|
||
"cell_type": "code",
|
||
"execution_count": 2,
|
||
"metadata": {},
|
||
"outputs": [
|
||
{
|
||
"name": "stdout",
|
||
"output_type": "stream",
|
||
"text": [
|
||
"the value of y at -5 is -3200\n",
|
||
"the value of y at -4 is -1055\n",
|
||
"the value of y at -3 is -250\n",
|
||
"the value of y at -2 is -29\n",
|
||
"the value of y at -1 is 4\n",
|
||
"the value of y at 0 is 5\n",
|
||
"the value of y at 1 is 10\n",
|
||
"the value of y at 2 is 55\n",
|
||
"the value of y at 3 is 296\n",
|
||
"the value of y at 4 is 1129\n",
|
||
"the value of y at 5 is 3310\n"
|
||
]
|
||
}
|
||
],
|
||
"source": [
|
||
"for x = -5:5\n",
|
||
" println(\"the value of y at $x is $(y(x))\")\n",
|
||
"end"
|
||
]
|
||
},
|
||
{
|
||
"cell_type": "code",
|
||
"execution_count": 3,
|
||
"metadata": {},
|
||
"outputs": [
|
||
{
|
||
"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=\"clip6800\">\n",
|
||
" <rect x=\"0\" y=\"0\" width=\"2400\" height=\"1600\"/>\n",
|
||
" </clipPath>\n",
|
||
"</defs>\n",
|
||
"<path clip-path=\"url(#clip6800)\" d=\"\n",
|
||
"M0 1600 L2400 1600 L2400 0 L0 0 Z\n",
|
||
" \" fill=\"#ffffff\" fill-rule=\"evenodd\" fill-opacity=\"1\"/>\n",
|
||
"<defs>\n",
|
||
" <clipPath id=\"clip6801\">\n",
|
||
" <rect x=\"480\" y=\"0\" width=\"1681\" height=\"1600\"/>\n",
|
||
" </clipPath>\n",
|
||
"</defs>\n",
|
||
"<path clip-path=\"url(#clip6800)\" d=\"\n",
|
||
"M206.876 1486.45 L2352.76 1486.45 L2352.76 47.2441 L206.876 47.2441 Z\n",
|
||
" \" fill=\"#ffffff\" fill-rule=\"evenodd\" fill-opacity=\"1\"/>\n",
|
||
"<defs>\n",
|
||
" <clipPath id=\"clip6802\">\n",
|
||
" <rect x=\"206\" y=\"47\" width=\"2147\" height=\"1440\"/>\n",
|
||
" </clipPath>\n",
|
||
"</defs>\n",
|
||
"<polyline clip-path=\"url(#clip6802)\" style=\"stroke:#000000; stroke-width:2; stroke-opacity:0.1; fill:none\" points=\"\n",
|
||
" 470.05,1486.45 470.05,47.2441 \n",
|
||
" \"/>\n",
|
||
"<polyline clip-path=\"url(#clip6802)\" style=\"stroke:#000000; stroke-width:2; stroke-opacity:0.1; fill:none\" points=\"\n",
|
||
" 874.933,1486.45 874.933,47.2441 \n",
|
||
" \"/>\n",
|
||
"<polyline clip-path=\"url(#clip6802)\" style=\"stroke:#000000; stroke-width:2; stroke-opacity:0.1; fill:none\" points=\"\n",
|
||
" 1279.82,1486.45 1279.82,47.2441 \n",
|
||
" \"/>\n",
|
||
"<polyline clip-path=\"url(#clip6802)\" style=\"stroke:#000000; stroke-width:2; stroke-opacity:0.1; fill:none\" points=\"\n",
|
||
" 1684.7,1486.45 1684.7,47.2441 \n",
|
||
" \"/>\n",
|
||
"<polyline clip-path=\"url(#clip6802)\" style=\"stroke:#000000; stroke-width:2; stroke-opacity:0.1; fill:none\" points=\"\n",
|
||
" 2089.58,1486.45 2089.58,47.2441 \n",
|
||
" \"/>\n",
|
||
"<polyline clip-path=\"url(#clip6802)\" style=\"stroke:#000000; stroke-width:2; stroke-opacity:0.1; fill:none\" points=\"\n",
|
||
" 206.876,1404 2352.76,1404 \n",
|
||
" \"/>\n",
|
||
"<polyline clip-path=\"url(#clip6802)\" style=\"stroke:#000000; stroke-width:2; stroke-opacity:0.1; fill:none\" points=\"\n",
|
||
" 206.876,1195.44 2352.76,1195.44 \n",
|
||
" \"/>\n",
|
||
"<polyline clip-path=\"url(#clip6802)\" style=\"stroke:#000000; stroke-width:2; stroke-opacity:0.1; fill:none\" points=\"\n",
|
||
" 206.876,986.879 2352.76,986.879 \n",
|
||
" \"/>\n",
|
||
"<polyline clip-path=\"url(#clip6802)\" style=\"stroke:#000000; stroke-width:2; stroke-opacity:0.1; fill:none\" points=\"\n",
|
||
" 206.876,778.317 2352.76,778.317 \n",
|
||
" \"/>\n",
|
||
"<polyline clip-path=\"url(#clip6802)\" style=\"stroke:#000000; stroke-width:2; stroke-opacity:0.1; fill:none\" points=\"\n",
|
||
" 206.876,569.755 2352.76,569.755 \n",
|
||
" \"/>\n",
|
||
"<polyline clip-path=\"url(#clip6802)\" style=\"stroke:#000000; stroke-width:2; stroke-opacity:0.1; fill:none\" points=\"\n",
|
||
" 206.876,361.193 2352.76,361.193 \n",
|
||
" \"/>\n",
|
||
"<polyline clip-path=\"url(#clip6802)\" style=\"stroke:#000000; stroke-width:2; stroke-opacity:0.1; fill:none\" points=\"\n",
|
||
" 206.876,152.631 2352.76,152.631 \n",
|
||
" \"/>\n",
|
||
"<polyline clip-path=\"url(#clip6800)\" style=\"stroke:#000000; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
|
||
" 206.876,1486.45 2352.76,1486.45 \n",
|
||
" \"/>\n",
|
||
"<polyline clip-path=\"url(#clip6800)\" style=\"stroke:#000000; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
|
||
" 206.876,1486.45 206.876,47.2441 \n",
|
||
" \"/>\n",
|
||
"<polyline clip-path=\"url(#clip6800)\" style=\"stroke:#000000; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
|
||
" 470.05,1486.45 470.05,1469.18 \n",
|
||
" \"/>\n",
|
||
"<polyline clip-path=\"url(#clip6800)\" style=\"stroke:#000000; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
|
||
" 874.933,1486.45 874.933,1469.18 \n",
|
||
" \"/>\n",
|
||
"<polyline clip-path=\"url(#clip6800)\" style=\"stroke:#000000; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
|
||
" 1279.82,1486.45 1279.82,1469.18 \n",
|
||
" \"/>\n",
|
||
"<polyline clip-path=\"url(#clip6800)\" style=\"stroke:#000000; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
|
||
" 1684.7,1486.45 1684.7,1469.18 \n",
|
||
" \"/>\n",
|
||
"<polyline clip-path=\"url(#clip6800)\" style=\"stroke:#000000; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
|
||
" 2089.58,1486.45 2089.58,1469.18 \n",
|
||
" \"/>\n",
|
||
"<polyline clip-path=\"url(#clip6800)\" style=\"stroke:#000000; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
|
||
" 206.876,1404 232.626,1404 \n",
|
||
" \"/>\n",
|
||
"<polyline clip-path=\"url(#clip6800)\" style=\"stroke:#000000; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
|
||
" 206.876,1195.44 232.626,1195.44 \n",
|
||
" \"/>\n",
|
||
"<polyline clip-path=\"url(#clip6800)\" style=\"stroke:#000000; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
|
||
" 206.876,986.879 232.626,986.879 \n",
|
||
" \"/>\n",
|
||
"<polyline clip-path=\"url(#clip6800)\" style=\"stroke:#000000; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
|
||
" 206.876,778.317 232.626,778.317 \n",
|
||
" \"/>\n",
|
||
"<polyline clip-path=\"url(#clip6800)\" style=\"stroke:#000000; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
|
||
" 206.876,569.755 232.626,569.755 \n",
|
||
" \"/>\n",
|
||
"<polyline clip-path=\"url(#clip6800)\" style=\"stroke:#000000; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
|
||
" 206.876,361.193 232.626,361.193 \n",
|
||
" \"/>\n",
|
||
"<polyline clip-path=\"url(#clip6800)\" style=\"stroke:#000000; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
|
||
" 206.876,152.631 232.626,152.631 \n",
|
||
" \"/>\n",
|
||
"<path clip-path=\"url(#clip6800)\" d=\"M 0 0 M450.061 1525.04 L462.538 1525.04 L462.538 1528.83 L450.061 1528.83 L450.061 1525.04 Z\" fill=\"#000000\" fill-rule=\"evenodd\" fill-opacity=\"1\" /><path clip-path=\"url(#clip6800)\" d=\"M 0 0 M480.455 1509.43 L468.649 1527.88 L480.455 1527.88 L480.455 1509.43 M479.228 1505.36 L485.108 1505.36 L485.108 1527.88 L490.038 1527.88 L490.038 1531.77 L485.108 1531.77 L485.108 1539.92 L480.455 1539.92 L480.455 1531.77 L464.853 1531.77 L464.853 1527.26 L479.228 1505.36 Z\" fill=\"#000000\" fill-rule=\"evenodd\" fill-opacity=\"1\" /><path clip-path=\"url(#clip6800)\" d=\"M 0 0 M855.986 1525.04 L868.463 1525.04 L868.463 1528.83 L855.986 1528.83 L855.986 1525.04 Z\" fill=\"#000000\" fill-rule=\"evenodd\" fill-opacity=\"1\" /><path clip-path=\"url(#clip6800)\" d=\"M 0 0 M877.56 1535.98 L893.879 1535.98 L893.879 1539.92 L871.935 1539.92 L871.935 1535.98 Q874.597 1533.23 879.18 1528.6 Q883.787 1523.95 884.967 1522.61 Q887.213 1520.08 888.092 1518.35 Q888.995 1516.59 888.995 1514.9 Q888.995 1512.14 887.051 1510.41 Q885.129 1508.67 882.028 1508.67 Q879.829 1508.67 877.375 1509.43 Q874.944 1510.2 872.167 1511.75 L872.167 1507.03 Q874.991 1505.89 877.444 1505.31 Q879.898 1504.73 881.935 1504.73 Q887.305 1504.73 890.5 1507.42 Q893.694 1510.11 893.694 1514.6 Q893.694 1516.73 892.884 1518.65 Q892.097 1520.54 889.991 1523.14 Q889.412 1523.81 886.31 1527.03 Q883.208 1530.22 877.56 1535.98 Z\" fill=\"#000000\" fill-rule=\"evenodd\" fill-opacity=\"1\" /><path clip-path=\"url(#clip6800)\" d=\"M 0 0 M1279.82 1508.44 Q1276.2 1508.44 1274.38 1512 Q1272.57 1515.55 1272.57 1522.67 Q1272.57 1529.78 1274.38 1533.35 Q1276.2 1536.89 1279.82 1536.89 Q1283.45 1536.89 1285.26 1533.35 Q1287.08 1529.78 1287.08 1522.67 Q1287.08 1515.55 1285.26 1512 Q1283.45 1508.44 1279.82 1508.44 M1279.82 1504.73 Q1285.63 1504.73 1288.68 1509.34 Q1291.76 1513.92 1291.76 1522.67 Q1291.76 1531.4 1288.68 1536.01 Q1285.63 1540.59 1279.82 1540.59 Q1274.01 1540.59 1270.93 1536.01 Q1267.87 1531.4 1267.87 1522.67 Q1267.87 1513.92 1270.93 1509.34 Q1274.01 1504.73 1279.82 1504.73 Z\" fill=\"#000000\" fill-rule=\"evenodd\" fill-opacity=\"1\" /><path clip-path=\"url(#clip6800)\" d=\"M 0 0 M1679.35 1535.98 L1695.67 1535.98 L1695.67 1539.92 L1673.73 1539.92 L1673.73 1535.98 Q1676.39 1533.23 1680.97 1528.6 Q1685.58 1523.95 1686.76 1522.61 Q1689 1520.08 1689.88 1518.35 Q1690.79 1516.59 1690.79 1514.9 Q1690.79 1512.14 1688.84 1510.41 Q1686.92 1508.67 1683.82 1508.67 Q1681.62 1508.67 1679.17 1509.43 Q1676.74 1510.2 1673.96 1511.75 L1673.96 1507.03 Q1676.78 1505.89 1679.24 1505.31 Q1681.69 1504.73 1683.73 1504.73 Q1689.1 1504.73 1692.29 1507.42 Q1695.49 1510.11 1695.49 1514.6 Q1695.49 1516.73 1694.68 1518.65 Q1693.89 1520.54 1691.78 1523.14 Q1691.2 1523.81 1688.1 1527.03 Q1685 1530.22 1679.35 1535.98 Z\" fill=\"#000000\" fill-rule=\"evenodd\" fill-opacity=\"1\" /><path clip-path=\"url(#clip6800)\" d=\"M 0 0 M2092.59 1509.43 L2080.79 1527.88 L2092.59 1527.88 L2092.59 1509.43 M2091.36 1505.36 L2097.24 1505.36 L2097.24 1527.88 L2102.17 1527.88 L2102.17 1531.77 L2097.24 1531.77 L2097.24 1539.92 L2092.59 1539.92 L2092.59 1531.77 L2076.99 1531.77 L2076.99 1527.26 L2091.36 1505.36 Z\" fill=\"#000000\" fill-rule=\"evenodd\" fill-opacity=\"1\" /><path clip-path=\"url(#clip6800)\" d=\"M 0 0 M62.9921 1406.4 L75.4689 1406.4 L75.4689 1410.2 L62.9921 1410.2 L62.9921 1406.4 Z\" fill=\"#000000\" fill-rule=\"evenodd\" fill-opacity=\"1\" /><path clip-path=\"url(#clip6800)\" d=\"M 0 0 M94.7049 1402.65 Q98.0614 1403.37 99.9364 1405.64 Q101.835 1407.9 101.835 1411.24 Q101.835 1416.35 98.316 1419.15 Q94.7975 1421.95 88.3161 1421.95 Q86.1402 1421.95 83.8253 1421.51 Q81.5337 1421.1 79.08 1420.24 L79.08 1415.73 Q81.0244 1416.86 83.3392 1417.44 Q85.654 1418.02 88.1772 1418.02 Q92.5753 1418.02 94.867 1416.28 Q97.1818 1414.55 97.1818 1411.24 Q97.1818 1408.18 95.029 1406.47 Q92.8994 1404.73 89.0799 1404.73 L85.0522 1404.73 L85.0522 1400.89 L89.2651 1400.89 Q92.7142 1400.89 94.5429 1399.52 Q96.3716 1398.14 96.3716 1395.54 Q96.3716 1392.88 94.4734 1391.47 Q92.5984 1390.03 89.0799 1390.03 Q87.1587 1390.03 84.9596 1390.45 Q82.7605 1390.87 80.1217 1391.75 L80.1217 1387.58 Q82.7837 1386.84 85.0985 1386.47 Q87.4364 1386.1 89.4966 1386.1 Q94.8207 1386.1 97.9225 1388.53 Q101.024 1390.94 101.024 1395.06 Q101.024 1397.93 99.3808 1399.92 Q97.7373 1401.89 94.7049 1402.65 Z\" fill=\"#000000\" fill-rule=\"evenodd\" fill-opacity=\"1\" /><path clip-path=\"url(#clip6800)\" d=\"M 0 0 M116.904 1389.8 Q113.293 1389.8 111.464 1393.37 Q109.659 1396.91 109.659 1404.04 Q109.659 1411.14 111.464 1414.71 Q113.293 1418.25 116.904 1418.25 Q120.538 1418.25 122.344 1414.71 Q124.172 1411.14 124.172 1404.04 Q124.172 1396.91 122.344 1393.37 Q120.538 1389.8 116.904 1389.8 M116.904 1386.1 Q122.714 1386.1 125.77 1390.7 Q128.848 1395.29 128.848 1404.04 Q128.848 1412.76 125.77 1417.37 Q122.714 1421.95 116.904 1421.95 Q111.094 1421.95 108.015 1417.37 Q104.959 1412.76 104.959 1404.04 Q104.959 1395.29 108.015 1390.7 Q111.094 1386.1 116.904 1386.1 Z\" fill=\"#000000\" fill-rule=\"evenodd\" fill-opacity=\"1\" /><path clip-path=\"url(#clip6800)\" d=\"M 0 0 M143.918 1389.8 Q140.307 1389.8 138.478 1393.37 Q136.672 1396.91 136.672 1404.04 Q136.672 1411.14 138.478 1414.71 Q140.307 1418.25 143.918 1418.25 Q147.552 1418.25 149.357 1414.71 Q151.186 1411.14 151.186 1404.04 Q151.186 1396.91 149.357 1393.37 Q147.552 1389.8 143.918 1389.8 M143.918 1386.1 Q149.728 1386.1 152.783 1390.7 Q155.862 1395.29 155.862 1404.04 Q155.862 1412.76 152.783 1417.37 Q149.728 1421.95 143.918 1421.95 Q138.107 1421.95 135.029 1417.37 Q131.973 1412.76 131.973 1404.04 Q131.973 1395.29 135.029 1390.7 Q138.107 1386.1 143.918 1386.1 Z\" fill=\"#000000\" fill-rule=\"evenodd\" fill-opacity=\"1\" /><path clip-path=\"url(#clip6800)\" d=\"M 0 0 M170.931 1389.8 Q167.32 1389.8 165.492 1393.37 Q163.686 1396.91 163.686 1404.04 Q163.686 1411.14 165.492 1414.71 Q167.32 1418.25 170.931 1418.25 Q174.566 1418.25 176.371 1414.71 Q178.2 1411.14 178.2 1404.04 Q178.2 1396.91 176.371 1393.37 Q174.566 1389.8 170.931 1389.8 M170.931 1386.1 Q176.742 1386.1 179.797 1390.7 Q182.876 1395.29 182.876 1404.04 Q182.876 1412.76 179.797 1417.37 Q176.742 1421.95 170.931 1421.95 Q165.121 1421.95 162.043 1417.37 Q158.987 1412.76 158.987 1404.04 Q158.987 1395.29 162.043 1390.7 Q165.121 1386.1 170.931 1386.1 Z\" fill=\"#000000\" fill-rule=\"evenodd\" fill-opacity=\"1\" /><path clip-path=\"url(#clip6800)\" d=\"M 0 0 M63.9412 1197.84 L76.418 1197.84 L76.418 1201.63 L63.9412 1201.63 L63.9412 1197.84 Z\" fill=\"#000000\" fill-rule=\"evenodd\" fill-opacity=\"1\" /><path clip-path=\"url(#clip6800)\" d=\"M 0 0 M85.5152 1208.79 L101.835 1208.79 L101.835 1212.72 L79.8902 1212.72 L79.8902 1208.79 Q82.5522 1206.03 87.1355 1201.4 Q91.742 1196.75 92.9225 1195.41 Q95.1679 1192.88 96.0475 1191.15 Q96.9503 1189.39 96.9503 1187.7 Q96.9503 1184.94 95.0058 1183.21 Q93.0846 1181.47 89.9827 1181.47 Q87.7837 1181.47 85.33 1182.24 Q82.8994 1183 80.1217 1184.55 L80.1217 1179.83 Q82.9457 1178.69 85.3994 1178.11 Q87.8531 1177.54 89.8901 1177.54 Q95.2605 1177.54 98.4549 1180.22 Q101.649 1182.91 101.649 1187.4 Q101.649 1189.53 100.839 1191.45 Q100.052 1193.35 97.9456 1195.94 Q97.3669 1196.61 94.2651 1199.83 Q91.1633 1203.02 85.5152 1208.79 Z\" fill=\"#000000\" fill-rule=\"evenodd\" fill-opacity=\"1\" /><path clip-path=\"url(#clip6800)\" d=\"M 0 0 M116.904 1181.24 Q113.293 1181.24 111.464 1184.8 Q109.659 1188.35 109.659 1195.48 Q109.659 1202.58 111.464 1206.15 Q113.293 1209.69 116.904 1209.69 Q120.538 1209.69 122.344 1206.15 Q124.172 1202.58 124.172 1195.48 Q124.172 1188.35 122.344 1184.8 Q120.538 1181.24 116.904 1181.24 M116.904 1177.54 Q122.714 1177.54 125.77 1182.14 Q128.848 1186.73 128.848 1195.48 Q128.848 1204.2 125.77 1208.81 Q122.714 1213.39 116.904 1213.39 Q111.094 1213.39 108.015 1208.81 Q104.959 1204.2 104.959 1195.48 Q104.959 1186.73 108.015 1182.14 Q111.094 1177.54 116.904 1177.54 Z\" fill=\"#000000\" fill-rule=\"evenodd\" fill-opacity=\"1\" /><path clip-path=\"url(#clip6800)\" d=\"M 0 0 M143.918 1181.24 Q140.307 1181.24 138.478 1184.8 Q136.672 1188.35 136.672 1195.48 Q136.672 1202.58 138.478 1206.15 Q140.307 1209.69 143.918 1209.69 Q147.552 1209.69 149.357 1206.15 Q151.186 1202.58 151.186 1195.48 Q151.186 1188.35 149.357 1184.8 Q147.552 1181.24 143.918 1181.24 M143.918 1177.54 Q149.728 1177.54 152.783 1182.14 Q155.862 1186.73 155.862 1195.48 Q155.862 1204.2 152.783 1208.81 Q149.728 1213.39 143.918 1213.39 Q138.107 1213.39 135.029 1208.81 Q131.973 1204.2 131.973 1195.48 Q131.973 1186.73 135.029 1182.14 Q138.107 1177.54 143.918 1177.54 Z\" fill=\"#000000\" fill-rule=\"evenodd\" fill-opacity=\"1\" /><path clip-path=\"url(#clip6800)\" d=\"M 0 0 M170.931 1181.24 Q167.32 1181.24 165.492 1184.8 Q163.686 1188.35 163.686 1195.48 Q163.686 1202.58 165.492 1206.15 Q167.32 1209.69 170.931 1209.69 Q174.566 1209.69 176.371 1206.15 Q178.2 1202.58 178.2 1195.48 Q178.2 1188.35 176.371 1184.8 Q174.566 1181.24 170.931 1181.24 M170.931 1177.54 Q176.742 1177.54 179.797 1182.14 Q182.876 1186.73 182.876 1195.48 Q182.876 1204.2 179.797 1208.81 Q176.742 1213.39 170.931 1213.39 Q165.121 1213.39 162.043 1208.81 Q158.987 1204.2 158.987 1195.48 Q158.987 1186.73 162.043 1182.14 Q165.121 1177.54 170.931 1177.54 Z\" fill=\"#000000\" fill-rule=\"evenodd\" fill-opacity=\"1\" /><path clip-path=\"url(#clip6800)\" d=\"M 0 0 M63.5708 989.275 L76.0476 989.275 L76.0476 993.071 L63.5708 993.071 L63.5708 989.275 Z\" fill=\"#000000\" fill-rule=\"evenodd\" fill-opacity=\"1\" /><path clip-path=\"url(#clip6800)\" d=\"M 0 0 M81.9272 1000.22 L89.5661 1000.22 L89.5661 973.858 L81.2559 975.525 L81.2559 971.266 L89.5198 969.599 L94.1957 969.599 L94.1957 1000.22 L101.835 1000.22 L101.835 1004.16 L81.9272 1004.16 L81.9272 1000.22 Z\" fill=\"#000000\" fill-rule=\"evenodd\" fill-opacity=\"1\" /><path clip-path=\"url(#clip6800)\" d=\"M 0 0 M116.904 972.678 Q113.293 972.678 111.464 976.243 Q109.659 979.784 109.659 986.914 Q109.659 994.02 111.464 997.585 Q113.293 1001.13 116.904 1001.13 Q120.538 1001.13 122.344 997.585 Q124.172 994.02 124.172 986.914 Q124.172 979.784 122.344 976.243 Q120.538 972.678 116.904 972.678 M116.904 968.974 Q122.714 968.974 125.77 973.58 Q128.848 978.164 128.848 986.914 Q128.848 995.641 125.77 1000.25 Q122.714 1004.83 116.904 1004.83 Q111.094 1004.83 108.015 1000.25 Q104.959 995.641 104.959 986.914 Q104.959 978.164 108.015 973.58 Q111.094 968.974 116.904 968.974 Z\" fill=\"#000000\" fill-rule=\"evenodd\" fill-opacity=\"1\" /><path clip-path=\"url(#clip6800)\" d=\"M 0 0 M143.918 972.678 Q140.307 972.678 138.478 976.243 Q136.672 979.784 136.672 986.914 Q136.672 994.02 138.478 997.585 Q140.307 1001.13 143.918 1001.13 Q147.552 1001.13 149.357 997.585 Q151.186 994.02 151.186 986.914 Q151.186 979.784 149.357 976.243 Q147.552 972.678 143.918 972.678 M143.918 968.974 Q149.728 968.974 152.783 973.58 Q155.862 978.164 155.862 986.914 Q155.862 995.641 152.783 1000.25 Q149.728 1004.83 143.918 1004.83 Q138.107 1004.83 135.029 1000.25 Q131.973 995.641 131.973 986.914 Q131.973 978.164 135.029 973.58 Q138.107 968.974 143.918 968.974 Z\" fill=\"#000000\" fill-rule=\"evenodd\" fill-opacity=\"1\" /><path clip-path=\"url(#clip6800)\" d=\"M 0 0 M170.931 972.678 Q167.32 972.678 165.492 976.243 Q163.686 979.784 163.686 986.914 Q163.686 994.02 165.492 997.585 Q167.32 1001.13 170.931 1001.13 Q174.566 1001.13 176.371 997.585 Q178.2 994.02 178.2 986.914 Q178.2 979.784 176.371 976.243 Q174.566 972.678 170.931 972.678 M170.931 968.974 Q176.742 968.974 179.797 973.58 Q182.876 978.164 182.876 986.914 Q182.876 995.641 179.797 1000.25 Q176.742 1004.83 170.931 1004.83 Q165.121 1004.83 162.043 1000.25 Q158.987 995.641 158.987 986.914 Q158.987 978.164 162.043 973.58 Q165.121 968.974 170.931 968.974 Z\" fill=\"#000000\" fill-rule=\"evenodd\" fill-opacity=\"1\" /><path clip-path=\"url(#clip6800)\" d=\"M 0 0 M170.931 764.116 Q167.32 764.116 165.492 767.68 Q163.686 771.222 163.686 778.352 Q163.686 785.458 165.492 789.023 Q167.32 792.565 170.931 792.565 Q174.566 792.565 176.371 789.023 Q178.2 785.458 178.2 778.352 Q178.2 771.222 176.371 767.68 Q174.566 764.116 170.931 764.116 M170.931 760.412 Q176.742 760.412 179.797 765.018 Q182.876 769.602 182.876 778.352 Q182.876 787.078 179.797 791.685 Q176.742 796.268 170.931 796.268 Q165.121 796.268 162.043 791.685 Q158.987 787.078 158.987 778.352 Q158.987 769.602 162.043 765.018 Q165.121 760.412 170.931 760.412 Z\" fill=\"#000000\" fill-rule=\"evenodd\" fill-opacity=\"1\" /><path clip-path=\"url(#clip6800)\" d=\"M 0 0 M81.9272 583.1 L89.5661 583.1 L89.5661 556.734 L81.2559 558.401 L81.2559 554.141 L89.5198 552.475 L94.1957 552.475 L94.1957 583.1 L101.835 583.1 L101.835 587.035 L81.9272 587.035 L81.9272 583.1 Z\" fill=\"#000000\" fill-rule=\"evenodd\" fill-opacity=\"1\" /><path clip-path=\"url(#clip6800)\" d=\"M 0 0 M116.904 555.553 Q113.293 555.553 111.464 559.118 Q109.659 562.66 109.659 569.79 Q109.659 576.896 111.464 580.461 Q113.293 584.002 116.904 584.002 Q120.538 584.002 122.344 580.461 Q124.172 576.896 124.172 569.79 Q124.172 562.66 122.344 559.118 Q120.538 555.553 116.904 555.553 M116.904 551.85 Q122.714 551.85 125.77 556.456 Q128.848 561.04 128.848 569.79 Q128.848 578.516 125.77 583.123 Q122.714 587.706 116.904 587.706 Q111.094 587.706 108.015 583.123 Q104.959 578.516 104.959 569.79 Q104.959 561.04 108.015 556.456 Q111.094 551.85 116.904 551.85 Z\" fill=\"#000000\" fill-rule=\"evenodd\" fill-opacity=\"1\" /><path clip-path=\"url(#clip6800)\" d=\"M 0 0 M143.918 555.553 Q140.307 555.553 138.478 559.118 Q136.672 562.66 136.672 569.79 Q136.672 576.896 138.478 580.461 Q140.307 584.002 143.918 584.002 Q147.552 584.002 149.357 580.461 Q151.186 576.896 151.186 569.79 Q151.186 562.66 149.357 559.118 Q147.552 555.553 143.918 555.553 M143.918 551.85 Q149.728 551.85 152.783 556.456 Q155.862 561.04 155.862 569.79 Q155.862 578.516 152.783 583.123 Q149.728 587.706 143.918 587.706 Q138.107 587.706 135.029 583.123 Q131.973 578.516 131.973 569.79 Q131.973 561.04 135.029 556.456 Q138.107 551.85 143.918 551.85 Z\" fill=\"#000000\" fill-rule=\"evenodd\" fill-opacity=\"1\" /><path clip-path=\"url(#clip6800)\" d=\"M 0 0 M170.931 555.553 Q167.32 555.553 165.492 559.118 Q163.686 562.66 163.686 569.79 Q163.686 576.896 165.492 580.461 Q167.32 584.002 170.931 584.002 Q174.566 584.002 176.371 580.461 Q178.2 576.896 178.2 569.79 Q178.2 562.66 176.371 559.118 Q174.566 555.553 170.931 555.553 M170.931 551.85 Q176.742 551.85 179.797 556.456 Q182.876 561.04 182.876 569.79 Q182.876 578.516 179.797 583.123 Q176.742 587.706 170.931 587.706 Q165.121 587.706 162.043 583.123 Q158.987 578.516 158.987 569.79 Q158.987 561.04 162.043 556.456 Q165.121 551.85 170.931 551.85 Z\" fill=\"#000000\" fill-rule=\"evenodd\" fill-opacity=\"1\" /><path clip-path=\"url(#clip6800)\" d=\"M 0 0 M85.5152 374.537 L101.835 374.537 L101.835 378.473 L79.8902 378.473 L79.8902 374.537 Q82.5522 371.783 87.1355 367.153 Q91.742 362.501 92.9225 361.158 Q95.1679 358.635 96.0475 356.899 Q96.9503 355.139 96.9503 353.45 Q96.9503 350.695 95.0058 348.959 Q93.0846 347.223 89.9827 347.223 Q87.7837 347.223 85.33 347.987 Q82.8994 348.751 80.1217 350.302 L80.1217 345.579 Q82.9457 344.445 85.3994 343.866 Q87.8531 343.288 89.8901 343.288 Q95.2605 343.288 98.4549 345.973 Q101.649 348.658 101.649 353.149 Q101.649 355.278 100.839 357.2 Q100.052 359.098 97.9456 361.69 Q97.3669 362.362 94.2651 365.579 Q91.1633 368.774 85.5152 374.537 Z\" fill=\"#000000\" fill-rule=\"evenodd\" fill-opacity=\"1\" /><path clip-path=\"url(#clip6800)\" d=\"M 0 0 M116.904 346.991 Q113.293 346.991 111.464 350.556 Q109.659 354.098 109.659 361.227 Q109.659 368.334 111.464 371.899 Q113.293 375.44 116.904 375.44 Q120.538 375.44 122.344 371.899 Q124.172 368.334 124.172 361.227 Q124.172 354.098 122.344 350.556 Q120.538 346.991 116.904 346.991 M116.904 343.288 Q122.714 343.288 125.77 347.894 Q128.848 352.477 128.848 361.227 Q128.848 369.954 125.77 374.561 Q122.714 379.144 116.904 379.144 Q111.094 379.144 108.015 374.561 Q104.959 369.954 104.959 361.227 Q104.959 352.477 108.015 347.894 Q111.094 343.288 116.904 343.288 Z\" fill=\"#000000\" fill-rule=\"evenodd\" fill-opacity=\"1\" /><path clip-path=\"url(#clip6800)\" d=\"M 0 0 M143.918 346.991 Q140.307 346.991 138.478 350.556 Q136.672 354.098 136.672 361.227 Q136.672 368.334 138.478 371.899 Q140.307 375.44 143.918 375.44 Q147.552 375.44 149.357 371.899 Q151.186 368.334 151.186 361.227 Q151.186 354.098 149.357 350.556 Q147.552 346.991 143.918 346.991 M143.918 343.288 Q149.728 343.288 152.783 347.894 Q155.862 352.477 155.862 361.227 Q155.862 369.954 152.783 374.561 Q149.728 379.144 143.918 379.144 Q138.107 379.144 135.029 374.561 Q131.973 369.954 131.973 361.227 Q131.973 352.477 135.029 347.894 Q138.107 343.288 143.918 343.288 Z\" fill=\"#000000\" fill-rule=\"evenodd\" fill-opacity=\"1\" /><path clip-path=\"url(#clip6800)\" d=\"M 0 0 M170.931 346.991 Q167.32 346.991 165.492 350.556 Q163.686 354.098 163.686 361.227 Q163.686 368.334 165.492 371.899 Q167.32 375.44 170.931 375.44 Q174.566 375.44 176.371 371.899 Q178.2 368.334 178.2 361.227 Q178.2 354.098 176.371 350.556 Q174.566 346.991 170.931 346.991 M170.931 343.288 Q176.742 343.288 179.797 347.894 Q182.876 352.477 182.876 361.227 Q182.876 369.954 179.797 374.561 Q176.742 379.144 170.931 379.144 Q165.121 379.144 162.043 374.561 Q158.987 369.954 158.987 361.227 Q158.987 352.477 162.043 347.894 Q165.121 343.288 170.931 343.288 Z\" fill=\"#000000\" fill-rule=\"evenodd\" fill-opacity=\"1\" /><path clip-path=\"url(#clip6800)\" d=\"M 0 0 M94.7049 151.276 Q98.0614 151.994 99.9364 154.262 Q101.835 156.531 101.835 159.864 Q101.835 164.98 98.316 167.781 Q94.7975 170.582 88.3161 170.582 Q86.1402 170.582 83.8253 170.142 Q81.5337 169.725 79.08 168.869 L79.08 164.355 Q81.0244 165.489 83.3392 166.068 Q85.654 166.647 88.1772 166.647 Q92.5753 166.647 94.867 164.911 Q97.1818 163.174 97.1818 159.864 Q97.1818 156.809 95.029 155.096 Q92.8994 153.36 89.0799 153.36 L85.0522 153.36 L85.0522 149.517 L89.2651 149.517 Q92.7142 149.517 94.5429 148.151 Q96.3716 146.763 96.3716 144.17 Q96.3716 141.508 94.4734 140.096 Q92.5984 138.661 89.0799 138.661 Q87.1587 138.661 84.9596 139.077 Q82.7605 139.494 80.1217 140.374 L80.1217 136.207 Q82.7837 135.466 85.0985 135.096 Q87.4364 134.726 89.4966 134.726 Q94.8207 134.726 97.9225 137.156 Q101.024 139.563 101.024 143.684 Q101.024 146.554 99.3808 148.545 Q97.7373 150.512 94.7049 151.276 Z\" fill=\"#000000\" fill-rule=\"evenodd\" fill-opacity=\"1\" /><path clip-path=\"url(#clip6800)\" d=\"M 0 0 M116.904 138.429 Q113.293 138.429 111.464 141.994 Q109.659 145.536 109.659 152.665 Q109.659 159.772 111.464 163.336 Q113.293 166.878 116.904 166.878 Q120.538 166.878 122.344 163.336 Q124.172 159.772 124.172 152.665 Q124.172 145.536 122.344 141.994 Q120.538 138.429 116.904 138.429 M116.904 134.726 Q122.714 134.726 125.77 139.332 Q128.848 143.915 128.848 152.665 Q128.848 161.392 125.77 165.999 Q122.714 170.582 116.904 170.582 Q111.094 170.582 108.015 165.999 Q104.959 161.392 104.959 152.665 Q104.959 143.915 108.015 139.332 Q111.094 134.726 116.904 134.726 Z\" fill=\"#000000\" fill-rule=\"evenodd\" fill-opacity=\"1\" /><path clip-path=\"url(#clip6800)\" d=\"M 0 0 M143.918 138.429 Q140.307 138.429 138.478 141.994 Q136.672 145.536 136.672 152.665 Q136.672 159.772 138.478 163.336 Q140.307 166.878 143.918 166.878 Q147.552 166.878 149.357 163.336 Q151.186 159.772 151.186 152.665 Q151.186 145.536 149.357 141.994 Q147.552 138.429 143.918 138.429 M143.918 134.726 Q149.728 134.726 152.783 139.332 Q155.862 143.915 155.862 152.665 Q155.862 161.392 152.783 165.999 Q149.728 170.582 143.918 170.582 Q138.107 170.582 135.029 165.999 Q131.973 161.392 131.973 152.665 Q131.973 143.915 135.029 139.332 Q138.107 134.726 143.918 134.726 Z\" fill=\"#000000\" fill-rule=\"evenodd\" fill-opacity=\"1\" /><path clip-path=\"url(#clip6800)\" d=\"M 0 0 M170.931 138.429 Q167.32 138.429 165.492 141.994 Q163.686 145.536 163.686 152.665 Q163.686 159.772 165.492 163.336 Q167.32 166.878 170.931 166.878 Q174.566 166.878 176.371 163.336 Q178.2 159.772 178.2 152.665 Q178.2 145.536 176.371 141.994 Q174.566 138.429 170.931 138.429 M170.931 134.726 Q176.742 134.726 179.797 139.332 Q182.876 143.915 182.876 152.665 Q182.876 161.392 179.797 165.999 Q176.742 170.582 170.931 170.582 Q165.121 170.582 162.043 165.999 Q158.987 161.392 158.987 152.665 Q158.987 143.915 162.043 139.332 Q165.121 134.726 170.931 134.726 Z\" fill=\"#000000\" fill-rule=\"evenodd\" fill-opacity=\"1\" /><polyline clip-path=\"url(#clip6802)\" style=\"stroke:#009af9; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
|
||
" 267.608,1445.72 470.05,998.35 672.491,830.457 874.933,784.365 1077.37,777.483 1279.82,777.274 1482.26,776.231 1684.7,766.846 1887.14,716.583 2089.58,542.85 \n",
|
||
" 2292.02,87.9763 \n",
|
||
" \"/>\n",
|
||
"</svg>\n"
|
||
]
|
||
},
|
||
"execution_count": 3,
|
||
"metadata": {},
|
||
"output_type": "execute_result"
|
||
}
|
||
],
|
||
"source": [
|
||
"using Plots\n",
|
||
"gr()\n",
|
||
"\n",
|
||
"functionvalues = Array{Int64,2}(undef,11,2)\n",
|
||
"index = 1\n",
|
||
"for x = -5:5\n",
|
||
" functionvalues[index,1] = x\n",
|
||
" functionvalues[index,2] = y(x)\n",
|
||
" index = index + 1\n",
|
||
"end\n",
|
||
"\n",
|
||
"plot(functionvalues[:,1],functionvalues[:,2],label=false)"
|
||
]
|
||
},
|
||
{
|
||
"cell_type": "code",
|
||
"execution_count": null,
|
||
"metadata": {},
|
||
"outputs": [],
|
||
"source": []
|
||
}
|
||
],
|
||
"metadata": {
|
||
"kernelspec": {
|
||
"display_name": "Julia 1.2.0",
|
||
"language": "julia",
|
||
"name": "julia-1.2"
|
||
},
|
||
"language_info": {
|
||
"file_extension": ".jl",
|
||
"mimetype": "application/julia",
|
||
"name": "julia",
|
||
"version": "1.2.0"
|
||
}
|
||
},
|
||
"nbformat": 4,
|
||
"nbformat_minor": 4
|
||
}
|