{ "cells": [ { "cell_type": "code", "execution_count": 1, "id": "eb91cfae-b00d-4938-805a-7c30f6e254b9", "metadata": {}, "outputs": [], "source": [ "from sympy import init_printing\n", "init_printing()" ] }, { "cell_type": "code", "execution_count": 2, "id": "01e3edf1-3746-4893-9f83-9194f89184b6", "metadata": {}, "outputs": [], "source": [ "from IPython.display import Image" ] }, { "cell_type": "code", "execution_count": 3, "id": "a917cdd0-e746-4742-b1af-d1a87fb90e70", "metadata": {}, "outputs": [], "source": [ "from sympy import I, re, im, symbols, Function" ] }, { "cell_type": "code", "execution_count": 4, "id": "a086b0e6-9e9b-42f3-86e6-fbafcb597caf", "metadata": {}, "outputs": [ { "data": { "text/html": [ "" ], "text/plain": [ "" ] }, "execution_count": 4, "metadata": {}, "output_type": "execute_result" } ], "source": [ "Image(url='https://images.kiwiheretic.xyz/RC-filter0.jpg', width=600)" ] }, { "cell_type": "code", "execution_count": 5, "id": "7c422aa3-922a-401a-820f-0afa46f7d62c", "metadata": {}, "outputs": [], "source": [ "V, C, R, w = symbols(\"V C R omega\", real=True, positive=True)" ] }, { "cell_type": "code", "execution_count": null, "id": "53ec065c-b7df-49b9-9206-b375dac14b16", "metadata": {}, "outputs": [], "source": [] }, { "cell_type": "code", "execution_count": 6, "id": "8ea9df0e-0f65-414e-a034-c63fdf47a256", "metadata": {}, "outputs": [], "source": [ "# Define the voltage across the capacitor as a function of time\n", "VC = Function(\"V_c\")" ] }, { "cell_type": "code", "execution_count": null, "id": "b4cc46cb-9719-4b49-a648-ec2cdd5a93a4", "metadata": {}, "outputs": [], "source": [] } ], "metadata": { "kernelspec": { "display_name": "Python 3 (ipykernel)", "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.8.10" } }, "nbformat": 4, "nbformat_minor": 5 }