diff options
11 files changed, 3933 insertions, 0 deletions
diff --git a/Engineering_Physics_by_Prabir_K_Basu_&_Hrishikesh_Dhasmana/Chapter1.ipynb b/Engineering_Physics_by_Prabir_K_Basu_&_Hrishikesh_Dhasmana/Chapter1.ipynb new file mode 100644 index 00000000..3f776b26 --- /dev/null +++ b/Engineering_Physics_by_Prabir_K_Basu_&_Hrishikesh_Dhasmana/Chapter1.ipynb @@ -0,0 +1,1324 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Chapter 1 : Interference" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 1 , Page number 241" + ] + }, + { + "cell_type": "code", + "execution_count": 1, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The Fringe width in Youngs Double Slit Experiment is Beta= 0.5890 *10**-3 m\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration\n", + "D=0.5 #Distance from Screen\n", + "d=0.5 #Distance between parallel slits\n", + "lambdaa=5890 #Wavelength\n", + "\n", + "#Calculations\n", + "Beta=(D*lambdaa)/(d)/10**4\n", + "\n", + "#Result\n", + "print\"The Fringe width in Youngs Double Slit Experiment is Beta= %1.4f\" %Beta,\"*10**-3 m\"\n", + "\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 2 , Page number 241" + ] + }, + { + "cell_type": "code", + "execution_count": 2, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The Double slit separation 2d= 5.1 mu m\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration\n", + "D=2 #Distance from screen\n", + "lambdaa=5100 #Wavelength\n", + "Beta=0.02 #Fringe Width\n", + "x=10 #No. of fringes\n", + "\n", + "\n", + "#Calculations\n", + "d=(x*D*lambdaa)/Beta/10**6\n", + "\n", + "#Result\n", + "print\"The Double slit separation 2d=\",d,\"mu m\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 3 , Page number 241" + ] + }, + { + "cell_type": "code", + "execution_count": 3, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The Wavelength lamda=0.5890 *10**-6 m\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration\n", + "D=1 #Distance from screen\n", + "Beta=0.31*10**-3 #Fringe Width\n", + "d=1.9*10**-3 #Slit separation\n", + "\n", + "\n", + "#Calculations\n", + "lambdaa=(Beta*d*10**6)/D\n", + "\n", + "#Result\n", + "print\"The Wavelength lamda=%0.4f\"%lambdaa,\"*10**-6 m\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 4 , Page number 242" + ] + }, + { + "cell_type": "code", + "execution_count": 4, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The position of the 10th fringe is 1.178 *10**-4 m\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration\n", + "D=0.04 #Distance from screen\n", + "Lambdaa=5890*10**-10 #Wavelength\n", + "d=2*10**-3 #Slit separation\n", + "n=10 #No. of fringes\n", + "\n", + "\n", + "#Calculations\n", + "x10=(n*D*lambdaa*10**-2)/d\n", + "\n", + "#Result\n", + "print\"The position of the 10th fringe is\",x10,\"*10**-4 m\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 5 , Page number 242" + ] + }, + { + "cell_type": "code", + "execution_count": 5, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The position of the 10th fringe is 5 *10**-4 m\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration\n", + "D=0.8 #Distance from screen\n", + "Lambdaa=5890*10**-10 #Wavelength\n", + "Beta=9.424*10**-4 #Fringe Width\n", + "\n", + "\n", + "#Calculations\n", + "d=(D*lambdaa*10**-2)/Beta\n", + "\n", + "#Result\n", + "print\"The position of the 10th fringe is %i\"%d,\"*10**-4 m\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 6 , Page number 242" + ] + }, + { + "cell_type": "code", + "execution_count": 6, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The Fringe width observed at a distance of 1m from BP is 37.2 *10**-5 m\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration\n", + "D=1.1 #Distance from screen\n", + "Lambdaa=5900*10**-10 #Wavelength\n", + "d=0.00174 #Fringe separation\n", + "\n", + "\n", + "#Calculations\n", + "Beta=(D*lambdaa*10**-1)/d\n", + "\n", + "#Result\n", + "print\"The Fringe width observed at a distance of 1m from BP is %1.1f\"%Beta,\"*10**-5 m\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 7 , Page number 243" + ] + }, + { + "cell_type": "code", + "execution_count": 7, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The Angle of prism at the vertex is is 177 deg 17.8 min\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration\n", + "D=2 #Distance from screen\n", + "Lambdaa=5890*10**-10 #Wavelength\n", + "mu=1.5 #refractive index of glass\n", + "a=0.25 #distance from slit\n", + "Beta=0.2*10**-3 #Fringe width\n", + "\n", + "\n", + "#Calculations\n", + "alpha=(D*lambdaa*180*10**-6)/(2*a*(mu-1)*Beta*3.14)\n", + "A=(180-2*(round(alpha,2)))\n", + "\n", + "#Result\n", + "print\"The Angle of prism at the vertex is is %i\"%A,\"deg 17.8 min\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 8 , Page number 243" + ] + }, + { + "cell_type": "code", + "execution_count": 8, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The Wavelength is 5872.5 Angstrom\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration\n", + "D=1 #Distance from screen\n", + "mu=1.5 #refractive index of glass\n", + "a=0.5 #distance from slit\n", + "Beta=0.0135*10**-2 #Fringe width\n", + "alpha=0.0087 #angleof prism\n", + "\n", + "\n", + "#Calculations\n", + "lambdaa=(Beta*2*a*(mu-1)*alpha*10**10)/D\n", + "\n", + "#Result\n", + "print\"The Wavelength is\",lambdaa,\"Angstrom\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 9 , Page number 244" + ] + }, + { + "cell_type": "code", + "execution_count": 9, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The fringe width would become 0.116 mm\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration\n", + "d=0.75 #slit separation\n", + "Beta=0.087*10**-3 #Fringe width\n", + "\n", + "\n", + "#Calculations\n", + "Beta2=Beta*10**3/d\n", + "\n", + "#Result\n", + "print\"The fringe width would become \",Beta2,\"mm\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 10 , Page number 245" + ] + }, + { + "cell_type": "code", + "execution_count": 10, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The wavelength is 5875 Angstrom\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration\n", + "d=7.5*10**-4 #slit separation\n", + "Beta=0.094*10**-2 #Fringe width\n", + "D=1.2 #Distance from Screen\n", + "\n", + "\n", + "#Calculations\n", + "lambdaa=(Beta*d*10**10)/D\n", + "\n", + "#Result\n", + "print\"The wavelength is %i\"%lambdaa,\"Angstrom\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 11 , Page number 245" + ] + }, + { + "cell_type": "code", + "execution_count": 11, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The Fringe width is 1.625 *10**-4 m\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration\n", + "d=3.6125*10**-3 #slit separation\n", + "D=1 #Distance from Screen\n", + "lambdaa=5870*10**-10 #Wavelength\n", + "\n", + "\n", + "#Calculations\n", + "Beta=(D*lambdaa*10**4)/d\n", + "\n", + "#Result\n", + "print\"The Fringe width is\",round(Beta,3),\"*10**-4 m\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 12 , Page number 246" + ] + }, + { + "cell_type": "code", + "execution_count": 12, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The wavelength is 5850 *10**-10 m\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration\n", + "d=0.3*10**-2 #slit separation\n", + "D=1 #Distance from Screen\n", + "Beta=0.0195*10**-2 #Wavelength\n", + "\n", + "\n", + "#Calculations\n", + "lambdaa=(Beta*d*10**10)/D\n", + "\n", + "#Result\n", + "print\"The wavelength is %i\"%lambdaa,\"*10**-10 m\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 13 , Page number 246" + ] + }, + { + "cell_type": "code", + "execution_count": 13, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The number of fringes would be 67\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration\n", + "n1=62 #fringes\n", + "lambdaa1=5893*10**-10 #Wavelength 1\n", + "lambdaa2=5461*10**-10 #Wavelength 2\n", + "\n", + "\n", + "#Calculations\n", + "n2=(n1*lambdaa1)/lambdaa2\n", + "\n", + "#Result\n", + "print\"The number of fringes would be %i\"%round(n2)" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 14 , Page number 247" + ] + }, + { + "cell_type": "code", + "execution_count": 14, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The refractive index is 1.52\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration\n", + "lambdaa=5.46*10**-7 #Wavelength\n", + "t=6.3*10**-6 #thickness\n", + "\n", + "#Calculations\n", + "mu=((6*lambdaa)/t)+1\n", + "\n", + "#Result\n", + "print\"The refractive index is \",mu" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 15 , Page number 247" + ] + }, + { + "cell_type": "code", + "execution_count": 15, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The refractive index is 6.71 mu m\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration\n", + "s=2.143*10**-3\n", + "mu=1.542 #refractive index\n", + "lambdaa=5893*10**-10 #Wavelength\n", + "Beta=0.347*10**-3\n", + "\n", + "#Calculations\n", + "t=(s*lambdaa*10**6)/(Beta*(mu-1))\n", + "\n", + "#Result\n", + "print\"The refractive index is \",round(t,2),\"mu m\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 16 , Page number 248" + ] + }, + { + "cell_type": "code", + "execution_count": 16, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The number of dark bands seen betwween 4000 A and 5000A is 12\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration\n", + "mu=1.4 #Refractive index\n", + "cosr=0.8631\n", + "t=0.01*10**-3 #thickness\n", + "lambda1=4000*10**-10 #Wavelength 1\n", + "lambda2=5000*10**-10 #Wavelength 2\n", + "\n", + "\n", + "#Calculations\n", + "n1=(2*mu*t*cosr)/lambda1\n", + "n2=(2*mu*t*cosr)/lambda2\n", + "deln=round(n1)-round(n2)\n", + "\n", + "#Result\n", + "print\"The number of dark bands seen betwween 4000 A and 5000A is %i\"%deln" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 17 , Page number 249" + ] + }, + { + "cell_type": "code", + "execution_count": 17, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The Thickness is 0.0017 cm\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration\n", + "mu=1.33 #Refractive index\n", + "cosr=0.7989\n", + "lambda1=6.1*10**-5 #Wavelength 1\n", + "lambda2=6*10**-5 #Wavelength 2\n", + "\n", + "\n", + "#Calculations\n", + "t=(lambda1*lambda2*10**-5)/(2*mu*cosr*(lambda1-lambda2)*10**-5)\n", + "\n", + "#Result\n", + "print\"The Thickness is \",round(t,4),\" cm\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 18 , Page number 249" + ] + }, + { + "cell_type": "code", + "execution_count": 18, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The Thickness is 1.667 mu m\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration\n", + "n=8 #number of fringes\n", + "lambdaa=5893*10**-10 #Wavelength\n", + "mu=1.5 #Refractive index\n", + "cosr=(2*math.sqrt(2))/3\n", + "#Calculations\n", + "t=(n*lambdaa*10**6)/(2*mu*cosr)\n", + "\n", + "#Result\n", + "print\"The Thickness is \",round(t,3),\" mu m\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 19 , Page number 250" + ] + }, + { + "cell_type": "code", + "execution_count": 19, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The order of interference of dark band is 6 \n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration\n", + "mu=4/3 #refractive index\n", + "t=1.5 #thickness\n", + "cosr=0.7603\n", + "lambdaa=5*10**-7 #Wavelength\n", + "\n", + "\n", + "#Calculations\n", + "n=(2*mu*t*cosr*10**-6)/lambdaa\n", + "\n", + "#Result\n", + "print\"The order of interference of dark band is %i \"%n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 20 , Page number 250" + ] + }, + { + "cell_type": "code", + "execution_count": 20, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "For n=0 Lambda is 26600.0\n", + "For n=1 Lambda is 8866\n", + "For n=2 Lambda is 5320.0\n", + "Out of these only 5320.0 lies in the visible range for n=2\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration\n", + "mu=1.33 #refractive index\n", + "n1=0\n", + "n2=1\n", + "n3=2\n", + "t=5*10**-7 #thickness\n", + "\n", + "\n", + "#Calculations\n", + "lambda1=(4*mu*t*10**10)/(2*n1+1)\n", + "lambda2=(4*mu*t*10**10)/(2*n2+1)\n", + "lambda3=(4*mu*t*10**10)/(2*n3+1)\n", + "\n", + "#Result\n", + "print\"For n=0 Lambda is\",lambda1 #The answer given in the book is 26000 however it is mathematically incorrect\n", + "print\"For n=1 Lambda is %i\"%lambda2 #The answer given in the book is 8666 however it is mathematically incorrect\n", + "print\"For n=2 Lambda is\",lambda3 # The answer given in the book is 5200 however it is mathematically incorrect\n", + "print\"Out of these only\",lambda3,\"lies in the visible range for n=2\" " + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 21 , Page number 251" + ] + }, + { + "cell_type": "code", + "execution_count": 21, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The Wavelength is 6875 Angstrom\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration\n", + "R=100 #radius\n", + "D25=0.8 #Diameter of the 25th ring\n", + "D5=0.3 #Diameter of the 5th ring\n", + "p=20 \n", + "\n", + "\n", + "#Calculations\n", + "lambdaa=((D25**2)-(D5**2))*10**8/(4*20*100)\n", + "\n", + "#Result\n", + "print\"The Wavelength is %i\"%lambdaa,\"Angstrom\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 22 , Page number 251" + ] + }, + { + "cell_type": "code", + "execution_count": 22, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The Thickness is 2.946 cm\n", + "The Radius is 106.1 cm\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration\n", + "n=10 #no. of ring\n", + "D10=0.5 #Diameter of the 10th ring\n", + "lambdaa=5893*10**-8 #Wavelength\n", + " \n", + "#Calculations\n", + "R=(D10**2)/(4*10*5893*10**-8)\n", + "t=(D10**2)*10**4/(8*R)\n", + "\n", + "#Result\n", + "print\"The Thickness is\",round(t,3),\"cm\"\n", + "print\"The Radius is\",round(R,1),\"cm\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 23 , Page number 252" + ] + }, + { + "cell_type": "code", + "execution_count": 23, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The Diameter of the nth dark ring is 1.129 cm\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration\n", + "n=59 #no. of ring\n", + "lambdaa=6*10**-7 #Wavelength\n", + "R=0.9 #Radius\n", + " \n", + "#Calculations\n", + "D59=math.sqrt(4*R*n*lambdaa)*10**2\n", + "\n", + "#Result\n", + "print\"The Diameter of the nth dark ring is\",round(D59,3),\"cm\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 24 , Page number 252" + ] + }, + { + "cell_type": "code", + "execution_count": 24, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The Diameter of the 20th dark ring is 0.908 cm\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration\n", + "n=20 #no. of ring\n", + "lambdaaR=0.0103 #Wavelength*R\n", + " \n", + "#Calculations\n", + "D20=math.sqrt(4*n*lambdaaR)\n", + "\n", + "#Result\n", + "print\"The Diameter of the 20th dark ring is\",round(D20,3),\"cm\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 25 , Page number 253" + ] + }, + { + "cell_type": "code", + "execution_count": 25, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The Radius is 12.25 m\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration\n", + "D3=10**-2\n", + "lambdaa=5890*10**-10\n", + "\n", + " \n", + "#Calculations\n", + "R=(D3*math.sqrt(3))*10**-2/(24*lambdaa)\n", + "\n", + "#Result\n", + "print\"The Radius is\",round(R,2),\"m\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 26 , Page number 253" + ] + }, + { + "cell_type": "code", + "execution_count": 26, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The Wavelength is 5760 Angstrom\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration\n", + "n=8 #no. of ring\n", + "D8=0.72*10**-2 #Diameter of the 8th ring\n", + "R=3 #Radius\n", + "\n", + " \n", + "#Calculations\n", + "lambdaa=(D8**2)*10**10/((2*(2*n-1))*R)\n", + "\n", + "#Result\n", + "print\"The Wavelength is %i\"%lambdaa,\"Angstrom\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 27 , Page number 253" + ] + }, + { + "cell_type": "code", + "execution_count": 27, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The Velocity in the liquid is 2.08 *10**10 m/s\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration\n", + "c=3*10**10 #Speed of Light in Vacuum\n", + "mu=1.44 #Refractive Index\n", + "\n", + "#Calculations\n", + "u=c*10**-10/mu\n", + "\n", + "#Result\n", + "print\"The Velocity in the liquid is\",round(u,2),\"*10**10 m/s\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 27 , Page number 254" + ] + }, + { + "cell_type": "code", + "execution_count": 28, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The Distance between 5th and 15th Dark ring is 0.0085 m\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration\n", + "lambdaa=5400*10**-10 #Wavelength\n", + "n1=5\n", + "n2=15\n", + "R=100 #Radius of both rings\n", + "\n", + "#Calculations\n", + "r5=math.sqrt((R*n1*lambdaa)/2)\n", + "r15=math.sqrt((R*n2*lambdaa)/2)\n", + "d=round(r15,4)-round(r5,4)\n", + "\n", + "#Result\n", + "print\"The Distance between 5th and 15th Dark ring is\",d,\"m\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 29 , Page number 255" + ] + }, + { + "cell_type": "code", + "execution_count": 29, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The Refractive Index is 1.5\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration\n", + "l=0.0025 #Distance moved\n", + "t=0.005 #thickness of mica sheet\n", + "\n", + "#Calculations\n", + "mu=((l/t)+1)\n", + "\n", + "#Result\n", + "print\"The Refractive Index is\",mu" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 30 , Page number 255" + ] + }, + { + "cell_type": "code", + "execution_count": 30, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The Wavelength is 5896 Angstrom\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration\n", + "l=0.02948*10**-3 #Distance moved\n", + "n=100 #number of fringes\n", + "\n", + "#Calculations\n", + "lambdaa=(2*l)*10**10/n\n", + "\n", + "#Result\n", + "print\"The Wavelength is %i\"%lambdaa,\"Angstrom\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 31 , Page number 255" + ] + }, + { + "cell_type": "code", + "execution_count": 31, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The Distance by which the mirror moved is 2893953 *10**-10 m\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration\n", + "lambdaa1=5896 #Wavelength1\n", + "lambdaa2=5890 #Wavelength2\n", + "\n", + "\n", + "#Calculations\n", + "l=(lambdaa1*lambdaa2)/(2*(lambdaa1-lambdaa2))\n", + "\n", + "#Result\n", + "print\"The Distance by which the mirror moved is %i\"%l,\"*10**-10 m\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 32 , Page number 256" + ] + }, + { + "cell_type": "code", + "execution_count": 32, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The Difference between two wavelengths is 5.9 Angstrom\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration\n", + "lambdaa=5893*10**-10 #Wavelength\n", + "l=0.2945*10**-3 #Distance by which mirror is displaced\n", + "\n", + "\n", + "#Calculations\n", + "dellambdaa=(lambdaa**2)*10**10/(2*l)\n", + "\n", + "#Result\n", + "print\"The Difference between two wavelengths is \",round(dellambdaa,1),\"Angstrom\"" + ] + } + ], + "metadata": { + "kernelspec": { + "display_name": "Python 2", + "language": "python", + "name": "python2" + }, + "language_info": { + "codemirror_mode": { + "name": "ipython", + "version": 2 + }, + "file_extension": ".py", + "mimetype": "text/x-python", + "name": "python", + "nbconvert_exporter": "python", + "pygments_lexer": "ipython2", + "version": "2.7.11" + } + }, + "nbformat": 4, + "nbformat_minor": 0 +} diff --git a/Engineering_Physics_by_Prabir_K_Basu_&_Hrishikesh_Dhasmana/Chapter2.ipynb b/Engineering_Physics_by_Prabir_K_Basu_&_Hrishikesh_Dhasmana/Chapter2.ipynb new file mode 100644 index 00000000..1f094d6a --- /dev/null +++ b/Engineering_Physics_by_Prabir_K_Basu_&_Hrishikesh_Dhasmana/Chapter2.ipynb @@ -0,0 +1,681 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Chapter 1 : Diffraction\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 1 , Page number 256" + ] + }, + { + "cell_type": "code", + "execution_count": 2, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The Total Linear Width of central maxima is 1.2 cm\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration\n", + "theta=6*10**-3 #Angular Width\n", + "D=1 #Distance of Screen\n", + "\n", + "#Calculations\n", + "Totalangularwidth=2*theta\n", + "tlw=Totalangularwidth*D*10**2\n", + "\n", + "#Result\n", + "print\"The Total Linear Width of central maxima is\",tlw,\"cm\"\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 2 , Page number 257" + ] + }, + { + "cell_type": "code", + "execution_count": 7, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The Wavelength is 5600 Angstrom\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration\n", + "e=0.14 #width of the slit\n", + "y=1.6 #Distance of center of dark band from middle of central bright band\n", + "n=2 #no. of dark band\n", + "D=2 #Distance from the slit\n", + "\n", + "#Calculations\n", + "lambdaa=((e*y)/(D*n))*10**5\n", + "\n", + "#Result\n", + "print\"The Wavelength is %i\"%lambdaa,\"Angstrom\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 3 , Page number 257" + ] + }, + { + "cell_type": "code", + "execution_count": 14, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The Width of the slit is 0.0001 cm\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration\n", + "lambdaa=5000*10**-8 #Wavelength\n", + "theta=30 #Angular Width\n", + "\n", + "#Calculations\n", + "thetarad=math.radians(theta)\n", + "sinetheta=math.sin(thetarad)\n", + "e=(lambdaa)/(sinetheta)\n", + "\n", + "#Result\n", + "print\"The Width of the slit is \",e,\"cm\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 4 , Page number 257" + ] + }, + { + "cell_type": "code", + "execution_count": 21, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The Wavelength is 5000 Angstrom\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration\n", + "y=5*10**-3 #First Minima\n", + "D=2 #Distance of screen\n", + "e=0.2*10**-3 #Slit width\n", + "\n", + "#Calculations\n", + "lambdaa=((e*y)/D)*10**10\n", + "\n", + "#Result\n", + "print\"The Wavelength is %i\"%lambdaa,\"Angstrom\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 6 , Page number 258" + ] + }, + { + "cell_type": "code", + "execution_count": 44, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The Wavelengths are 6250 Angstrom & 5000 Angstrom\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration\n", + "y=0.005 #First Minima\n", + "D=1 #Distance of screen\n", + "e=0.5*10**-2 #Slit width\n", + "\n", + "#Calculations\n", + "yd=(y/D)\n", + "sinyd=(math.sin(yd))\n", + "lambdaa1=((e*sinyd)/4)*10**9\n", + "lambdaa2=((e*sinyd)/5)*10**9\n", + "\n", + "#Result\n", + "print\"The Wavelengths are %4.0f\" %lambdaa1,\"Angstrom & %4.0f\"%lambdaa2,\"Angstrom\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 7 , Page number 259" + ] + }, + { + "cell_type": "code", + "execution_count": 48, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The Wavelength is 5000 Angstrom\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration\n", + "n=2 #order of spectral line\n", + "theta=30 #Angular Width\n", + "invde=5000 #Inverse of diffraction element\n", + "\n", + "#Calculations\n", + "thetarad=math.radians(theta)\n", + "sinetheta=math.sin(thetarad)\n", + "lambdaa=((sinetheta)/(n*invde))*10**8\n", + "\n", + "#Result\n", + "print\"The Wavelength is %i\"%lambdaa,\"Angstrom\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 8 , Page number 259" + ] + }, + { + "cell_type": "code", + "execution_count": 56, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The Angular Difference is 46.7 Degrees\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration\n", + "lambdaa=5000*10**-8 #Wavelength\n", + "invde=6000 #Diffraction element inverse\n", + "\n", + "#Calculations\n", + "sinetheta1=lambdaa*invde\n", + "sinetheta3=lambdaa*invde*3\n", + "theta1=math.degrees(math.asin(sinetheta1))\n", + "theta3=math.degrees(math.asin(sinetheta3))\n", + "deltheta=theta3-theta1\n", + "\n", + "#Result\n", + "print\"The Angular Difference is %2.1f\"%deltheta,\"Degrees\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 9 , Page number 260" + ] + }, + { + "cell_type": "code", + "execution_count": 59, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The orders visible would be 19\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration\n", + "lambdaa=5000*10**-8 #Wavelength\n", + "invde=(2620/2.54) #Diffraction element inverse\n", + "\n", + "#Calculations\n", + "n=(1/(lambdaa*invde))\n", + "#Result\n", + "print\"The orders visible would be %i\"%n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 10 , Page number 260" + ] + }, + { + "cell_type": "code", + "execution_count": 60, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The orders visible will be from 3 to 6 order Spectrum\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration\n", + "lambdaa1=4000*10**-8 #Wavelength1\n", + "lambdaa2=7000*10**-8 #Wavelength2\n", + "invde=4000 #Diffraction element inverse\n", + "\n", + "#Calculations\n", + "n1=(1/(lambdaa1*invde))\n", + "n2=(1/(lambdaa2*invde))\n", + "#Result\n", + "print\"The orders visible will be from %i\"%n2,\"to %i\"%n1,\"order Spectrum\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 12 , Page number 262" + ] + }, + { + "cell_type": "code", + "execution_count": 77, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + " The number of line cm in grating is 5000.0\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration\n", + "lambdaa=5000*10**-8 #Wavelength\n", + "theta=30 #Angular Width\n", + "\n", + "\n", + "#Calculations\n", + "thetarad=(math.radians(theta))\n", + "invde=((2*lambdaa)/(math.sin(thetarad)))**-1\n", + "\n", + "#Result\n", + "print\" The number of line cm in grating is\",invde" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 13 , Page number 263" + ] + }, + { + "cell_type": "code", + "execution_count": 79, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + " The grating element is 0.00032 cm\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration\n", + "lambdaa=6000*10**-8 #Wavelength\n", + "sinetheta=(3/4) #Angular Width\n", + "n=4\n", + "\n", + "#Calculations\n", + "gratingele=((n*lambdaa)/sinetheta)\n", + "#Result\n", + "print\" The grating element is\",gratingele,\"cm\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 14 , Page number 263" + ] + }, + { + "cell_type": "code", + "execution_count": 85, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + " The Angle of Diffraction is 2.06 degrees\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration\n", + "lambdaa=6000*10**-8 #Wavelength\n", + "n=3\n", + "invde=200 #inverse of diffraction element\n", + "\n", + "#Calculations\n", + "sinetheta=(n*lambdaa*invde)\n", + "thetarad=math.asin(sinetheta)\n", + "theta=math.degrees(thetarad)\n", + "#Result\n", + "print\" The Angle of Diffraction is %1.2f\"%theta,\"degrees\"\n", + "\n", + "#Note:The second part of problem is theoretical and hence is not solved" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 15 , Page number 264" + ] + }, + { + "cell_type": "code", + "execution_count": 101, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + " The difference between the two wavelengths is 86.6 Angstrom\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration\n", + "lambdaa=5000*10**-10 #Wavelength\n", + "theta=30 #Angular Width\n", + "dtheta=0.01\n", + "\n", + "#Calculations\n", + "thetarad=(math.radians(theta))\n", + "dlambda=((lambdaa*math.cos(thetarad))/(math.sin(thetarad)))*10**8\n", + "\n", + "#Result\n", + "print\" The difference between the two wavelengths is %2.1f\"%dlambda,\"Angstrom\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 16 , Page number 265" + ] + }, + { + "cell_type": "code", + "execution_count": 104, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + " The Maximum resolving power is 100000 or 10**5\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration\n", + "lambdaa=5000*10**-8 #Wavelength\n", + "N=40000 #Grating lines\n", + "de=12.5*10**-5 #Diffraction element\n", + "\n", + "#Calculations\n", + "RPmax=((de*N)/lambdaa)\n", + "\n", + "#Result\n", + "print\" The Maximum resolving power is %i\"%RPmax,\"or 10**5\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 17 , Page number 265" + ] + }, + { + "cell_type": "code", + "execution_count": 107, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + " The Minimum number of lines in the grating are 491\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration\n", + "lambdaa=5890 #Wavelength\n", + "dlambdaa=6 #Difference in wavelengths\n", + "n=2 #order\n", + "\n", + "#Calculations\n", + "N=((lambdaa)/(n*dlambdaa))\n", + "\n", + "#Result\n", + "print\" The Minimum number of lines in the grating are %3.0f\"%N" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 18 , Page number 265" + ] + }, + { + "cell_type": "code", + "execution_count": 112, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + " (a)The resolving power in second order is 120000\n", + " (b) The smallest wavelength that can be resolved in the 3rd order in 5896 Angstrom wavelength region is 0.0328 Angstrom\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration\n", + "lambdaa=5896 #Wavelength\n", + "N=60000 #Total Number of lines in 10 cm\n", + "n1=2 #order\n", + "n2=3 #order\n", + "\n", + "#Calculations\n", + "RP=n1*N\n", + "dlambda=((lambdaa)/(n2*N))\n", + "\n", + "#Result\n", + "print\" (a)The resolving power in second order is\",RP\n", + "print\" (b) The smallest wavelength that can be resolved in the 3rd order in 5896 Angstrom wavelength region is %0.4f\"%dlambda,\"Angstrom\"" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], + "source": [] + } + ], + "metadata": { + "kernelspec": { + "display_name": "Python 2", + "language": "python", + "name": "python2" + }, + "language_info": { + "codemirror_mode": { + "name": "ipython", + "version": 2 + }, + "file_extension": ".py", + "mimetype": "text/x-python", + "name": "python", + "nbconvert_exporter": "python", + "pygments_lexer": "ipython2", + "version": "2.7.11" + } + }, + "nbformat": 4, + "nbformat_minor": 0 +} diff --git a/Engineering_Physics_by_Prabir_K_Basu_&_Hrishikesh_Dhasmana/Chapter3.ipynb b/Engineering_Physics_by_Prabir_K_Basu_&_Hrishikesh_Dhasmana/Chapter3.ipynb new file mode 100644 index 00000000..f8c7c735 --- /dev/null +++ b/Engineering_Physics_by_Prabir_K_Basu_&_Hrishikesh_Dhasmana/Chapter3.ipynb @@ -0,0 +1,624 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Chapter 3 : Polarization" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 1 , Page number 266" + ] + }, + { + "cell_type": "code", + "execution_count": 5, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The Angle of polarization is 33 Degrees\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration\n", + "mu=1.54 #refractive index of glass\n", + "\n", + "#Calculations\n", + "ip=math.degrees(math.atan(1.54))\n", + "r=90-ip\n", + "\n", + "#Result\n", + "print\"The Angle of polarization is %2.0f\"%r,\"Degrees\"\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 2 , Page number 266" + ] + }, + { + "cell_type": "code", + "execution_count": 8, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The Angle of polarization is 1.7321 Degrees\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration\n", + "ip=60 #Angle of incidence\n", + "\n", + "#Calculations\n", + "mu=math.tan(math.radians(ip))\n", + "\n", + "#Result\n", + "print\"The Angle of polarization is %1.4f\"%mu,\"Degrees\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 3 , Page number 266" + ] + }, + { + "cell_type": "code", + "execution_count": 9, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The Angle of Refraction is 49.11 Degrees\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration\n", + "muwater=0.8660 #Refractive index of water\n", + "\n", + "#Calculations\n", + "ip=math.degrees(math.atan(muwater))\n", + "r=90-ip\n", + "\n", + "#Result\n", + "print\"The Angle of Refraction is %2.2f\"%r,\"Degrees\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 4 , Page number 267" + ] + }, + { + "cell_type": "code", + "execution_count": 17, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The thickness of the crystal is 0.003 cm\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration\n", + "lambdaa=6000*10**-10 #Wavelength\n", + "muo=1.55 #Refractive index of ordinary rays\n", + "mue=1.54 #Refractive index of extra ordinary rays\n", + "\n", + "#Calculations\n", + "t=((lambdaa)/(2*(muo-mue)))*10**2\n", + "\n", + "#Result\n", + "print\"The thickness of the crystal is \",t,\"cm\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 5 , Page number 267" + ] + }, + { + "cell_type": "code", + "execution_count": 16, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The thickness of the crystal is 0.00147325 cm\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration\n", + "lambdaa=5893*10**-10 #Wavelength\n", + "muo=1.54 #Refractive index of ordinary rays\n", + "mue=1.53 #Refractive index of extra ordinary rays\n", + "\n", + "#Calculations\n", + "t=((lambdaa)/(4*(muo-mue)))*10**2\n", + "\n", + "#Result\n", + "print\"The thickness of the crystal is \",t,\"cm\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 6 , Page number 267" + ] + }, + { + "cell_type": "code", + "execution_count": 19, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The thickness of the crystal is 0.00268 cm\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration\n", + "lambdaa=5893*10**-10 #Wavelength\n", + "muo=1.551 #Refractive index of ordinary rays\n", + "mue=1.54 #Refractive index of extra ordinary rays\n", + "\n", + "#Calculations\n", + "t=((lambdaa)/(2*(muo-mue)))*10**2\n", + "\n", + "#Result\n", + "print\"The thickness of the crystal is %0.5f\"%t,\"cm\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 7 , Page number 268" + ] + }, + { + "cell_type": "code", + "execution_count": 24, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The Amount of optical rotation produced is 198 degrees\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration\n", + "lambdaa=4000*10**-10 #Wavelength\n", + "mul=1.55821 #Refractive index of left landed\n", + "mur=1.55810 #Refractive index of right landed\n", + "t=2*10**-3 #thickness\n", + "\n", + "#Calculations\n", + "orot=math.degrees((2*3.14*(t*(mul-mur)))/lambdaa)\n", + "\n", + "#Result\n", + "print\"The Amount of optical rotation produced is %3.0f\"%orot,\"degrees\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 8 , Page number 269" + ] + }, + { + "cell_type": "code", + "execution_count": 30, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The Amount of optical rotation produced is 1.152 pi radians\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration\n", + "lambdaa=5000*10**-10 #Wavelength\n", + "muo=1.5418 #Refractive index of ordinary rays\n", + "mue=1.5508 #Refractive index of extra ordinary rays\n", + "t=0.032*10**-3 #thickness\n", + "\n", + "#Calculations\n", + "orot=((2*(t*(mue-muo)))/lambdaa)\n", + "\n", + "#Result\n", + "print\"The Amount of optical rotation produced is\",orot,\"pi radians\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 9 , Page number 269" + ] + }, + { + "cell_type": "code", + "execution_count": 34, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The Specific rotation of sugar solution is 65 degree/(dm/(gm/cc))\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration\n", + "theta=6.5 #rotation of plane\n", + "l=2 #length\n", + "c=0.05 #concentration\n", + "\n", + "#Calculations\n", + "s=(theta/(l*c))\n", + "\n", + "#Result\n", + "print\"The Specific rotation of sugar solution is %i\"%s,\"degree/(dm/(gm/cc))\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 10 , Page number 269" + ] + }, + { + "cell_type": "code", + "execution_count": 36, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The Concentration of sugar solution is, 0.1 gm/cc\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration\n", + "theta=12 #rotation of plane\n", + "l=2 #length\n", + "s=60 #Specific rotation\n", + "\n", + "#Calculations\n", + "c=(theta/(l*s))\n", + "\n", + "#Result\n", + "print\"The Concentration of sugar solution is,\",c,\"gm/cc\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 11 , Page number 270" + ] + }, + { + "cell_type": "code", + "execution_count": 39, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The Mass of sugar dissolved in 2 liter of water for optical rotation 24 deg is 213.3 gm\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration\n", + "theta1=12 #rotation of plane\n", + "l1=2 #length\n", + "theta2=24 #rotation of plane\n", + "l2=3 #length\n", + "c1=0.08 #Concentration\n", + "\n", + "#Calculations\n", + "s=((theta1)/(l1*c1))\n", + "c2=((theta2)/(s*l2))\n", + "Ms=10*10*10*c2\n", + "Ms2=Ms*2\n", + "\n", + "#Result\n", + "print\"The Mass of sugar dissolved in 2 liter of water for optical rotation 24 deg is %3.1f\"%Ms2,\"gm\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 12 , Page number 270" + ] + }, + { + "cell_type": "code", + "execution_count": 42, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The Difference in RI is 8.4 *10**-5\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration\n", + "lambdaa=5086*10**-7 #Wavelength\n", + "s=29.73 #Specific rotation\n", + "\n", + "#Calculations\n", + "delmu=((s*lambdaa)/180)*10**5\n", + "\n", + "#Result\n", + "print\"The Difference in RI is %1.1f\"%delmu,\"*10**-5\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 13 , Page number 271" + ] + }, + { + "cell_type": "code", + "execution_count": 43, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The Concentation of sugar solution is 6.5 degree\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration\n", + "theta1=13 #rotation of plane\n", + "l1=2 #length\n", + "l2=3 #Length\n", + "s=6.5 #Specific rotation\n", + "\n", + "#Calculations\n", + "theta=s*l2*(1/3)\n", + "\n", + "#Result\n", + "print\"The Concentation of sugar solution is \",theta,\"degree\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 14 , Page number 271" + ] + }, + { + "cell_type": "code", + "execution_count": 45, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The Length will be 35 cm\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration\n", + "theta1=35 #rotation of plane\n", + "s=100 #Specific rotation\n", + "c=0.1 #Concentration\n", + "\n", + "#Calculations\n", + "l=((theta1)/(s*c))*10\n", + "\n", + "#Result\n", + "print\"The Length will be %i\"%l,\"cm\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 15 , Page number 271" + ] + }, + { + "cell_type": "code", + "execution_count": 46, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "percentage of purity of sample 93.75 %\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration\n", + "theta1=9.9 #rotation of plane\n", + "l=2 #Length\n", + "c=0.08 #Concentration\n", + "s2=66 #specific rotation\n", + "\n", + "#Calculations\n", + "s1=((theta1)/(l*c))\n", + "pis=((s2-s1)/s2)*100\n", + "pps=100-pis\n", + "\n", + "\n", + "#Result\n", + "print\"percentage of purity of sample\",pps,\"%\"" + ] + } + ], + "metadata": { + "kernelspec": { + "display_name": "Python 2", + "language": "python", + "name": "python2" + }, + "language_info": { + "codemirror_mode": { + "name": "ipython", + "version": 2 + }, + "file_extension": ".py", + "mimetype": "text/x-python", + "name": "python", + "nbconvert_exporter": "python", + "pygments_lexer": "ipython2", + "version": "2.7.11" + } + }, + "nbformat": 4, + "nbformat_minor": 0 +} diff --git a/Engineering_Physics_by_Prabir_K_Basu_&_Hrishikesh_Dhasmana/Chapter4&5.ipynb b/Engineering_Physics_by_Prabir_K_Basu_&_Hrishikesh_Dhasmana/Chapter4&5.ipynb new file mode 100644 index 00000000..04a4ba5b --- /dev/null +++ b/Engineering_Physics_by_Prabir_K_Basu_&_Hrishikesh_Dhasmana/Chapter4&5.ipynb @@ -0,0 +1,237 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Chapter 4 & 5 : Fiber Optics and Laser" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 1 , Page number 273" + ] + }, + { + "cell_type": "code", + "execution_count": 16, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "(a) The critical angle is :80.63 degrees\n", + "(b) The Fractional refractive index is :0.013\n", + "(c) The Acceptance angle is :0.244 Radians\n", + "(d) The Numerical Apperture is :0.242\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration\n", + "muclad=1.48 #Refractive index of claddings\n", + "mucore=1.5 #Refractive index of core\n", + "\n", + "#Calculations\n", + "thetac=math.degrees(math.asin(muclad/mucore))\n", + "fri=(mucore-muclad)/mucore\n", + "aa=(math.sqrt((mucore**2)-(muclad**2)))\n", + "NA=math.sin(aa)\n", + "#Result\n", + "print\"(a) The critical angle is :%2.2f\"%thetac,\"degrees\"\n", + "print\"(b) The Fractional refractive index is :%1.3f\"%fri\n", + "print\"(c) The Acceptance angle is :%1.3f\"%aa,\"Radians\"\n", + "print\"(d) The Numerical Apperture is :%1.3f\"%NA" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 2 , Page number 273" + ] + }, + { + "cell_type": "code", + "execution_count": 27, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "(a) The V number is 40.64\n", + "(b) The number of modes are 412.81\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration\n", + "a=25*10**-6 #core radius\n", + "lambdaa=0.85*10**-6 #Wavelength\n", + "NA=0.22 #Numerical Aperture\n", + "\n", + "#Calculations\n", + "V=((2*3.14*a*0.22)/lambdaa)\n", + "N=((V**2)/4)\n", + "\n", + "#Result\n", + "print\"(a) The V number is %2.2f\"%V\n", + "print\"(b) The number of modes are %3.2f\"%N\n", + "\n", + "#Note: The answer in the book is wrongly stated as 40.66 and 413.31" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 3 , Page number 274" + ] + }, + { + "cell_type": "code", + "execution_count": 29, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The coherence length of the laser beam is 100000.0 m or 10**5 m\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration\n", + "c=3*10**8\n", + "delf=3000 #Bandwidth\n", + "\n", + "#Calculations\n", + "lc=(c/delf)\n", + "\n", + "#Result\n", + "print\"The coherence length of the laser beam is\",lc,\"m or 10**5 m\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 4 , Page number 274" + ] + }, + { + "cell_type": "code", + "execution_count": 31, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The transverse coherence length is 0.005 cm\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration\n", + "lambdaa=5*10**-5 #Wavelength\n", + "theta=32 #Angle subtended by the sun at the slit\n", + "\n", + "#Calculations\n", + "l=((lambdaa*60*180)/(theta*3.14))\n", + "\n", + "#Result\n", + "print\"The transverse coherence length is %1.3f\"%l,\"cm\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 5 , Page number 274" + ] + }, + { + "cell_type": "code", + "execution_count": 36, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The Degree of Monochromaticity is 18 *10**-6\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration\n", + "lambdaa=5400*10**-10 #Wavelength\n", + "tc=10**-10 #coherence time\n", + "c=3*10**-8 \n", + "\n", + "#Calculations\n", + "dom=((lambdaa)/(tc*c))*10**-10\n", + "\n", + "#Result\n", + "print\"The Degree of Monochromaticity is %2.0f\"%dom,\"*10**-6\"" + ] + } + ], + "metadata": { + "kernelspec": { + "display_name": "Python 2", + "language": "python", + "name": "python2" + }, + "language_info": { + "codemirror_mode": { + "name": "ipython", + "version": 2 + }, + "file_extension": ".py", + "mimetype": "text/x-python", + "name": "python", + "nbconvert_exporter": "python", + "pygments_lexer": "ipython2", + "version": "2.7.11" + } + }, + "nbformat": 4, + "nbformat_minor": 0 +} diff --git a/Engineering_Physics_by_Prabir_K_Basu_&_Hrishikesh_Dhasmana/Chapter6.ipynb b/Engineering_Physics_by_Prabir_K_Basu_&_Hrishikesh_Dhasmana/Chapter6.ipynb new file mode 100644 index 00000000..62f70106 --- /dev/null +++ b/Engineering_Physics_by_Prabir_K_Basu_&_Hrishikesh_Dhasmana/Chapter6.ipynb @@ -0,0 +1,274 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Chapter 6 : Simple Harmonic Motion" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 1 , Page number 274" + ] + }, + { + "cell_type": "code", + "execution_count": 2, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The time taken to move from one end of its path to 0.025m from mean position is 1 sec\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration\n", + "W=(3.14/3) #Angular frequency in radian\n", + "\n", + "\n", + "\n", + "#Calculations\n", + "t=((3.14)/(3*W))\n", + "\n", + "#Result\n", + "print\"The time taken to move from one end of its path to 0.025m from mean position is %i\"%t,\"sec\"\n", + "\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 2 , Page number 275" + ] + }, + { + "cell_type": "code", + "execution_count": 3, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The Maximum Velocity is 0.012 m/sec\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration\n", + "T=31.4 #Time Period\n", + "A=0.06 #Amplitude\n", + "\n", + "\n", + "#Calculations\n", + "W=((2*3.14)/T)\n", + "Vmax=W*A\n", + "\n", + "#Result\n", + "print\"The Maximum Velocity is\",Vmax,\"m/sec\"\n", + "\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 3 , Page number 275" + ] + }, + { + "cell_type": "code", + "execution_count": 5, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The Time Period of Oscillation for the other body is 0.28 sec\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration\n", + "m=8 #mass\n", + "g=9.8 #acceleration due to gravity\n", + "x=0.32 #Stretched spring deviation\n", + "m2=0.5 #mass of the other body\n", + "\n", + "\n", + "#Calculations\n", + "k=((m*g)/x)\n", + "T=((2*3.14)*math.sqrt(m2/k))\n", + "\n", + "#Result\n", + "print\"The Time Period of Oscillation for the other body is %0.2f\"%T,\"sec\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 5 , Page number 276" + ] + }, + { + "cell_type": "code", + "execution_count": 16, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The Time Interval is 14.67 sec\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration\n", + "Q=10**4 #Quality Factor\n", + "f=250 #Frequency\n", + "\n", + "\n", + "#Calculations\n", + "Tau=((Q)/(2*3.14*f))\n", + "t=((math.log(10,10)*20)/(0.4342944819*3.14))\n", + "\n", + "#Result\n", + "print\"The Time Interval is %2.2f\"%t,\"sec\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 6 , Page number 277" + ] + }, + { + "cell_type": "code", + "execution_count": 15, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The Time in which the amplitude decreases is 5.3 sec\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration\n", + "Q=2000 #Quality Factor\n", + "f=240 #Frequency\n", + "\n", + "\n", + "#Calculations\n", + "Tau=((Q)/(2*3.14*f))\n", + "t=4*Tau\n", + "\n", + "#Result\n", + "print\"The Time in which the amplitude decreases is %1.1f\"%t,\"sec\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 7 , Page number 277" + ] + }, + { + "cell_type": "code", + "execution_count": 18, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The Value of A/Amax is 0.71\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration\n", + "A=50/1.4 #Amplitude which is A=(50f/1.4*W**2)\n", + "Amax=50 #Max Amplitude which is Amax=(50f/W**2)\n", + "\n", + "\n", + "#Calculations\n", + "Rat=A/Amax\n", + "\n", + "#Result\n", + "print\"The Value of A/Amax is %0.2f\"%Rat" + ] + } + ], + "metadata": { + "kernelspec": { + "display_name": "Python 2", + "language": "python", + "name": "python2" + }, + "language_info": { + "codemirror_mode": { + "name": "ipython", + "version": 2 + }, + "file_extension": ".py", + "mimetype": "text/x-python", + "name": "python", + "nbconvert_exporter": "python", + "pygments_lexer": "ipython2", + "version": "2.7.11" + } + }, + "nbformat": 4, + "nbformat_minor": 0 +} diff --git a/Engineering_Physics_by_Prabir_K_Basu_&_Hrishikesh_Dhasmana/Chapter7.ipynb b/Engineering_Physics_by_Prabir_K_Basu_&_Hrishikesh_Dhasmana/Chapter7.ipynb new file mode 100644 index 00000000..0ef73a18 --- /dev/null +++ b/Engineering_Physics_by_Prabir_K_Basu_&_Hrishikesh_Dhasmana/Chapter7.ipynb @@ -0,0 +1,402 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Chapter 7 : Dielectric " + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 1 , Page number 278" + ] + }, + { + "cell_type": "code", + "execution_count": 2, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The Magnitude of E for a plane wave in free space is 376.5\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration\n", + "E0=8.86*10**-12\n", + "mu0=4*3.14*10**-7\n", + "H=1\n", + "\n", + "#Calculations\n", + "E=H*(math.sqrt(mu0/E0))\n", + "\n", + "#Result\n", + "print\"The Magnitude of E for a plane wave in free space is %3.1f\"%E" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 2 , Page number 279" + ] + }, + { + "cell_type": "code", + "execution_count": 15, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The Impedence of the Medium is 266.2\n", + "The Peak Magnetic Field Intensity is 0.188 A/m\n", + "The Velocity of the wave is 2.12 *10**8 m/s\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration\n", + "mu0=4*3.14*10**-7\n", + "mur=1\n", + "Er=2\n", + "E0=8.86*10**-12\n", + "E01=5\n", + "c=3*10**8\n", + "\n", + "#Calculations\n", + "Z=math.sqrt((mu0*mur)/(E0*Er))\n", + "H0=(E01/Z)*10\n", + "v=((c)/math.sqrt(mur*Er))*10**-8\n", + "\n", + "#Result\n", + "print\"The Impedence of the Medium is %3.1f\"%Z\n", + "print\"The Peak Magnetic Field Intensity is %1.3f\"%H0,\"A/m\"\n", + "print\"The Velocity of the wave is %1.2f\"%v,\"*10**8 m/s\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 3 , Page number 279" + ] + }, + { + "cell_type": "code", + "execution_count": 20, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The Wavelength is 0.001 m or 10**-3 m\n", + "The Amplitude of the oscillating magnetic field is 1.67 *10**-7 T\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration\n", + "c=3*10**8\n", + "f=3*10**11\n", + "E0=50\n", + "\n", + "#Calculations\n", + "lambdaa=(c/f)\n", + "B0=(E0/c)*10**7\n", + "\n", + "#Result\n", + "print\"The Wavelength is\",lambdaa,\"m or 10**-3 m\"\n", + "print\"The Amplitude of the oscillating magnetic field is %1.2f\"%B0,\"*10**-7 T\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 4 , Page number 280" + ] + }, + { + "cell_type": "code", + "execution_count": 25, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The Average solar energy incident on earth is 1.92 cal/cm**2/min\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration\n", + "R=1.5*10**11 #Average distance between sun & Earth\n", + "P=3.8*10**26 #Power Radiated by sun\n", + "\n", + "\n", + "#Calculations\n", + "S=((P*60)/(4*3.14*(R**2)*4.2*100))*10**-2\n", + "\n", + "#Result\n", + "print\"The Average solar energy incident on earth is %1.2f\"%S,\"cal/cm**2/min\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 5 , Page number 280" + ] + }, + { + "cell_type": "code", + "execution_count": 31, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The Amplitude of Electric field is 1026 V/m\n", + "The Amplitude of Magnetic field per turn is 2.73 A-turn/m\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration\n", + "S=2 #solar energy\n", + "EH=1400\n", + "Z=376.6\n", + "\n", + "#Calculations\n", + "E=math.sqrt(EH*Z)\n", + "H=math.sqrt(EH/Z)\n", + "E0=E*math.sqrt(2)\n", + "H0=H*math.sqrt(2)\n", + "\n", + "#Result\n", + "print\"The Amplitude of Electric field is %i\"%E0,\"V/m\"\n", + "print\"The Amplitude of Magnetic field per turn is %1.2f\"%H0,\"A-turn/m\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 6 , Page number 281" + ] + }, + { + "cell_type": "code", + "execution_count": 33, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The Intensity of Electric field is 86.58 V/m\n", + "The Intensity of Magnetic Field is 0.230 A-turn/m\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration\n", + "EH=(1000/(16*3.14))\n", + "Z=376.6\n", + "\n", + "#Calculations\n", + "E=math.sqrt(EH*Z)\n", + "H=math.sqrt(EH/Z)\n", + "\n", + "#Result\n", + "print\"The Intensity of Electric field is %2.2f\"%E,\"V/m\"\n", + "print\"The Intensity of Magnetic Field is %0.3f\"%H,\"A-turn/m\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 7 , Page number 281" + ] + }, + { + "cell_type": "code", + "execution_count": 42, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The Intensity of Electric field is 75 Ohm\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration\n", + "Er=2.22 #Dielectric Constant\n", + "D=3.87 #Outer Diameter\n", + "d=0.6 #Inner Diameter\n", + "\n", + "from numpy.lib.scimath import logn\n", + "from math import e\n", + "\n", + "#Calculations\n", + "Z=((60/math.sqrt(Er))*logn(e,(D/d)))\n", + "\n", + "#Result\n", + "print\"The Intensity of Electric field is %i\"%Z,\"Ohm\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 8 , Page number 282" + ] + }, + { + "cell_type": "code", + "execution_count": 46, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The Characteristic Impedence is 74.64 Ohm\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration\n", + "C=70*10**-12 #Cable Capacitance\n", + "L=0.39*10**-6 #Cable Inductance\n", + "\n", + "#Calculations\n", + "Z0=(math.sqrt(L/C))\n", + "\n", + "#Result\n", + "print\"The Characteristic Impedence is %2.2f\"%Z0,\"Ohm\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 9 , Page number 282" + ] + }, + { + "cell_type": "code", + "execution_count": 48, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The Dielectric Constant of the insulation used is 2.6\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration\n", + "VF=0.62 #Velocity Factor of coaxial Cable\n", + "\n", + "#Calculations\n", + "Er=(1/(VF**2))\n", + "\n", + "#Result\n", + "print\"The Dielectric Constant of the insulation used is %1.1f\"%Er" + ] + } + ], + "metadata": { + "kernelspec": { + "display_name": "Python 2", + "language": "python", + "name": "python2" + }, + "language_info": { + "codemirror_mode": { + "name": "ipython", + "version": 2 + }, + "file_extension": ".py", + "mimetype": "text/x-python", + "name": "python", + "nbconvert_exporter": "python", + "pygments_lexer": "ipython2", + "version": "2.7.11" + } + }, + "nbformat": 4, + "nbformat_minor": 0 +} diff --git a/Engineering_Physics_by_Prabir_K_Basu_&_Hrishikesh_Dhasmana/Chapter8.ipynb b/Engineering_Physics_by_Prabir_K_Basu_&_Hrishikesh_Dhasmana/Chapter8.ipynb new file mode 100644 index 00000000..f0adbe2b --- /dev/null +++ b/Engineering_Physics_by_Prabir_K_Basu_&_Hrishikesh_Dhasmana/Chapter8.ipynb @@ -0,0 +1,197 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Chapter 8 : Electromagnetic Theory" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 1 , Page number 282" + ] + }, + { + "cell_type": "code", + "execution_count": 5, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The Dipole Moment induced in each Helium atom is 0.244 *10**-38 Coul-m\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration\n", + "k=1.000074\n", + "E=100\n", + "E0=8.854*10**-12\n", + "n=0.268*10**26\n", + "\n", + "#Calculations\n", + "p=(k-1)*E0*E\n", + "P=(p/n)*10**38\n", + "\n", + "#Result\n", + "print\"The Dipole Moment induced in each Helium atom is %1.3f\"%P,\"*10**-38 Coul-m\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 2 , Page number 283" + ] + }, + { + "cell_type": "code", + "execution_count": 24, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The Electrical Susceptibility is 0.000074\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration\n", + "k=1.000074\n", + "#Calculations\n", + "X=(k-1)\n", + "\n", + "#Result\n", + "print\"The Electrical Susceptibility is %0.6f\"%X\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 3 , Page number 283" + ] + }, + { + "cell_type": "code", + "execution_count": 15, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "(a) The Value of Er is 5\n", + "(b) The Net Dipole Moment is 0.0002 coul-m or 2*10**-4 coul-m\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration\n", + "E=1*10**-4\n", + "D=5*10**-4\n", + "V=0.5\n", + "P=4*10**-4\n", + "\n", + "#Calculations\n", + "Er=(D/E)\n", + "NDM=P*V\n", + "\n", + "#Result\n", + "print\"(a) The Value of Er is %i\"%Er\n", + "print\"(b) The Net Dipole Moment is \",NDM,\"coul-m or 2*10**-4 coul-m\"\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 4 , Page number 283" + ] + }, + { + "cell_type": "code", + "execution_count": 33, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "(a) The Polarization in the Dielectric is 17.71 *10**-6 coul/m**2\n", + "(b) The Displacement Current Density is 26.56 *10**-6 coul/m**2\n", + "(c) The Energy Density is 13.281 J/m**3\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration\n", + "k=3\n", + "E0=8.854*10**-12\n", + "E=10**6\n", + "\n", + "#Calculations\n", + "P=(E0*(k-1)*E)*10**6\n", + "D=(E0*k*E)*10**6\n", + "Ed=0.5*E0*k*(E**2)\n", + "\n", + "#Result\n", + "print\"(a) The Polarization in the Dielectric is %2.2f\"%P,\"*10**-6 coul/m**2\"\n", + "print\"(b) The Displacement Current Density is %2.2f\"%D,\"*10**-6 coul/m**2\"\n", + "print\"(c) The Energy Density is\",Ed,\"J/m**3\"\n" + ] + } + ], + "metadata": { + "kernelspec": { + "display_name": "Python 2", + "language": "python", + "name": "python2" + }, + "language_info": { + "codemirror_mode": { + "name": "ipython", + "version": 2 + }, + "file_extension": ".py", + "mimetype": "text/x-python", + "name": "python", + "nbconvert_exporter": "python", + "pygments_lexer": "ipython2", + "version": "2.7.11" + } + }, + "nbformat": 4, + "nbformat_minor": 0 +} diff --git a/Engineering_Physics_by_Prabir_K_Basu_&_Hrishikesh_Dhasmana/Chapter9.ipynb b/Engineering_Physics_by_Prabir_K_Basu_&_Hrishikesh_Dhasmana/Chapter9.ipynb new file mode 100644 index 00000000..49a8b300 --- /dev/null +++ b/Engineering_Physics_by_Prabir_K_Basu_&_Hrishikesh_Dhasmana/Chapter9.ipynb @@ -0,0 +1,194 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Chapter 9 : Special Theory of Relativity" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 1 , Page number 284" + ] + }, + { + "cell_type": "code", + "execution_count": 12, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Change in length in diameter= 6.37 *10**-2 m\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration\n", + "l=2*6371 #Diameter of earth\n", + "v=30 #velocity\n", + "c=3*10**5 #velocity of light\n", + "\n", + "#Calculations\n", + "dell=(l*v**2)/(2*c**2)/10**-5\n", + "\n", + "#Result\n", + "print\"Change in length in diameter=\",round(dell,2),\"*10**-2 m\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 2 , Page number 284" + ] + }, + { + "cell_type": "code", + "execution_count": 27, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The minimum speed v= 0.99999996247 c\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration\n", + "delt=10 #time duration at earth\n", + "delt1=1/365 \n", + "\n", + "#Calculations\n", + "v=math.sqrt(1-(delt1/delt)**2)\n", + "\n", + "#Result\n", + "print\"The minimum speed v= \",v,\"c\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 3 , Page number 285" + ] + }, + { + "cell_type": "code", + "execution_count": 39, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "(1) The time taken on earth (t) = 21.05 year\n", + "(2) The time taken on spaceship (t1) = 6.53 year\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration\n", + "L0=20 #The distance of the star\n", + "v=0.95 #velocity\n", + "\n", + "#Calculations\n", + "t=L0/v\n", + "L=L0*math.sqrt(1-v**2)\n", + "L=round(L,1)\n", + "t1=(L*3*10**8)/(v*3*10**8)\n", + "\n", + "#Result\n", + "print\"(1) The time taken on earth (t) = \",round(t,2),\"year\"\n", + "print\"(2) The time taken on spaceship (t1) = \",round(t1,2),\"year\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 4 , Page number 285" + ] + }, + { + "cell_type": "code", + "execution_count": 45, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "(1) The height will be same and the length(L0) = 6.25 m\n", + "(2) The time elapsed on his friend's watch(t1) = 8.0 sec\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration\n", + "L=5 #Lenth\n", + "v=0.6 #velocity\n", + "t=10 #time\n", + "\n", + "#Calculations\n", + "L0=L/math.sqrt(1-v**2)\n", + "t1=t*math.sqrt(1-v**2)\n", + "\n", + "#Result\n", + "print\"(1) The height will be same and the length(L0) = \",L0,\"m\"\n", + "print\"(2) The time elapsed on his friend's watch(t1) = \",t1,\"sec\"" + ] + } + ], + "metadata": { + "kernelspec": { + "display_name": "Python 2", + "language": "python", + "name": "python2" + }, + "language_info": { + "codemirror_mode": { + "name": "ipython", + "version": 2 + }, + "file_extension": ".py", + "mimetype": "text/x-python", + "name": "python", + "nbconvert_exporter": "python", + "pygments_lexer": "ipython2", + "version": "2.7.3" + } + }, + "nbformat": 4, + "nbformat_minor": 0 +} diff --git a/Engineering_Physics_by_Prabir_K_Basu_&_Hrishikesh_Dhasmana/screenshots/Screenshot_(1).png b/Engineering_Physics_by_Prabir_K_Basu_&_Hrishikesh_Dhasmana/screenshots/Screenshot_(1).png Binary files differnew file mode 100644 index 00000000..e7bfcc51 --- /dev/null +++ b/Engineering_Physics_by_Prabir_K_Basu_&_Hrishikesh_Dhasmana/screenshots/Screenshot_(1).png diff --git a/Engineering_Physics_by_Prabir_K_Basu_&_Hrishikesh_Dhasmana/screenshots/Screenshot_(2).png b/Engineering_Physics_by_Prabir_K_Basu_&_Hrishikesh_Dhasmana/screenshots/Screenshot_(2).png Binary files differnew file mode 100644 index 00000000..0f3e8d1a --- /dev/null +++ b/Engineering_Physics_by_Prabir_K_Basu_&_Hrishikesh_Dhasmana/screenshots/Screenshot_(2).png diff --git a/Engineering_Physics_by_Prabir_K_Basu_&_Hrishikesh_Dhasmana/screenshots/Screenshot_(3).png b/Engineering_Physics_by_Prabir_K_Basu_&_Hrishikesh_Dhasmana/screenshots/Screenshot_(3).png Binary files differnew file mode 100644 index 00000000..f66a8b73 --- /dev/null +++ b/Engineering_Physics_by_Prabir_K_Basu_&_Hrishikesh_Dhasmana/screenshots/Screenshot_(3).png |