|
264 | 264 | "successively for $n=1,2,\\ldots,N_t-1$. This numerical scheme sometimes\n",
|
265 | 265 | "goes under the name\n",
|
266 | 266 | "Stoermer's\n",
|
267 |
| - "method, [Verlet integration](htthinspace .://en.wikipedia.org/wiki/Verlet_integration), or the Leapfrog method\n", |
| 267 | + "method, [Verlet integration](http://en.wikipedia.org/wiki/Verlet_integration), or the Leapfrog method\n", |
268 | 268 | "(one should note\n",
|
269 | 269 | "that Leapfrog is used for many quite different methods for quite\n",
|
270 | 270 | "different differential equations!).\n",
|
|
951 | 951 | "\n",
|
952 | 952 | "### Visualizing convergence rates with slope markers\n",
|
953 | 953 | "\n",
|
954 |
| - "Tony S. Yu has written a script [`plotslopes.py`](htthinspace .://goo.gl/A4Utm7)\n", |
| 954 | + "Tony S. Yu has written a script [`plotslopes.py`](http://goo.gl/A4Utm7)\n", |
955 | 955 | "that is very useful to indicate the slope of a graph, especially\n",
|
956 | 956 | "a graph like $\\ln E = r\\ln \\Delta t + \\ln C$ arising from the model\n",
|
957 | 957 | "$E=C\\Delta t^r$. A copy of the script resides in the \"`src/vib`\": \"${src_vib}\"\n",
|
|
1429 | 1429 | "by the mouse. For example, we can show four periods of several signals in\n",
|
1430 | 1430 | "several plots and then scroll with the mouse through the rest of the\n",
|
1431 | 1431 | "simulation *simultaneously* in all the plot windows.\n",
|
1432 |
| - "The [Bokeh](htthinspace .://bokeh.pydata.org/en/latest) plotting library offers such tools, but the plots must be displayed in\n", |
| 1432 | + "The [Bokeh](http://bokeh.pydata.org/en/latest) plotting library offers such tools, but the plots must be displayed in\n", |
1433 | 1433 | "a web browser. The documentation of Bokeh is excellent, so here we just\n",
|
1434 | 1434 | "show how the library can be used to compare a set of $u$ curves corresponding\n",
|
1435 | 1435 | "to long time simulations. (By the way, the guidance to correct\n",
|
1436 | 1436 | "pronunciation of Bokeh in\n",
|
1437 |
| - "the [documentation](htthinspace .://bokeh.pydata.org/en/0.10.0/docs/faq.html#how-do-you-pronounce-bokeh) and on [Wikipedia](https://en.wikipedia.org/wiki/Bokeh) is not directly compatible with a [YouTube video](https://www.youtube.com/watch?v=OR8HSHevQTM)...).\n", |
| 1437 | + "the [documentation](http://bokeh.pydata.org/en/0.10.0/docs/faq.html#how-do-you-pronounce-bokeh) and on [Wikipedia](https://en.wikipedia.org/wiki/Bokeh) is not directly compatible with a [YouTube video](https://www.youtube.com/watch?v=OR8HSHevQTM)...).\n", |
1438 | 1438 | "\n",
|
1439 | 1439 | "Imagine we have performed experiments for a set of $\\Delta t$ values.\n",
|
1440 | 1440 | "We want each curve, together with the exact solution, to appear in\n",
|
|
1965 | 1965 | "source": [
|
1966 | 1966 | "The last line follows from the relation\n",
|
1967 | 1967 | "$\\cos x - 1 = -2\\sin^2(x/2)$ (try `cos(x)-1` in\n",
|
1968 |
| - "[wolframalpha.com](htthinspace .://www.wolframalpha.com) to see the formula).\n", |
| 1968 | + "[wolframalpha.com](http://www.wolframalpha.com) to see the formula).\n", |
1969 | 1969 | "\n",
|
1970 | 1970 | "The scheme ([7](#vib:ode1:step4))\n",
|
1971 | 1971 | "with $u^n=Ie^{i\\tilde\\omega\\Delta t\\, n}$ inserted now gives"
|
|
2301 | 2301 | "cell_type": "markdown",
|
2302 | 2302 | "metadata": {},
|
2303 | 2303 | "source": [
|
2304 |
| - "by L'Hopital's rule. This result could also been computed [WolframAlpha](htthinspace .://www.wolframalpha.com/input/?i=%282%2Fx%29*asin%28w*x%2F2%29+as+x-%3E0), or\n", |
| 2304 | + "by L'Hopital's rule. This result could also been computed [WolframAlpha](http://www.wolframalpha.com/input/?i=%282%2Fx%29*asin%28w*x%2F2%29+as+x-%3E0), or\n", |
2305 | 2305 | "we could use the limit functionality in `sympy`:"
|
2306 | 2306 | ]
|
2307 | 2307 | },
|
|
2498 | 2498 | "([18](#vib:ode1:tildeomega)) may be larger than 1, i.e., $\\omega\\Delta\n",
|
2499 | 2499 | "t/2 > 1$. In this case, $\\sin^{-1}(\\omega\\Delta t/2)$ has a complex\n",
|
2500 | 2500 | "value and therefore $\\tilde\\omega$ becomes complex. Type, for\n",
|
2501 |
| - "example, `asin(x)` in [wolframalpha.com](htthinspace .://www.wolframalpha.com) to see basic properties of $\\sin^{-1}\n", |
| 2501 | + "example, `asin(x)` in [wolframalpha.com](http://www.wolframalpha.com) to see basic properties of $\\sin^{-1}\n", |
2502 | 2502 | "(x)$).\n",
|
2503 | 2503 | "\n",
|
2504 | 2504 | "A complex $\\tilde\\omega$ can be written $\\tilde\\omega = \\tilde\\omega_r\n",
|
|
4320 | 4320 | "The scheme\n",
|
4321 | 4321 | "([54](#vib:model2x2:EulerCromer:veq1b))-([55](#vib:model2x2:EulerCromer:ueq1b))\n",
|
4322 | 4322 | "goes under several names: forward-backward scheme, [semi-implicit\n",
|
4323 |
| - "Euler method](htthinspace .://en.wikipedia.org/wiki/Semi-implicit_Euler_method),\n", |
| 4323 | + "Euler method](http://en.wikipedia.org/wiki/Semi-implicit_Euler_method),\n", |
4324 | 4324 | "semi-explicit Euler, symplectic Euler,\n",
|
4325 | 4325 | "Newton-Stoermer-Verlet,\n",
|
4326 | 4326 | "and Euler-Cromer. We shall stick to the latter name.\n",
|
|
0 commit comments