{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# Charging and Discharging a Capacitor\n", "Parameter | Name | Dimension | Description\n", ":--- | :--- | :--- | :---\n", "R | Resistance | Ohm [$\\Omega$] | The voltage to current ratio of the resistor\n", "C | Capacitance | Farad [F] | The ratio of electric charge stored on any one of the plates of capacitor to potential difference between the plates." ] }, { "cell_type": "code", "execution_count": 4, "metadata": { "pycharm": { "is_executing": false, "name": "#%%\n" } }, "outputs": [ { "data": { "application/vnd.jupyter.widget-view+json": { "model_id": "ef5594d2ccd64c48b2933bfd0714b03c", "version_major": 2, "version_minor": 0 }, "text/plain": [ "interactive(children=(FloatSlider(value=2.5000000000000004, description='R', max=5.0, min=0.1), FloatSlider(va…" ] }, "metadata": {}, "output_type": "display_data" }, { "data": { "text/plain": [ "" ] }, "execution_count": 4, "metadata": {}, "output_type": "execute_result" } ], "source": [ "from RLC_source import *\n", "\n", "interact(plot_func_1, R=(.1, 5, .1), C=(.1, 5, .1))" ] } ], "metadata": { "kernelspec": { "display_name": "Python 3", "language": "python", "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.6.9" }, "pycharm": { "stem_cell": { "cell_type": "raw", "metadata": { "collapsed": false }, "source": [] } } }, "nbformat": 4, "nbformat_minor": 4 }