julia_coursera/02_Coursera_3.ipynb

352 lines
50 KiB
Plaintext
Raw Permalink Normal View History

2020-05-22 19:37:10 +00:00
{
"cells": [
{
"cell_type": "code",
"execution_count": 1,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"4-element Array{Any,1}:\n",
" #undef\n",
" #undef\n",
" #undef\n",
" #undef"
]
},
"execution_count": 1,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"tempvar = Array{Any}(undef,4)"
]
},
{
"cell_type": "code",
"execution_count": 2,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"4-element Array{Any,1}:\n",
" \"Hello...word\"\n",
" \"Hello...word\"\n",
" \"Hello...word\"\n",
" \"Hello...word\""
]
},
"execution_count": 2,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"fill!(tempvar, \"Hello...word\")"
]
},
{
"cell_type": "code",
"execution_count": 3,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"4-element Array{Any,1}:\n",
" \"Hello...word\"\n",
" \"Hello...word\"\n",
" \"Hello...word\"\n",
" \"Hello...word\""
]
},
"execution_count": 3,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"tempvar"
]
},
{
"cell_type": "code",
"execution_count": 4,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"4-element Array{Any,1}:\n",
" 777\n",
" 777\n",
" 777\n",
" 777"
]
},
"execution_count": 4,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"fill!(tempvar,777)"
]
},
{
"cell_type": "code",
2020-05-23 01:29:38 +00:00
"execution_count": 5,
2020-05-22 19:37:10 +00:00
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"approxcos (generic function with 1 method)"
]
},
2020-05-23 01:29:38 +00:00
"execution_count": 5,
2020-05-22 19:37:10 +00:00
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"function approxcos(x)\n",
" outval = Array{Any}(undef,size(x))\n",
" \n",
" ii=0\n",
" for aa in x\n",
" y = 1 - aa^2/2 + aa^4/24 - aa^6/720 + aa^8/(56*720)\n",
" ii = ii + 1\n",
" outval[ii] = y\n",
" end\n",
" return outval\n",
"end"
]
},
{
"cell_type": "code",
2020-05-23 01:29:38 +00:00
"execution_count": 6,
2020-05-22 19:37:10 +00:00
"metadata": {},
"outputs": [],
"source": [
"x1 = 4*rand(10)\n",
"\n",
"x2 = range(0., stop=4., step=0.01)\n",
"\n",
"y1 = approxcos(x1)\n",
"y2 = cos.(x2);"
]
},
{
"cell_type": "code",
2020-05-23 01:29:38 +00:00
"execution_count": 7,
2020-05-22 19:37:10 +00:00
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"Plots.GRBackend()"
]
},
2020-05-23 01:29:38 +00:00
"execution_count": 7,
2020-05-22 19:37:10 +00:00
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"using Plots\n",
"gr()"
]
},
{
"cell_type": "code",
2020-05-23 01:29:38 +00:00
"execution_count": 8,
2020-05-22 19:37:10 +00:00
"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",
2020-05-23 01:29:38 +00:00
" <clipPath id=\"clip7400\">\n",
2020-05-22 19:37:10 +00:00
" <rect x=\"0\" y=\"0\" width=\"2400\" height=\"1600\"/>\n",
" </clipPath>\n",
"</defs>\n",
2020-05-23 01:29:38 +00:00
"<path clip-path=\"url(#clip7400)\" d=\"\n",
2020-05-22 19:37:10 +00:00
"M0 1600 L2400 1600 L2400 0 L0 0 Z\n",
" \" fill=\"#ffffff\" fill-rule=\"evenodd\" fill-opacity=\"1\"/>\n",
"<defs>\n",
2020-05-23 01:29:38 +00:00
" <clipPath id=\"clip7401\">\n",
2020-05-22 19:37:10 +00:00
" <rect x=\"480\" y=\"0\" width=\"1681\" height=\"1600\"/>\n",
" </clipPath>\n",
"</defs>\n",
2020-05-23 01:29:38 +00:00
"<path clip-path=\"url(#clip7400)\" d=\"\n",
2020-05-22 19:37:10 +00:00
"M162.455 1486.45 L2352.76 1486.45 L2352.76 123.472 L162.455 123.472 Z\n",
" \" fill=\"#ffffff\" fill-rule=\"evenodd\" fill-opacity=\"1\"/>\n",
"<defs>\n",
2020-05-23 01:29:38 +00:00
" <clipPath id=\"clip7402\">\n",
2020-05-22 19:37:10 +00:00
" <rect x=\"162\" y=\"123\" width=\"2191\" height=\"1364\"/>\n",
" </clipPath>\n",
"</defs>\n",
2020-05-23 01:29:38 +00:00
"<polyline clip-path=\"url(#clip7402)\" style=\"stroke:#000000; stroke-width:2; stroke-opacity:0.1; fill:none\" points=\"\n",
2020-05-22 19:37:10 +00:00
" 224.444,1486.45 224.444,123.472 \n",
" \"/>\n",
2020-05-23 01:29:38 +00:00
"<polyline clip-path=\"url(#clip7402)\" style=\"stroke:#000000; stroke-width:2; stroke-opacity:0.1; fill:none\" points=\"\n",
2020-05-22 19:37:10 +00:00
" 741.025,1486.45 741.025,123.472 \n",
" \"/>\n",
2020-05-23 01:29:38 +00:00
"<polyline clip-path=\"url(#clip7402)\" style=\"stroke:#000000; stroke-width:2; stroke-opacity:0.1; fill:none\" points=\"\n",
2020-05-22 19:37:10 +00:00
" 1257.61,1486.45 1257.61,123.472 \n",
" \"/>\n",
2020-05-23 01:29:38 +00:00
"<polyline clip-path=\"url(#clip7402)\" style=\"stroke:#000000; stroke-width:2; stroke-opacity:0.1; fill:none\" points=\"\n",
2020-05-22 19:37:10 +00:00
" 1774.19,1486.45 1774.19,123.472 \n",
" \"/>\n",
2020-05-23 01:29:38 +00:00
"<polyline clip-path=\"url(#clip7402)\" style=\"stroke:#000000; stroke-width:2; stroke-opacity:0.1; fill:none\" points=\"\n",
2020-05-22 19:37:10 +00:00
" 2290.77,1486.45 2290.77,123.472 \n",
" \"/>\n",
2020-05-23 01:29:38 +00:00
"<polyline clip-path=\"url(#clip7402)\" style=\"stroke:#000000; stroke-width:2; stroke-opacity:0.1; fill:none\" points=\"\n",
2020-05-22 19:37:10 +00:00
" 162.455,1447.87 2352.76,1447.87 \n",
" \"/>\n",
2020-05-23 01:29:38 +00:00
"<polyline clip-path=\"url(#clip7402)\" style=\"stroke:#000000; stroke-width:2; stroke-opacity:0.1; fill:none\" points=\"\n",
2020-05-22 19:37:10 +00:00
" 162.455,1126.42 2352.76,1126.42 \n",
" \"/>\n",
2020-05-23 01:29:38 +00:00
"<polyline clip-path=\"url(#clip7402)\" style=\"stroke:#000000; stroke-width:2; stroke-opacity:0.1; fill:none\" points=\"\n",
2020-05-22 19:37:10 +00:00
" 162.455,804.96 2352.76,804.96 \n",
" \"/>\n",
2020-05-23 01:29:38 +00:00
"<polyline clip-path=\"url(#clip7402)\" style=\"stroke:#000000; stroke-width:2; stroke-opacity:0.1; fill:none\" points=\"\n",
2020-05-22 19:37:10 +00:00
" 162.455,483.504 2352.76,483.504 \n",
" \"/>\n",
2020-05-23 01:29:38 +00:00
"<polyline clip-path=\"url(#clip7402)\" style=\"stroke:#000000; stroke-width:2; stroke-opacity:0.1; fill:none\" points=\"\n",
2020-05-22 19:37:10 +00:00
" 162.455,162.047 2352.76,162.047 \n",
" \"/>\n",
2020-05-23 01:29:38 +00:00
"<polyline clip-path=\"url(#clip7400)\" style=\"stroke:#000000; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
2020-05-22 19:37:10 +00:00
" 162.455,1486.45 2352.76,1486.45 \n",
" \"/>\n",
2020-05-23 01:29:38 +00:00
"<polyline clip-path=\"url(#clip7400)\" style=\"stroke:#000000; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
2020-05-22 19:37:10 +00:00
" 162.455,1486.45 162.455,123.472 \n",
" \"/>\n",
2020-05-23 01:29:38 +00:00
"<polyline clip-path=\"url(#clip7400)\" style=\"stroke:#000000; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
2020-05-22 19:37:10 +00:00
" 224.444,1486.45 224.444,1470.09 \n",
" \"/>\n",
2020-05-23 01:29:38 +00:00
"<polyline clip-path=\"url(#clip7400)\" style=\"stroke:#000000; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
2020-05-22 19:37:10 +00:00
" 741.025,1486.45 741.025,1470.09 \n",
" \"/>\n",
2020-05-23 01:29:38 +00:00
"<polyline clip-path=\"url(#clip7400)\" style=\"stroke:#000000; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
2020-05-22 19:37:10 +00:00
" 1257.61,1486.45 1257.61,1470.09 \n",
" \"/>\n",
2020-05-23 01:29:38 +00:00
"<polyline clip-path=\"url(#clip7400)\" style=\"stroke:#000000; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
2020-05-22 19:37:10 +00:00
" 1774.19,1486.45 1774.19,1470.09 \n",
" \"/>\n",
2020-05-23 01:29:38 +00:00
"<polyline clip-path=\"url(#clip7400)\" style=\"stroke:#000000; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
2020-05-22 19:37:10 +00:00
" 2290.77,1486.45 2290.77,1470.09 \n",
" \"/>\n",
2020-05-23 01:29:38 +00:00
"<polyline clip-path=\"url(#clip7400)\" style=\"stroke:#000000; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
2020-05-22 19:37:10 +00:00
" 162.455,1447.87 188.738,1447.87 \n",
" \"/>\n",
2020-05-23 01:29:38 +00:00
"<polyline clip-path=\"url(#clip7400)\" style=\"stroke:#000000; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
2020-05-22 19:37:10 +00:00
" 162.455,1126.42 188.738,1126.42 \n",
" \"/>\n",
2020-05-23 01:29:38 +00:00
"<polyline clip-path=\"url(#clip7400)\" style=\"stroke:#000000; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
2020-05-22 19:37:10 +00:00
" 162.455,804.96 188.738,804.96 \n",
" \"/>\n",
2020-05-23 01:29:38 +00:00
"<polyline clip-path=\"url(#clip7400)\" style=\"stroke:#000000; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
2020-05-22 19:37:10 +00:00
" 162.455,483.504 188.738,483.504 \n",
" \"/>\n",
2020-05-23 01:29:38 +00:00
"<polyline clip-path=\"url(#clip7400)\" style=\"stroke:#000000; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
2020-05-22 19:37:10 +00:00
" 162.455,162.047 188.738,162.047 \n",
" \"/>\n",
2020-05-23 01:29:38 +00:00
"<path clip-path=\"url(#clip7400)\" d=\"M 0 0 M224.444 1508.44 Q220.833 1508.44 219.005 1512 Q217.199 1515.55 217.199 1522.67 Q217.199 1529.78 219.005 1533.35 Q220.833 1536.89 224.444 1536.89 Q228.079 1536.89 229.884 1533.35 Q231.713 1529.78 231.713 1522.67 Q231.713 1515.55 229.884 1512 Q228.079 1508.44 224.444 1508.44 M224.444 1504.73 Q230.254 1504.73 233.31 1509.34 Q236.389 1513.92 236.389 1522.67 Q236.389 1531.4 233.31 1536.01 Q230.254 1540.59 224.444 1540.59 Q218.634 1540.59 215.556 1536.01 Q212.5 1531.4 212.5 1522.67 Q212.5 1513.92 215.556 1509.34 Q218.634 1504.73 224.444 1504.73 Z\" fill=\"#000000\" fill-rule=\"evenodd\" fill-opacity=\"1\" /><path clip-path=\"url(#clip7400)\" d=\"M 0 0 M731.407 1535.98 L739.046 1535.98 L739.046 1509.62 L730.736 1511.29 L730.736 1507.03 L738.999 1505.36 L743.675 1505.36 L743.675 1535.98 L751.314 1535.98 L751.314 1539.92 L731.407 1539.92 L731.407 1535.98 Z\" fill=\"#000000\" fill-rule=\"evenodd\" fill-opacity=\"1\" /><path clip-path=\"url(#clip7400)\" d=\"M 0 0 M1252.26 1535.98 L1268.58 1535.98 L1268.58 1539.92 L1246.63 1539.92 L1246.63 1535.98 Q1249.3 1533.23 1253.88 1528.6 Q1258.48 1523.95 1259.67 1522.61 Q1261.91 1520.08 1262.79 1518.35 Q1263.69 1516.59 1263.69 1514.9 Q1263.69 1512.14 1261.75 1510.41 Q1259.83 1508.67 1256.73 1508.67 Q1254.53 1508.67 1252.07 1509.43 Q1249.64 1510.2 1246.86 1511.75 L1246.86 1507.03 Q1249.69 1505.89 1252.14 1505.31 Q1254.6 1504.73 1256.63 1504.73 Q1262 1504.73 1265.2 1507.42 Q1268.39 1510.11 1268.39 1514.6 Q1268.39 1516.73 1267.58 1518.65 Q1266.8 1520.54 1264.69 1523.14 Q1264.11 1523.81 1261.01 1527.03 Q1257.91 1530.22 1252.26 1535.98 Z\" fill=\"#000000\" fill-rule=\"evenodd\" fill-opacity=\"1\" /><path clip-path=\"url(#clip7400)\" d=\"M 0 0 M1778.43 1521.29 Q1781.79 1522 1783.66 1524.27 Q1785.56 1526.54 1785.56 1529.87 Q1785.56 1534.99 1782.04 1537.79 Q1778.53 1540.59 1772.04 1540.59 Q1769.87 1540.59 1767.55 1540.15 Q1765.26 1539.73 1762.81 1538.88 L1762.81 1534.36 Q1764.75 1535.5 1767.07 1536.08 Q1769.38 1536.66 1771.91 1536.66 Q1776.3 1536.66 1778.6 1534.92 Q1780.91 1533.18 1780.91 1529.87 Q1780.91 1526.82 1778.76 1525.11 Q1776.63 1523.37 1772.81 1523.37 L1768.78 1523.37 L1768.78 1519.53 L1772.99 1519.53 Q1776.44 1519.53 1778.27 1518.16 Q1780.1 1516.77 1780.1 1514.18 Q1780.1 1511.52 1778.2 1510.11 Q1776.33 1508.67 1772.81 1508.67 Q1770.89 1508.67 1768.69 1509.09 Q1766.49 1509.5 1763.85 1510.38 L1763.85 1506.22 Q1766.51 1505.48 1768.83 1505.11 Q1771.16 1504.73 1773.23 1504.73 Q1778.55 1504.73 1781.65 1507.17 Q1784.75 1509.57 1784.75 1513.69 Q1784.75 1516.56 1783.11 1518.55 Q1781.47 1520.52 1778.43 1521.29 Z\" fill=\"#000000\" fill-rule=\"evenodd\" fill-opacity=\"1\" /><path clip-path=\"url(#clip7400)\" d=\"M 0 0 M2293.78 1509.43 L2281.97 1527.88 L2293.78 1527.88 L2293.78 1509.43 M2292.55 1505.36 L2298.43 1505.36 L2298.43 1527.88 L2303.36 1527.88 L2303.36 1531.77 L2298.43 1531.77 L2298.43 1539.92 L2293.78 1539.92 L2293.78 1531.77 L2278.17 1531.77 L2278.17 1527.26 L2292.55 1505.36 Z\" fill=\"#000000\" fill-rule=\"evenodd\" fill-opacity=\"1\" /><path clip-path=\"url(#clip7400)\" d=\"M 0 0 M63.2236 1450.27 L75.7004 1450.27 L75.7004 1454.07 L63.2236 1454.07 L63.2236 1450.27 Z\" fill=\"#000000\" fill-rule=\"evenodd\" fill-opacity=\"1\" /><path clip-path=\"url(#clip7400)\" d=\"M 0 0 M81.58 1461.22 L89.2188 1461.22 L89.2188 1434.85 L80.9087 1436.52 L80.9087 1432.26 L89.1725 1430.59 L93.8484 1430.59 L93.8484 1461.22 L101.487 1461.22 L101.487 1465.15 L81.58 1465.15 L81.58 1461.22 Z\" fill=\"#000000\" fill-rule=\"evenodd\" fill-opacity=\"1\" /><path clip-path=\"url(#clip7400)\" d=\"M 0 0 M106.557 1459.27 L111.441 1459.27 L111.441 1465.15 L106.557 1465.15 L106.557 1459.27 Z\" fill=\"#000000\" fill-rule=\"evenodd\" fill-opacity=\"1\" /><path clip-path=\"url(#clip7400)\" d=\"M 0 0 M126.51 1433.67 Q122.899 1433.67 121.071 1437.24 Q119.265 1440.78 119.265 1447.91 Q119.265 1455.02 121.071 1458.58 Q122.899 1462.12 126.51 1462.12 Q130.145 1462.12 131.95 1458.58 Q133.779 1455.02 133.779 1447.91 Q133.779 1440.78 131.95 1437.24 Q130.145 1433.67 126.51 1433.67 M1
"<circle clip-path=\"url(#clip7402)\" cx=\"1495.29\" cy=\"1302.9\" r=\"14\" fill=\"#009af9\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip7402)\" cx=\"1339.84\" cy=\"1161.42\" r=\"14\" fill=\"#009af9\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip7402)\" cx=\"757.034\" cy=\"474.523\" r=\"14\" fill=\"#009af9\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip7402)\" cx=\"686.493\" cy=\"402.523\" r=\"14\" fill=\"#009af9\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip7402)\" cx=\"470.923\" cy=\"233.851\" r=\"14\" fill=\"#009af9\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip7402)\" cx=\"1037.03\" cy=\"806.373\" r=\"14\" fill=\"#009af9\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip7402)\" cx=\"1352.27\" cy=\"1174.14\" r=\"14\" fill=\"#009af9\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip7402)\" cx=\"2018.75\" cy=\"1371.39\" r=\"14\" fill=\"#009af9\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip7402)\" cx=\"1852.98\" cy=\"1431.88\" r=\"14\" fill=\"#009af9\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<polyline clip-path=\"url(#clip7402)\" style=\"stroke:#e26f46; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
2020-05-22 19:37:10 +00:00
" 224.444,162.047 229.61,162.079 234.776,162.175 239.942,162.336 245.108,162.561 250.273,162.85 255.439,163.204 260.605,163.621 265.771,164.103 270.937,164.649 \n",
" 276.102,165.259 281.268,165.933 286.434,166.67 291.6,167.472 296.766,168.337 301.931,169.266 307.097,170.259 312.263,171.315 317.429,172.434 322.595,173.617 \n",
" 327.76,174.862 332.926,176.171 338.092,177.543 343.258,178.977 348.424,180.474 353.589,182.034 358.755,183.655 363.921,185.339 369.087,187.085 374.253,188.892 \n",
" 379.418,190.762 384.584,192.692 389.75,194.684 394.916,196.737 400.082,198.851 405.248,201.025 410.413,203.26 415.579,205.555 420.745,207.909 425.911,210.324 \n",
" 431.077,212.798 436.242,215.331 441.408,217.923 446.574,220.574 451.74,223.283 456.906,226.051 462.071,228.876 467.237,231.759 472.403,234.699 477.569,237.697 \n",
" 482.735,240.751 487.9,243.861 493.066,247.028 498.232,250.25 503.398,253.528 508.564,256.861 513.729,260.249 518.895,263.691 524.061,267.187 529.227,270.737 \n",
" 534.393,274.341 539.558,277.998 544.724,281.707 549.89,285.469 555.056,289.282 560.222,293.147 565.387,297.064 570.553,301.031 575.719,305.048 580.885,309.116 \n",
" 586.051,313.233 591.216,317.399 596.382,321.614 601.548,325.878 606.714,330.189 611.88,334.548 617.046,338.954 622.211,343.406 627.377,347.904 632.543,352.449 \n",
" 637.709,357.038 642.875,361.673 648.04,366.351 653.206,371.074 658.372,375.84 663.538,380.648 668.704,385.5 673.869,390.393 679.035,395.327 684.201,400.303 \n",
" 689.367,405.319 694.533,410.375 699.698,415.47 704.864,420.605 710.03,425.778 715.196,430.988 720.362,436.237 725.527,441.522 730.693,446.843 735.859,452.2 \n",
" 741.025,457.593 746.191,463.02 751.356,468.481 756.522,473.976 761.688,479.505 766.854,485.065 772.02,490.658 777.185,496.282 782.351,501.937 787.517,507.622 \n",
" 792.683,513.337 797.849,519.082 803.014,524.854 808.18,530.655 813.346,536.483 818.512,542.338 823.678,548.22 828.843,554.127 834.009,560.059 839.175,566.015 \n",
" 844.341,571.996 849.507,577.999 854.673,584.026 859.838,590.074 865.004,596.144 870.17,602.235 875.336,608.347 880.502,614.477 885.667,620.627 890.833,626.796 \n",
" 895.999,632.982 901.165,639.185 906.331,645.405 911.496,651.641 916.662,657.892 921.828,664.158 926.994,670.438 932.16,676.731 937.325,683.038 942.491,689.356 \n",
" 947.657,695.686 952.823,702.027 957.989,708.378 963.154,714.739 968.32,721.109 973.486,727.488 978.652,733.874 983.818,740.267 988.983,746.666 994.149,753.072 \n",
" 999.315,759.483 1004.48,765.898 1009.65,772.317 1014.81,778.739 1019.98,785.164 1025.14,791.591 1030.31,798.019 1035.48,804.448 1040.64,810.877 1045.81,817.306 \n",
" 1050.97,823.733 1056.14,830.159 1061.3,836.581 1066.47,843.001 1071.64,849.417 1076.8,855.828 1081.97,862.235 1087.13,868.635 1092.3,875.029 1097.47,881.417 \n",
" 1102.63,887.796 1107.8,894.168 1112.96,900.53 1118.13,906.883 1123.29,913.225 1128.46,919.557 1133.63,925.878 1138.79,932.186 1143.96,938.481 1149.12,944.764 \n",
" 1154.29,951.032 1159.46,957.285 1164.62,963.524 1169.79,969.746 1174.95,975.952 1180.12,982.141 1185.28,988.312 1190.45,994.465 1195.62,1000.6 1200.78,1006.71 \n",
" 1205.95,1012.81 1211.11,1018.88 1216.28,1024.93 1221.44,1030.96 1226.61,1036.97 1231.78,1042.95 1236.94,1048.92 1242.11,1054.85 1247.27,1060.76 1252.44,1066.65 \n",
" 1257.61,1072.51 1262.77,1078.34 1267.94,1084.14 1273.1,1089.92 1278.27,1095.67 1283.43,1101.39 1288.6,1107.08 1293.77,1112.74 1298.93,1118.37 1304.1,1123.97 \n",
" 1309.26,1129.53 1314.43,1135.07 1319.59,1140.57 1324.76,1146.03 1329.93,1151.47 1335.09,1156.86 1340.26,1162.23 1345.42,1167.55 1350.59,1172.84 1355.76,1178.1 \n",
" 1360.92,1183.32 1366.09,1188.49 1371.25,1193.64 1376.42,1198.74 1381.58,1203.8 1386.75,1208.82 1391.92,1213.8 1397.08,1218.74 1402.25,1223.64 1407.41,1228.5 \n",
" 1412.58,1233.32 1417.75,1238.09 1422.91,1242.82 1428.08,1247.51 1433.24,1252.15 1438.41,1256.74 1443.57,1261.3 1448.74,1265.8 1453.91,1270.26 1459.07,1274.67 \n",
" 1464.24,1279.04 1469.4,1283.36 1474.57,1287.63 1479.73,1291.85 1484.9,1296.03 1490.07,1300.15 1495.23,1304.23 1500.4,1308.25 1505.56,1312.23 1510.73,1316.15 \n",
" 1515.9,1320.03 1521.06,1323.85 1526.23,1327.62 1531.39,1331.34 1536.56,1335 1541.72,1338.61 1546.89,1342.17 1552.06,1345.68 1557.22,1349.13 1562.39,1352.52 \n",
" 1567.55,1355.87 1572.72,1359.15 1577.89,1362.38 1583.05,1365.56 1588.22,1368.68 1593.38,1371.74 1598.55,1374.75 1603.71,1377.7 1608.88,1380.59 1614.05,1383.42 \n",
" 1619.21,1386.2 1624.38,1388.92 1629.54,1391.58 1634.71,1394.18 1639.87,1396.72 1645.04,1399.21 1650.21,1401.63 1655.37,1404 1660.54,1406.3 1665.7,1408.54 \n",
" 1670.87,1410.73 1676.04,1412.85 1681.2,1414.91 1686.37,1416.92 1691.53,1418.86 1696.7,1420.73 1701.86,1422.55 1707.03,1424.31 1712.2,1426 1717.36,1427.63 \n",
" 1722.53,1429.2 1727.69,1430.71 1732.86,1432.15 1738.03,1433.54 1743.19,1434.85 1748.36,1436.11 1753.52,1437.3 1758.69,1438.43 1763.85,1439.5 1769.02,1440.5 \n",
" 1774.19,1441.44 1779.35,1442.32 1784.52,1443.13 1789.68,1443.87 1794.85,1444.56 1800.01,1445.18 1805.18,1445.74 1810.35,1446.23 1815.51,1446.65 1820.68,1447.02 \n",
" 1825.84,1447.32 1831.01,1447.55 1836.18,1447.72 1841.34,1447.83 1846.51,1447.87 1851.67,1447.85 1856.84,1447.76 1862,1447.61 1867.17,1447.4 1872.34,1447.12 \n",
" 1877.5,1446.78 1882.67,1446.37 1887.83,1445.9 1893,1445.36 1898.17,1444.76 1903.33,1444.1 1908.5,1443.37 1913.66,1442.58 1918.83,1441.73 1923.99,1440.81 \n",
" 1929.16,1439.82 1934.33,1438.78 1939.49,1437.67 1944.66,1436.5 1949.82,1435.26 1954.99,1433.96 1960.15,1432.6 1965.32,1431.18 1970.49,1429.69 1975.65,1428.14 \n",
" 1980.82,1426.53 1985.98,1424.85 1991.15,1423.12 1996.32,1421.32 2001.48,1419.46 2006.65,1417.54 2011.81,1415.56 2016.98,1413.51 2022.14,1411.41 2027.31,1409.25 \n",
" 2032.48,1407.02 2037.64,1404.74 2042.81,1402.39 2047.97,1399.99 2053.14,1397.52 2058.31,1395 2063.47,1392.41 2068.64,1389.77 2073.8,1387.07 2078.97,1384.31 \n",
" 2084.13,1381.5 2089.3,1378.62 2094.47,1375.69 2099.63,1372.71 2104.8,1369.66 2109.96,1366.56 2115.13,1363.4 2120.29,1360.19 2125.46,1356.92 2130.63,1353.59 \n",
" 2135.79,1350.22 2140.96,1346.78 2146.12,1343.29 2151.29,1339.75 2156.46,1336.16 2161.62,1332.51 2166.79,1328.81 2171.95,1325.05 2177.12,1321.25 2182.28,1317.39 \n",
" 2187.45,1313.48 2192.62,1309.53 2197.78,1305.52 2202.95,1301.46 2208.11,1297.35 2213.28,1293.19 2218.44,1288.98 2223.61,1284.73 2228.78,1280.42 2233.94,1276.07 \n",
" 2239.11,1271.67 2244.27,1267.23 2249.44,1262.74 2254.61,1258.2 2259.77,1253.62 2264.94,1248.99 2270.1,1244.32 2275.27,1239.6 2280.43,1234.84 2285.6,1230.04 \n",
" 2290.77,1225.2 \n",
" \"/>\n",
"</svg>\n"
]
},
2020-05-23 01:29:38 +00:00
"execution_count": 8,
2020-05-22 19:37:10 +00:00
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"scatter(x1,y1,legend=:false, title=\"Ilustrating 6-th order approximation to cos\")\n",
"\n",
"plot!(x2,y2)"
]
},
{
"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
}