{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "
Dr. Joshua Vaughan
\n",
"joshua.vaughan@louisiana.edu
\n",
"http://www.ucs.louisiana.edu/~jev9637/
\n",
"\t
\n",
" Figure 1: Increasing the Number of Terms in the Approximation \n",
"
\n",
"\t
\n",
" Figure 2: Interactively Changing the Number of Terms in the Approximation \n",
"
Failed to display Jupyter Widget of type interactive
.
\n", " If you're reading this message in the Jupyter Notebook or JupyterLab Notebook, it may mean\n", " that the widgets JavaScript is still loading. If this message persists, it\n", " likely means that the widgets JavaScript library is either not installed or\n", " not enabled. See the Jupyter\n", " Widgets Documentation for setup instructions.\n", "
\n", "\n", " If you're reading this message in another frontend (for example, a static\n", " rendering on GitHub or NBViewer),\n", " it may mean that your frontend doesn't currently support widgets.\n", "
\n" ], "text/plain": [ "interactive(children=(IntSlider(value=11, description='num_terms', max=22, min=1), Output()), _dom_classes=('widget-interact',))" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "# Call the slider interaction\n", "# num_terms changes in the number of terms in the Fourier Approx, allowing between 1 and 21\n", "interact(plot_approx, num_terms=(1, 22, 1));" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## Response Comparison\n", "Now, let's look at the response of a simple mass-spring-damper system like the one shown in Figure 3.\n", "\n",
"\t
\n",
" Figure 3: A Mass-Spring-Damper System \n",
"
Failed to display Jupyter Widget of type interactive
.
\n", " If you're reading this message in the Jupyter Notebook or JupyterLab Notebook, it may mean\n", " that the widgets JavaScript is still loading. If this message persists, it\n", " likely means that the widgets JavaScript library is either not installed or\n", " not enabled. See the Jupyter\n", " Widgets Documentation for setup instructions.\n", "
\n", "\n", " If you're reading this message in another frontend (for example, a static\n", " rendering on GitHub or NBViewer),\n", " it may mean that your frontend doesn't currently support widgets.\n", "
\n" ], "text/plain": [ "interactive(children=(IntSlider(value=11, description='num_terms', max=22, min=1), Output()), _dom_classes=('widget-interact',))" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "# Call the slider interaction\n", "# num_terms changes in the number of terms in the Fourier Approx, allowing between 1 and 22\n", "interact(plot_response, num_terms=(1,22,1));" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "