diff options
author | hardythe1 | 2015-04-07 15:58:05 +0530 |
---|---|---|
committer | hardythe1 | 2015-04-07 15:58:05 +0530 |
commit | 92cca121f959c6616e3da431c1e2d23c4fa5e886 (patch) | |
tree | 205e68d0ce598ac5caca7de839a2934d746cce86 /Electronic_Devices_And_Circuits/EDC_ch_4_1.ipynb | |
parent | b14c13fcc6bb6d01c468805d612acb353ec168ac (diff) | |
download | Python-Textbook-Companions-92cca121f959c6616e3da431c1e2d23c4fa5e886.tar.gz Python-Textbook-Companions-92cca121f959c6616e3da431c1e2d23c4fa5e886.tar.bz2 Python-Textbook-Companions-92cca121f959c6616e3da431c1e2d23c4fa5e886.zip |
added books
Diffstat (limited to 'Electronic_Devices_And_Circuits/EDC_ch_4_1.ipynb')
-rwxr-xr-x | Electronic_Devices_And_Circuits/EDC_ch_4_1.ipynb | 100 |
1 files changed, 100 insertions, 0 deletions
diff --git a/Electronic_Devices_And_Circuits/EDC_ch_4_1.ipynb b/Electronic_Devices_And_Circuits/EDC_ch_4_1.ipynb new file mode 100755 index 00000000..b06db7ad --- /dev/null +++ b/Electronic_Devices_And_Circuits/EDC_ch_4_1.ipynb @@ -0,0 +1,100 @@ +{
+ "metadata": {
+ "name": ""
+ },
+ "nbformat": 3,
+ "nbformat_minor": 0,
+ "worksheets": [
+ {
+ "cells": [
+ {
+ "cell_type": "heading",
+ "level": 1,
+ "metadata": {},
+ "source": [
+ "Chapter No.4: Frequency Response"
+ ]
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "example 4.1, Page No. 170"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#3dB Frequency\n",
+ "import math\n",
+ "\n",
+ "#variable declaration\n",
+ "Omega_Z1=0.0 #in Radian/sec\n",
+ "Omega_Z2=10.0 #in Radian/sec\n",
+ "Omega_P1=100.0 #in Radian/sec\n",
+ "Omega_P2=25.0 #in Radian/sec\n",
+ "\n",
+ "#calculations\n",
+ "WL=math.sqrt(Omega_P1**2+Omega_P2**2-2*Omega_Z1**2-2*Omega_Z2**2) #in radian/sec\n",
+ "\n",
+ "#Result\n",
+ "print(\"Approximate value of lower 3dB Frequency in radian/sec : %.1f\"%WL)"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Approximate value of lower 3dB Frequency in radian/sec : 102.1\n"
+ ]
+ }
+ ],
+ "prompt_number": 4
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "example 4.2, Page No. 171"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Upper 3dB Frequency\n",
+ "import math\n",
+ "#variable declaration\n",
+ "Omega_P1=1.0*10**4 #in Radian/sec\n",
+ "Omega_P2=2.0*10**4 #in Radian/sec\n",
+ "Omega_Z1=1.0*10**5 #in Radian/sec\n",
+ "\n",
+ "#calculations\n",
+ "omegaH=1/math.sqrt(1/Omega_P1**2+1/Omega_P2**2-2/Omega_Z1**2) #in radian/sec\n",
+ "\n",
+ "#result\n",
+ "print(\"Approximate value of lower 3dB Frequency in radian/sec : %.0f \"%(math.ceil(omegaH)))"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Approximate value of lower 3dB Frequency in radian/sec : 9017 \n"
+ ]
+ }
+ ],
+ "prompt_number": 8
+ }
+ ],
+ "metadata": {}
+ }
+ ]
+}
\ No newline at end of file |