summaryrefslogtreecommitdiff
path: root/Physics_for_BSc(Paper-3)
diff options
context:
space:
mode:
authorhardythe12015-04-07 15:58:05 +0530
committerhardythe12015-04-07 15:58:05 +0530
commit92cca121f959c6616e3da431c1e2d23c4fa5e886 (patch)
tree205e68d0ce598ac5caca7de839a2934d746cce86 /Physics_for_BSc(Paper-3)
parentb14c13fcc6bb6d01c468805d612acb353ec168ac (diff)
downloadPython-Textbook-Companions-92cca121f959c6616e3da431c1e2d23c4fa5e886.tar.gz
Python-Textbook-Companions-92cca121f959c6616e3da431c1e2d23c4fa5e886.tar.bz2
Python-Textbook-Companions-92cca121f959c6616e3da431c1e2d23c4fa5e886.zip
added books
Diffstat (limited to 'Physics_for_BSc(Paper-3)')
-rwxr-xr-xPhysics_for_BSc(Paper-3)/Chapter1.ipynb201
-rwxr-xr-xPhysics_for_BSc(Paper-3)/Chapter10.ipynb514
-rwxr-xr-xPhysics_for_BSc(Paper-3)/Chapter11.ipynb1412
-rwxr-xr-xPhysics_for_BSc(Paper-3)/Chapter2.ipynb192
-rwxr-xr-xPhysics_for_BSc(Paper-3)/Chapter3.ipynb202
-rwxr-xr-xPhysics_for_BSc(Paper-3)/Chapter4.ipynb333
-rwxr-xr-xPhysics_for_BSc(Paper-3)/Chapter5.ipynb384
-rwxr-xr-xPhysics_for_BSc(Paper-3)/Chapter6.ipynb650
-rwxr-xr-xPhysics_for_BSc(Paper-3)/Chapter7.ipynb413
-rwxr-xr-xPhysics_for_BSc(Paper-3)/Chapter8.ipynb148
-rwxr-xr-xPhysics_for_BSc(Paper-3)/Chapter9.ipynb693
-rwxr-xr-xPhysics_for_BSc(Paper-3)/README.txt10
-rwxr-xr-xPhysics_for_BSc(Paper-3)/screenshots/1.pngbin0 -> 30975 bytes
-rwxr-xr-xPhysics_for_BSc(Paper-3)/screenshots/2.pngbin0 -> 39459 bytes
-rwxr-xr-xPhysics_for_BSc(Paper-3)/screenshots/3.pngbin0 -> 27633 bytes
15 files changed, 5152 insertions, 0 deletions
diff --git a/Physics_for_BSc(Paper-3)/Chapter1.ipynb b/Physics_for_BSc(Paper-3)/Chapter1.ipynb
new file mode 100755
index 00000000..6dc29562
--- /dev/null
+++ b/Physics_for_BSc(Paper-3)/Chapter1.ipynb
@@ -0,0 +1,201 @@
+{
+ "metadata": {
+ "name": "",
+ "signature": "sha256:ba3f78351f4be2023ce816790e91ae988fafb883f552e13733bb7da3271b13e0"
+ },
+ "nbformat": 3,
+ "nbformat_minor": 0,
+ "worksheets": [
+ {
+ "cells": [
+ {
+ "cell_type": "heading",
+ "level": 1,
+ "metadata": {},
+ "source": [
+ "1: Electrostatics-Basic concepts"
+ ]
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example number 1.1, Page number 12"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#importing modules\n",
+ "import math\n",
+ "from __future__ import division\n",
+ "\n",
+ "#Variable declaration\n",
+ "r=0.053*10**-9; #distance(m)\n",
+ "q1=1.6*10**-19; #charge on electron(C)\n",
+ "q2=1.6*10**-19; #charge on proton(C)\n",
+ "#let x=1/(4*math.pi*epsilon0)\n",
+ "x=9*10**9;\n",
+ "\n",
+ "#Calculation\n",
+ "F=x*q1*q2/(r**2); #force of attraction(N)\n",
+ "\n",
+ "#Result\n",
+ "print \"force of attraction is\",round(F*10**8,1),\"*10**-8 N\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "force of attraction is 8.2 *10**-8 N\n"
+ ]
+ }
+ ],
+ "prompt_number": 3
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example number 1.2, Page number 13"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#importing modules\n",
+ "import math\n",
+ "from __future__ import division\n",
+ "\n",
+ "#Variable declaration\n",
+ "r=2; #distance(m)\n",
+ "q1plusq2=5*10**-4; #positive charge(C)\n",
+ "#let x=1/(4*math.pi*epsilon0)\n",
+ "x=9*10**9;\n",
+ "F=1; #force(N)\n",
+ "\n",
+ "#Calculation\n",
+ "q1q2=F*(r**2)/x; #product of charges(C**2)\n",
+ "q1minusq2=math.sqrt((q1plusq2**2)-(4*q1q2)); ##difference of charges(C)\n",
+ "twoq1=q1plusq2+q1minusq2;\n",
+ "q1=twoq1/2; #charge on individual sphere(C)\n",
+ "twoq2=q1plusq2-q1minusq2;\n",
+ "q2=twoq2/2; #charge on individual sphere(C)\n",
+ "\n",
+ "#Result\n",
+ "print \"the charges on individual spheres are\",round(q1*10**4,3),\"*10**-4 and\",round(q2*10**4,3),\"*10**-4\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "the charges on individual spheres are 4.991 *10**-4 and 0.009 *10**-4\n"
+ ]
+ }
+ ],
+ "prompt_number": 11
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example number 1.3, Page number 13"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#importing modules\n",
+ "import math\n",
+ "from __future__ import division\n",
+ "\n",
+ "#Variable declaration\n",
+ "m=9.1*10**-31; #mass of electron(kg)\n",
+ "g=9.8; #acceleration due to gravity(m/sec**2)\n",
+ "q=1.6*10**-19; #charge on electron(C)\n",
+ "\n",
+ "#Calculation\n",
+ "F1=m*g; #force by electron(N)\n",
+ "E=F1/(2*q); #intensity of electric field(N/C)\n",
+ "\n",
+ "#Result\n",
+ "print \"intensity of electric field is\",round(E*10**11,3),\"*10**-11 N/C\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "intensity of electric field is 2.787 *10**-11 N/C\n"
+ ]
+ }
+ ],
+ "prompt_number": 10
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example number 1.4, Page number 14"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#importing modules\n",
+ "import math\n",
+ "from __future__ import division\n",
+ "\n",
+ "#Variable declaration\n",
+ "r=12*10**-2; #distance(m)\n",
+ "q1=2*10**-7; #charge(C)\n",
+ "q2=8.5*10**-8; #charge(C)\n",
+ "#let x=1/(4*math.pi*epsilon0)\n",
+ "x=9*10**9;\n",
+ "\n",
+ "#Calculation\n",
+ "E1=x*q2/(r**2); #intensity at electric field at q1 due to q2(N/C)\n",
+ "E2=x*q1/(r**2); #intensity at electric field at q2 due to q1(N/C)\n",
+ "F=x*q1*q2/(r**2); #force of attraction(N)\n",
+ "\n",
+ "#Result\n",
+ "print \"intensity at electric field at q1 due to q2 is\",round(E1*10**-5,2),\"*10**5 N/C\"\n",
+ "print \"intensity at electric field at q1 due to q2 is\",round(E2*10**-5,2),\"*10**5 N/C\"\n",
+ "print \"force of attraction is\",round(F,4),\"N\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "intensity at electric field at q1 due to q2 is 0.53 *10**5 N/C\n",
+ "intensity at electric field at q1 due to q2 is 1.25 *10**5 N/C\n",
+ "force of attraction is 0.0106 N\n"
+ ]
+ }
+ ],
+ "prompt_number": 16
+ }
+ ],
+ "metadata": {}
+ }
+ ]
+} \ No newline at end of file
diff --git a/Physics_for_BSc(Paper-3)/Chapter10.ipynb b/Physics_for_BSc(Paper-3)/Chapter10.ipynb
new file mode 100755
index 00000000..bbd7bf2e
--- /dev/null
+++ b/Physics_for_BSc(Paper-3)/Chapter10.ipynb
@@ -0,0 +1,514 @@
+{
+ "metadata": {
+ "name": "",
+ "signature": "sha256:29243b650c743da1a480be05cc52b4de20f23c7c5b490c9e7425f7139654d6d7"
+ },
+ "nbformat": 3,
+ "nbformat_minor": 0,
+ "worksheets": [
+ {
+ "cells": [
+ {
+ "cell_type": "heading",
+ "level": 1,
+ "metadata": {},
+ "source": [
+ "10: Semiconductor Devices"
+ ]
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example number 10.1, Page number 335"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#importing modules\n",
+ "import math\n",
+ "from __future__ import division\n",
+ "\n",
+ "#Variable declaration\n",
+ "rho=1.7*10**-6; #specific resistance of Cu(ohm cm)\n",
+ "w=63.54; #atomic weight of Cu\n",
+ "d=8.96; #density of Cu(g/cm**3)\n",
+ "A=6.025*10**23; #avagadro number\n",
+ "q=1.6*10**-19; #charge on electron(C)\n",
+ "\n",
+ "#Calculation\n",
+ "x=A*d/w; #number of free electrons in unit volume(per cm**3)\n",
+ "sigma=1/rho; #conductivity\n",
+ "mewn=sigma/(x*q); #mobility of electron(cm**2/Vs)\n",
+ "\n",
+ "#Result\n",
+ "print \"mobility of electron is\",round(mewn,2),\"cm**2/Vs\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "mobility of electron is 43.27 cm**2/Vs\n"
+ ]
+ }
+ ],
+ "prompt_number": 8
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example number 10.2, Page number 336"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#importing modules\n",
+ "import math\n",
+ "from __future__ import division\n",
+ "\n",
+ "#Variable declaration\n",
+ "q=1.6*10**-19; #charge on electron(C)\n",
+ "ni=1.6*10**10; #number of charge carriers\n",
+ "mewn=1500; #mobility of negative charge carriers(cm**2/Vs)\n",
+ "mewp=500; #mobility of positive charge carriers(cm**2/Vs)\n",
+ "\n",
+ "#Calculation\n",
+ "sigma=q*ni*(mewn+mewp); #conductivity of silicon(per ohm cm)\n",
+ "\n",
+ "#Result\n",
+ "print \"conductivity of silicon is\",sigma,\"per ohm cm\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "conductivity of silicon is 5.12e-06 per ohm cm\n"
+ ]
+ }
+ ],
+ "prompt_number": 9
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example number 10.3, Page number 348"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#importing modules\n",
+ "import math\n",
+ "from __future__ import division\n",
+ "\n",
+ "#Variable declaration\n",
+ "w=350*10**-9; #width(m)\n",
+ "E=5*10**5; #electric field intensity(V/m)\n",
+ "\n",
+ "#Calculation\n",
+ "V=E*w; #potential difference(V)\n",
+ "\n",
+ "#Result\n",
+ "print \"potential difference is\",V,\"V\"\n",
+ "print \"minimum energy required is\",V,\"eV\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "potential difference is 0.175 V\n",
+ "minimum energy required is 0.175 eV\n"
+ ]
+ }
+ ],
+ "prompt_number": 10
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example number 10.4, Page number 348"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#importing modules\n",
+ "import math\n",
+ "from __future__ import division\n",
+ "\n",
+ "#Variable declaration\n",
+ "I0=1.8*10**-6; #current(A)\n",
+ "V=0.25; #potential difference(V)\n",
+ "e=1.6*10**-19; #charge on electron(C)\n",
+ "eta=1;\n",
+ "k=1.38*10**-23; #boltzmann constant\n",
+ "T=293; #temperature(K)\n",
+ "\n",
+ "#Calculation\n",
+ "a=round(e*V/(eta*k*T));\n",
+ "I=I0*(math.exp(a)-1); #current through the diode(A)\n",
+ "\n",
+ "#Result\n",
+ "print \"current through the diode is\",round(I*10**3),\"mA\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "current through the diode is 40.0 mA\n"
+ ]
+ }
+ ],
+ "prompt_number": 16
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example number 10.5, Page number 357"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#importing modules\n",
+ "import math\n",
+ "from __future__ import division\n",
+ "\n",
+ "#Variable declaration\n",
+ "Vac=230; #voltage(V)\n",
+ "RL=2*10**3; #load resistance(ohm)\n",
+ "\n",
+ "#Calculation\n",
+ "Vm=math.sqrt(2)*Vac;\n",
+ "Vdc=Vm/math.pi; #DC voltage(V)\n",
+ "Idc=Vdc/RL; #DC current(A)\n",
+ "Irms=round(Vm/(2*RL),4); #rms value of current(A)\n",
+ "gama=math.sqrt(((Irms/Idc)**2)-1); #ripple factor\n",
+ "Pdc=(Idc**2)*RL; #DC power(W)\n",
+ "Pac=(Irms**2)*RL; #DC power(W)\n",
+ "eta=Pdc*100/Pac; #efficiency(%)\n",
+ "\n",
+ "#Result\n",
+ "print \"DC voltage is\",round(Vdc,1),\"V\"\n",
+ "print \"DC current is\",round(Idc*10**3,1),\"mA\"\n",
+ "print \"ripple factor is\",round(gama,2)\n",
+ "print \"answer for ripple factor varies due to rounding off errors\"\n",
+ "print \"efficiency is\",round(eta),\"%\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "DC voltage is 103.5 V\n",
+ "DC current is 51.8 mA\n",
+ "ripple factor is 1.21\n",
+ "answer for ripple factor varies due to rounding off errors\n",
+ "efficiency is 41.0 %\n"
+ ]
+ }
+ ],
+ "prompt_number": 27
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example number 10.6, Page number 361"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#importing modules\n",
+ "import math\n",
+ "from __future__ import division\n",
+ "\n",
+ "#Variable declaration\n",
+ "Vm=30; #AC voltage(V)\n",
+ "Rf=10; #resistance(ohm)\n",
+ "RL=1500; #load resistance(ohm)\n",
+ "\n",
+ "#Calculation\n",
+ "Im=Vm/(Rf+RL); #maximum current(A)\n",
+ "Im=Im*10**3; #maximum current(mA)\n",
+ "Idc=2*Im/math.pi; #DC current(mA)\n",
+ "Irms=Im/math.sqrt(2); #rms current(mA)\n",
+ "Pdc=(Idc**2)*RL/10**-3; #DC power(mW)\n",
+ "Pac=(Irms**2)*(Rf+RL)/10**-3; #AC power(mW)\n",
+ "eta=Pdc*100/Pac; #efficiency(%)\n",
+ "\n",
+ "#Result\n",
+ "print \"DC current is\",round(Idc,2),\"mA\"\n",
+ "print \"answer for DC current varies due to rounding off errors\"\n",
+ "print \"rms current is\",round(Irms,2),\"mA\"\n",
+ "print \"efficiency is\",round(eta,1),\"%\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "DC current is 12.65 mA\n",
+ "answer for DC current varies due to rounding off errors\n",
+ "rms current is 14.05 mA\n",
+ "efficiency is 80.5 %\n"
+ ]
+ }
+ ],
+ "prompt_number": 33
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example number 10.7, Page number 377"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#importing modules\n",
+ "import math\n",
+ "from __future__ import division\n",
+ "\n",
+ "#Variable declaration\n",
+ "alpha=0.99; #amplification factor\n",
+ "\n",
+ "#Calculation\n",
+ "beta=alpha/(1-alpha); #value of beta\n",
+ "\n",
+ "#Result\n",
+ "print \"value of beta is\",beta"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "value of beta is 99.0\n"
+ ]
+ }
+ ],
+ "prompt_number": 34
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example number 10.8, Page number 377"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#importing modules\n",
+ "import math\n",
+ "from __future__ import division\n",
+ "\n",
+ "#Variable declaration\n",
+ "alpha=0.9; #amplification factor\n",
+ "IE=4*10**-3; #emitter current(A)\n",
+ "ICO=12*10**-6; #current(A)\n",
+ "\n",
+ "#Calculation\n",
+ "IC=(alpha*IE)+ICO; #collector current(A)\n",
+ "IC=round(IC*10**3,2); #collector current(mA)\n",
+ "IB=IE-(IC*10**-3); #base current(A)\n",
+ "\n",
+ "#Result\n",
+ "print \"collector current is\",IC,\"mA\"\n",
+ "print \"base current is\",IB*10**6,\"micro A\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "collector current is 3.61 mA\n",
+ "base current is 390.0 micro A\n"
+ ]
+ }
+ ],
+ "prompt_number": 42
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example number 10.9, Page number 394"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#importing modules\n",
+ "import math\n",
+ "from __future__ import division\n",
+ "\n",
+ "#Variable declaration\n",
+ "A=-120; #gain\n",
+ "beta=-0.1; #feedback factor\n",
+ "V=5*10**-3; #input voltage(V)\n",
+ "\n",
+ "#Calculation\n",
+ "a=A*beta;\n",
+ "Af=round(A/(1+a),1); \n",
+ "ff=20*math.log10(A/Af); #feedback factor(dB)\n",
+ "phis=(1+a)*V; #input voltage(V)\n",
+ "phio=Af*phis; #output voltage(V)\n",
+ "\n",
+ "#Result\n",
+ "print \"feedback factor is\",round(ff,1),\"dB\"\n",
+ "print \"answer for feedback factor varies due to rounding off errors\"\n",
+ "print \"input voltage is\",phis*10**3,\"mV\"\n",
+ "print \"output voltage is\",phio*10**3,\"mV\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "feedback factor is 22.3 dB\n",
+ "answer for feedback factor varies due to rounding off errors\n",
+ "input voltage is 65.0 mV\n",
+ "output voltage is -598.0 mV\n"
+ ]
+ }
+ ],
+ "prompt_number": 50
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example number 10.10, Page number 395"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#importing modules\n",
+ "import math\n",
+ "from __future__ import division\n",
+ "\n",
+ "#Variable declaration\n",
+ "A1=4000; #gain\n",
+ "A2=8000; #increased gain\n",
+ "beta=0.04; #feedback factor\n",
+ "\n",
+ "#Calculation\n",
+ "Af1=A1/(1+(A1*beta)); \n",
+ "Af2=A2/(1+(A2*beta)); \n",
+ "Af=1/beta; #value of Af\n",
+ "\n",
+ "#Result\n",
+ "print \"values of Af are\",round(Af1,2),\"and\",round(Af2,2)\n",
+ "print \"hence the changes are very small. value of Af is\",Af"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "values of Af are 24.84 and 24.92\n",
+ "hence the changes are very small. value of Af is 25.0\n"
+ ]
+ }
+ ],
+ "prompt_number": 52
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example number 10.11, Page number 395"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#importing modules\n",
+ "import math\n",
+ "from __future__ import division\n",
+ "\n",
+ "#Variable declaration\n",
+ "A=40; #gain\n",
+ "Af=10; #decreased gain\n",
+ "\n",
+ "#Calculation\n",
+ "beta=((A/Af)-1)*100/A; #percentage of feedback(%)\n",
+ "\n",
+ "#Result\n",
+ "print \"percentage of feedback is\",beta,\"%\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "percentage of feedback is 7.5 %\n"
+ ]
+ }
+ ],
+ "prompt_number": 53
+ }
+ ],
+ "metadata": {}
+ }
+ ]
+} \ No newline at end of file
diff --git a/Physics_for_BSc(Paper-3)/Chapter11.ipynb b/Physics_for_BSc(Paper-3)/Chapter11.ipynb
new file mode 100755
index 00000000..cdfa523b
--- /dev/null
+++ b/Physics_for_BSc(Paper-3)/Chapter11.ipynb
@@ -0,0 +1,1412 @@
+{
+ "metadata": {
+ "name": "",
+ "signature": "sha256:3823c7883d62d9ae64fea382b9f92645401f2140b77356ae18d5124fb244bdec"
+ },
+ "nbformat": 3,
+ "nbformat_minor": 0,
+ "worksheets": [
+ {
+ "cells": [
+ {
+ "cell_type": "heading",
+ "level": 1,
+ "metadata": {},
+ "source": [
+ "11: Digital principles"
+ ]
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example number 11.1, Page number 408"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#importing modules\n",
+ "import math\n",
+ "from __future__ import division\n",
+ "\n",
+ "#Variable declaration\n",
+ "a='1001101'; #binary number\n",
+ "\n",
+ "#Calculation\n",
+ "b=int(a,2); #number in decimal form\n",
+ "\n",
+ "#Result\n",
+ "print \"number in decimal form is\",b"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "number in decimal form is 77\n"
+ ]
+ }
+ ],
+ "prompt_number": 136
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example number 11.2, Page number 408"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#importing modules\n",
+ "import math\n",
+ "from __future__ import division\n",
+ "\n",
+ "#Variable declaration\n",
+ "a='1001.101'; #binary number\n",
+ "\n",
+ "#Calculation\n",
+ "def parse_bin(s):\n",
+ " t = s.split('.')\n",
+ " return int(t[0], 2) + int(t[1], 2) / 2.**len(t[1])\n",
+ "\n",
+ "n=parse_bin(a); #number in decimal form\n",
+ "\n",
+ "#Result\n",
+ "print \"number in decimal form is\",n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "number in decimal form is 9.625\n"
+ ]
+ }
+ ],
+ "prompt_number": 137
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example number 11.3, Page number 409"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#importing modules\n",
+ "import math\n",
+ "from __future__ import division\n",
+ "\n",
+ "#Variable declaration\n",
+ "a='246'; #octal number\n",
+ "\n",
+ "#Calculation\n",
+ "n=int(a,8); #number in decimal form\n",
+ "\n",
+ "#Result\n",
+ "print \"number in decimal form is\",n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "number in decimal form is 166\n"
+ ]
+ }
+ ],
+ "prompt_number": 138
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example number 11.4, Page number 409"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#importing modules\n",
+ "import math\n",
+ "from __future__ import division\n",
+ "\n",
+ "#Variable declaration\n",
+ "a='136.24'; #octal number\n",
+ "\n",
+ "#Calculation\n",
+ "def parse_bin(s):\n",
+ " t = s.split('.')\n",
+ " return int(t[0], 8) + int(t[1], 8) / 8.**len(t[1])\n",
+ "\n",
+ "n=parse_bin(a); #number in decimal form\n",
+ "\n",
+ "#Result\n",
+ "print \"number in decimal form is\",n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "number in decimal form is 94.3125\n"
+ ]
+ }
+ ],
+ "prompt_number": 139
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example number 11.5, Page number 410"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#importing modules\n",
+ "import math\n",
+ "from __future__ import division\n",
+ "\n",
+ "#Variable declaration\n",
+ "a='4FE'; #hexadecimal number\n",
+ "\n",
+ "#Calculation\n",
+ "n=int(a,16); #number in decimal form\n",
+ "\n",
+ "#Result\n",
+ "print \"number in decimal form is\",n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "number in decimal form is 1278\n"
+ ]
+ }
+ ],
+ "prompt_number": 140
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example number 11.6, Page number 411"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#importing modules\n",
+ "import math\n",
+ "from __future__ import division\n",
+ "\n",
+ "#Variable declaration\n",
+ "a='10'; #binary number\n",
+ "\n",
+ "#Calculation\n",
+ "b=int(a,2); #number in decimal form\n",
+ "\n",
+ "#Result\n",
+ "print \"number in decimal form is\",b"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "number in decimal form is 2\n"
+ ]
+ }
+ ],
+ "prompt_number": 141
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example number 11.7, Page number 411"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#importing modules\n",
+ "import math\n",
+ "from __future__ import division\n",
+ "\n",
+ "#Variable declaration\n",
+ "a='11111'; #binary number\n",
+ "\n",
+ "#Calculation\n",
+ "b=int(a,2); #number in decimal form\n",
+ "\n",
+ "#Result\n",
+ "print \"number in decimal form is\",b"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "number in decimal form is 31\n"
+ ]
+ }
+ ],
+ "prompt_number": 142
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example number 11.8, Page number 412"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#importing modules\n",
+ "import math\n",
+ "from __future__ import division\n",
+ "\n",
+ "#Variable declaration\n",
+ "a=41; #decimal number\n",
+ "\n",
+ "#Calculation\n",
+ "n=bin(a); #binary equivalent\n",
+ "\n",
+ "#Result\n",
+ "print \"binary equivalent is\",n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "binary equivalent is 0b101001\n"
+ ]
+ }
+ ],
+ "prompt_number": 143
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example number 11.9, Page number 412"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#importing modules\n",
+ "import math\n",
+ "from __future__ import division\n",
+ "\n",
+ "#Variable declaration\n",
+ "a=0.65625; #decimal number\n",
+ "\n",
+ "#Calculation\n",
+ "x1=a*2;\n",
+ "n1=int(x1); #carry\n",
+ "x2=(x1-n1)*2;\n",
+ "n2=int(x2); #carry\n",
+ "x3=x2*2;\n",
+ "n3=int(x3); #carry\n",
+ "x4=(x3-n3)*2;\n",
+ "n4=int(x4); #carry\n",
+ "x5=x4*2;\n",
+ "n5=int(x5); #carry\n",
+ "\n",
+ "#Result\n",
+ "print \"since the given decimal number is fractional the binary equivalent will be 0.\",n1,n2,n3,n4,n5"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "since the given decimal number is fractional the binary equivalent will be 0. 1 0 1 0 1\n"
+ ]
+ }
+ ],
+ "prompt_number": 144
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example number 11.10, Page number 413"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#importing modules\n",
+ "import math\n",
+ "from __future__ import division\n",
+ "\n",
+ "#Variable declaration\n",
+ "a='110111.101'; #binary number\n",
+ "\n",
+ "#Calculation\n",
+ "def parse_bin(s):\n",
+ " t = s.split('.')\n",
+ " return int(t[0], 2) + int(t[1], 2) / 2.**len(t[1])\n",
+ "\n",
+ "n=parse_bin(a); #number in decimal form\n",
+ "\n",
+ "#Result\n",
+ "print \"number in decimal form is\",n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "number in decimal form is 55.625\n"
+ ]
+ }
+ ],
+ "prompt_number": 145
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example number 11.11, Page number 413"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#importing modules\n",
+ "import math\n",
+ "from __future__ import division\n",
+ "\n",
+ "#Variable declaration\n",
+ "a='1001'; #binary number\n",
+ "b='1111'; #binary number\n",
+ "\n",
+ "#Calculation\n",
+ "sum=int(a,2)+int(b,2); #sum of two binary numbers\n",
+ "sum=bin(sum);\n",
+ "\n",
+ "#Result\n",
+ "print \"sum of two binary numbers is\",sum"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "sum of two binary numbers is 0b11000\n"
+ ]
+ }
+ ],
+ "prompt_number": 146
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example number 11.12, Page number 414"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#importing modules\n",
+ "import math\n",
+ "from __future__ import division\n",
+ "\n",
+ "#Variable declaration\n",
+ "a='011'; #binary number\n",
+ "b='101'; #binary number\n",
+ "\n",
+ "#Calculation\n",
+ "diff=int(b,2)-int(a,2); #difference of two binary numbers\n",
+ "diff=bin(diff);\n",
+ "\n",
+ "#Result\n",
+ "print \"difference of two binary numbers is\",diff"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "difference of two binary numbers is 0b10\n"
+ ]
+ }
+ ],
+ "prompt_number": 147
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example number 11.13, Page number 415"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#importing modules\n",
+ "import math\n",
+ "from __future__ import division\n",
+ "\n",
+ "#Variable declaration\n",
+ "a='1011'; #binary number\n",
+ "b='0110'; #binary number\n",
+ "\n",
+ "#Calculation\n",
+ "diff=int(a,2)-int(b,2); #difference of two binary numbers\n",
+ "diff=bin(diff);\n",
+ "\n",
+ "#Result\n",
+ "print \"difference of two binary numbers is\",diff"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "difference of two binary numbers is 0b101\n"
+ ]
+ }
+ ],
+ "prompt_number": 148
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example number 11.14, Page number 415"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#importing modules\n",
+ "import math\n",
+ "from __future__ import division\n",
+ "\n",
+ "#Variable declaration\n",
+ "n='010' #binary number\n",
+ "\n",
+ "#Calculation\n",
+ "def complement(n):\n",
+ " size = len(format(n, 'b'))\n",
+ " comp = n ^ ((1 << size) - 1)\n",
+ " return '0b1{0:0{1}b}'.format(comp, size)\n",
+ "\n",
+ "a=complement((0b010))\n",
+ "\n",
+ "#Result\n",
+ "print \"1's complement of the number is\",a"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "1's complement of the number is 0b101\n"
+ ]
+ }
+ ],
+ "prompt_number": 149
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example number 11.15, Page number 415"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#importing modules\n",
+ "import math\n",
+ "from __future__ import division\n",
+ "\n",
+ "#Variable declaration\n",
+ "n='1110' #binary number\n",
+ "\n",
+ "#Calculation\n",
+ "def complement(n):\n",
+ " size = len(format(n, 'b'))\n",
+ " comp = n ^ ((1 << size) - 1)\n",
+ " return '0b{0:0{1}b}'.format(comp, size)\n",
+ "\n",
+ "a=complement((0b1110))\n",
+ "\n",
+ "#Result\n",
+ "print \"1's complement of the number is\",a"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "1's complement of the number is 0b0001\n"
+ ]
+ }
+ ],
+ "prompt_number": 150
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example number 11.16, Page number 416"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#importing modules\n",
+ "import math\n",
+ "from __future__ import division\n",
+ "\n",
+ "#Variable declaration\n",
+ "a='1011'; #binary number\n",
+ "b='1101'; #binary number\n",
+ "\n",
+ "#Calculation\n",
+ "diff=int(b,2)-int(a,2); #difference of two binary numbers\n",
+ "diff=bin(diff);\n",
+ "\n",
+ "#Result\n",
+ "print \"difference of two binary numbers is\",diff"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "difference of two binary numbers is 0b10\n"
+ ]
+ }
+ ],
+ "prompt_number": 152
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example number 11.17, Page number 416"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#importing modules\n",
+ "import math\n",
+ "from __future__ import division\n",
+ "\n",
+ "#Variable declaration\n",
+ "a='1100'; #binary number\n",
+ "b='1000'; #binary number\n",
+ "\n",
+ "#Calculation\n",
+ "diff=int(b,2)-int(a,2); #difference of two binary numbers\n",
+ "diff=bin(diff);\n",
+ "\n",
+ "#Result\n",
+ "print \"difference of two binary numbers is\",diff"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "difference of two binary numbers is -0b100\n"
+ ]
+ }
+ ],
+ "prompt_number": 153
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example number 11.18, Page number 416"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#importing modules\n",
+ "import math\n",
+ "from __future__ import division\n",
+ "\n",
+ "#Variable declaration\n",
+ "n='0101' #binary number\n",
+ "b='1'\n",
+ "\n",
+ "#Calculation\n",
+ "def complement(n):\n",
+ " size = len(format(n, 'b'))\n",
+ " comp = n ^ ((1 << size) - 1)\n",
+ " return '0b1{0:0{1}b}'.format(comp, size)\n",
+ "\n",
+ "a=complement((0b0101))\n",
+ "ans=int(a,2)+int(b,2); #2's complement of number\n",
+ "\n",
+ "#Result\n",
+ "print \"2's complement of number is\",bin(ans)"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "2's complement of number is 0b1011\n"
+ ]
+ }
+ ],
+ "prompt_number": 154
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example number 11.19, Page number 417"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#importing modules\n",
+ "import math\n",
+ "from __future__ import division\n",
+ "\n",
+ "#Variable declaration\n",
+ "n='101100' #binary number\n",
+ "b='1'\n",
+ "\n",
+ "#Calculation\n",
+ "def complement(n):\n",
+ " size = len(format(n, 'b'))\n",
+ " comp = n ^ ((1 << size) - 1)\n",
+ " return '0b{0:0{1}b}'.format(comp, size)\n",
+ "\n",
+ "a=complement((0b101100))\n",
+ "ans=int(a,2)+int(b,2); #2's complement of number\n",
+ "\n",
+ "#Result\n",
+ "print \"2's complement of number is\",bin(ans)"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "2's complement of number is 0b10100\n"
+ ]
+ }
+ ],
+ "prompt_number": 155
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example number 11.20, Page number 417"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#importing modules\n",
+ "import math\n",
+ "from __future__ import division\n",
+ "\n",
+ "#Variable declaration\n",
+ "a=bin(6);\n",
+ "b=bin(2);\n",
+ "\n",
+ "#Calculation\n",
+ "c= int(a,2)-int(b,2); #difference\n",
+ "\n",
+ "#Result\n",
+ "print \"difference is\",bin(c)"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "difference is 0b100\n"
+ ]
+ }
+ ],
+ "prompt_number": 156
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example number 11.21, Page number 418"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#importing modules\n",
+ "import math\n",
+ "from __future__ import division\n",
+ "\n",
+ "#Variable declaration\n",
+ "a=bin(3);\n",
+ "b=bin(5);\n",
+ "\n",
+ "#Calculation\n",
+ "c=int(a,2)-int(b,2); #difference\n",
+ "\n",
+ "#Result\n",
+ "print \"difference is\",bin(c)"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "difference is -0b10\n"
+ ]
+ }
+ ],
+ "prompt_number": 157
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example number 11.22, Page number 420"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#importing modules\n",
+ "import math\n",
+ "from __future__ import division\n",
+ "\n",
+ "#Variable declaration\n",
+ "a='01101110' #binary number\n",
+ "\n",
+ "#Calculation\n",
+ "ans=hex(int(a,2)); #equivalent hexadecimal number\n",
+ "\n",
+ "#Result\n",
+ "print \"equivalent hexadecimal number is\",ans"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "equivalent hexadecimal number is 0x6e\n"
+ ]
+ }
+ ],
+ "prompt_number": 158
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example number 11.23, Page number 420"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#importing modules\n",
+ "import math\n",
+ "from __future__ import division\n",
+ "\n",
+ "#Variable declaration\n",
+ "a='10110101111011' #binary number\n",
+ "\n",
+ "#Calculation\n",
+ "ans=hex(int(a,2)); #equivalent hexadecimal number\n",
+ "\n",
+ "#Result\n",
+ "print \"equivalent hexadecimal number is\",ans"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "equivalent hexadecimal number is 0x2d7b\n"
+ ]
+ }
+ ],
+ "prompt_number": 159
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example number 11.24, Page number 421"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#importing modules\n",
+ "import math\n",
+ "from __future__ import division\n",
+ "\n",
+ "#Variable declaration\n",
+ "a='1100111111011' #binary number\n",
+ "\n",
+ "#Calculation\n",
+ "ans=hex(int(a,2)); #equivalent hexadecimal number\n",
+ "\n",
+ "#Result\n",
+ "print \"equivalent hexadecimal number is\",ans"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "equivalent hexadecimal number is 0x19fb\n"
+ ]
+ }
+ ],
+ "prompt_number": 160
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example number 11.25, Page number 421"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#importing modules\n",
+ "import math\n",
+ "from __future__ import division\n",
+ "\n",
+ "#Variable declaration\n",
+ "a='11001110001' #integral part of binary number\n",
+ "b='000101111001'; #fractional part of binary number\n",
+ "\n",
+ "#Calculation\n",
+ "c=hex(int(a,2)); #converting into hexadecimal number\n",
+ "d=hex(int(b,2)); #converting into hexadecimal number\n",
+ "\n",
+ "#Result\n",
+ "print \"equivalent hexadecimal number is\",c,\".\",d"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "equivalent hexadecimal number is 0x671 . 0x179\n"
+ ]
+ }
+ ],
+ "prompt_number": 161
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example number 11.26, Page number 421"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#importing modules\n",
+ "import math\n",
+ "from __future__ import division\n",
+ "\n",
+ "#Variable declaration\n",
+ "a='6B9'; #umber in hexadecimal\n",
+ "\n",
+ "#Calculation\n",
+ "def float_to_binary(num):\n",
+ " exponent=0\n",
+ " shifted_num=num\n",
+ " while shifted_num != int(shifted_num): \n",
+ " shifted_num*=2\n",
+ " exponent+=1\n",
+ " if exponent==0:\n",
+ " return '{0:0b}'.format(int(shifted_num))\n",
+ " binary='{0:0{1}b}'.format(int(shifted_num),exponent+1)\n",
+ " integer_part=binary[:-exponent]\n",
+ " fractional_part=binary[-exponent:].rstrip('0')\n",
+ " return '{0}.{1}'.format(integer_part,fractional_part)\n",
+ "\n",
+ "def floathex_to_binary(floathex):\n",
+ " num = float.fromhex(floathex)\n",
+ " return float_to_binary(num)\n",
+ "\n",
+ "ans=(floathex_to_binary('6B9')); #equivalent binary number \n",
+ "\n",
+ "#Result\n",
+ "print \"equivalent binary number is\",ans "
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "equivalent binary number is 11010111001\n"
+ ]
+ }
+ ],
+ "prompt_number": 162
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example number 11.27, Page number 421"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#importing modules\n",
+ "import math\n",
+ "from __future__ import division\n",
+ "\n",
+ "#Variable declaration\n",
+ "a='6D.3A'; #number in hexadecimal\n",
+ "\n",
+ "#Calculation\n",
+ "def float_to_binary(num):\n",
+ " exponent=0\n",
+ " shifted_num=num\n",
+ " while shifted_num != int(shifted_num): \n",
+ " shifted_num*=2\n",
+ " exponent+=1\n",
+ " if exponent==0:\n",
+ " return '{0:0b}'.format(int(shifted_num))\n",
+ " binary='{0:0{1}b}'.format(int(shifted_num),exponent+1)\n",
+ " integer_part=binary[:-exponent]\n",
+ " fractional_part=binary[-exponent:].rstrip('0')\n",
+ " return '{0}.{1}'.format(integer_part,fractional_part)\n",
+ "\n",
+ "def floathex_to_binary(floathex):\n",
+ " num = float.fromhex(floathex)\n",
+ " return float_to_binary(num)\n",
+ "\n",
+ "ans=(floathex_to_binary('6D.3A')); #equivalent binary number \n",
+ "\n",
+ "#Result\n",
+ "print \"equivalent binary number is\",ans "
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "equivalent binary number is 1101101.0011101\n"
+ ]
+ }
+ ],
+ "prompt_number": 163
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example number 11.28, Page number 422"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#importing modules\n",
+ "import math\n",
+ "from __future__ import division\n",
+ "\n",
+ "#Variable declaration\n",
+ "a=5000; #decimal number\n",
+ "\n",
+ "#Calculation\n",
+ "ans=hex(a); #equivalent hexadecimal number\n",
+ "\n",
+ "#Result\n",
+ "print \"equivalent hexadecimal number is\",ans"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "equivalent hexadecimal number is 0x1388\n"
+ ]
+ }
+ ],
+ "prompt_number": 164
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example number 11.29, Page number 422"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#importing modules\n",
+ "import math\n",
+ "from __future__ import division\n",
+ "\n",
+ "#Variable declaration\n",
+ "a=14619; #decimal number\n",
+ "\n",
+ "#Calculation\n",
+ "ans=hex(a); #equivalent hexadecimal number\n",
+ "\n",
+ "#Result\n",
+ "print \"equivalent hexadecimal number is\",ans"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "equivalent hexadecimal number is 0x391b\n"
+ ]
+ }
+ ],
+ "prompt_number": 165
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example number 11.30, Page number 422"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#importing modules\n",
+ "import math\n",
+ "from __future__ import division\n",
+ "\n",
+ "#Variable declaration\n",
+ "a=15101; #decimal number\n",
+ "\n",
+ "#Calculation\n",
+ "ans=hex(a); #equivalent hexadecimal number\n",
+ "\n",
+ "#Result\n",
+ "print \"equivalent hexadecimal number is\",ans"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "equivalent hexadecimal number is 0x3afd\n"
+ ]
+ }
+ ],
+ "prompt_number": 166
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example number 11.31, Page number 423"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#importing modules\n",
+ "import math\n",
+ "from __future__ import division\n",
+ "\n",
+ "#Variable declaration\n",
+ "a='4B8'; #hexadecimal number\n",
+ "\n",
+ "#Calculation\n",
+ "ans=int(a,16); #equivalent decimal number\n",
+ "\n",
+ "#Result\n",
+ "print \"equivalent decimal number is\",ans"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "equivalent decimal number is 1208\n"
+ ]
+ }
+ ],
+ "prompt_number": 167
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example number 11.32, Page number 423"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#importing modules\n",
+ "import math\n",
+ "from __future__ import division\n",
+ "\n",
+ "#Variable declaration\n",
+ "a='3A4B'; #hexadecimal number\n",
+ "\n",
+ "#Calculation\n",
+ "ans=int(a,16); #equivalent decimal number\n",
+ "\n",
+ "#Result\n",
+ "print \"equivalent decimal number is\",ans\n",
+ "print \"answer given in the book is wrong\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "equivalent decimal number is 14923\n",
+ "answer given in the book is wrong\n"
+ ]
+ }
+ ],
+ "prompt_number": 168
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example number 11.33, Page number 424"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#importing modules\n",
+ "import math\n",
+ "from __future__ import division\n",
+ "\n",
+ "#Variable declaration\n",
+ "a='2B6D'; #number in hexadecimal\n",
+ "\n",
+ "#Calculation\n",
+ "ans=int(a,16); #equivalent decimal number\n",
+ "\n",
+ "#Result\n",
+ "print \"equivalent decimal number is\",ans "
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "equivalent decimal number is 11117\n"
+ ]
+ }
+ ],
+ "prompt_number": 169
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example number 11.34, Page number 424"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#importing modules\n",
+ "import math\n",
+ "from __future__ import division\n",
+ "\n",
+ "#Variable declaration\n",
+ "a='FC2'; #number in hexadecimal\n",
+ "b='DAB'; #number in hexadecimal\n",
+ "\n",
+ "#Calculation\n",
+ "ans=int(a,16)-int(b,16); #difference of two numbers\n",
+ "ans=hex(ans);\n",
+ "\n",
+ "#Result\n",
+ "print \"difference of two numbers is\",ans"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "difference of two numbers is 0x217\n"
+ ]
+ }
+ ],
+ "prompt_number": 170
+ }
+ ],
+ "metadata": {}
+ }
+ ]
+} \ No newline at end of file
diff --git a/Physics_for_BSc(Paper-3)/Chapter2.ipynb b/Physics_for_BSc(Paper-3)/Chapter2.ipynb
new file mode 100755
index 00000000..2fa0f214
--- /dev/null
+++ b/Physics_for_BSc(Paper-3)/Chapter2.ipynb
@@ -0,0 +1,192 @@
+{
+ "metadata": {
+ "name": "",
+ "signature": "sha256:ff31365c358b779c99b024fa56a9beb40a0947b196550247c290e3f8ef54a35f"
+ },
+ "nbformat": 3,
+ "nbformat_minor": 0,
+ "worksheets": [
+ {
+ "cells": [
+ {
+ "cell_type": "heading",
+ "level": 1,
+ "metadata": {},
+ "source": [
+ "2: Electrostatics-II"
+ ]
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example number 2.1, Page number 47"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#importing modules\n",
+ "import math\n",
+ "from __future__ import division\n",
+ "\n",
+ "#Variable declaration\n",
+ "dV=8*10**7; #potential on cloud(V)\n",
+ "dx=500; #height(m)\n",
+ "\n",
+ "#Calculation\n",
+ "E=dV/dx; #electric field intensity(V/m)\n",
+ "\n",
+ "#Result\n",
+ "print \"electric field intensity is\",E/10**4,\"*10**4 V/m\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "electric field intensity is 16.0 *10**4 V/m\n"
+ ]
+ }
+ ],
+ "prompt_number": 2
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example number 2.2, Page number 47"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#importing modules\n",
+ "import math\n",
+ "from __future__ import division\n",
+ "\n",
+ "#Variable declaration\n",
+ "dV=8000; #potential difference(V)\n",
+ "dx=0.2; #height(m)\n",
+ "q=5*10**-9; #positive charge(C)\n",
+ "\n",
+ "#Calculation\n",
+ "E=dV/dx; #electric field intensity(V/m)\n",
+ "F=q*E; #force acting(N)\n",
+ "\n",
+ "#Result\n",
+ "print \"force acting is\",F*10**4,\"*10**-4 N\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "force acting is 2.0 *10**-4 N\n"
+ ]
+ }
+ ],
+ "prompt_number": 4
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example number 2.3, Page number 47"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#importing modules\n",
+ "import math\n",
+ "from __future__ import division\n",
+ "\n",
+ "#Variable declaration\n",
+ "e=1.6*10**-19; #charge on proton(C)\n",
+ "z=79; #atomic number of gold\n",
+ "#let x=1/(4*pi*epsilon0)\n",
+ "x=9*10**9;\n",
+ "r=6.6*10**-15; #radius(m)\n",
+ "\n",
+ "#Calculation\n",
+ "q=z*e; #charge on gold nucleus(C)\n",
+ "V=x*q/r; #potential(V)\n",
+ "\n",
+ "#Result\n",
+ "print \"potential is\",round(V/10**6,1),\"*10**6 V\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "potential is 17.2 *10**6 V\n"
+ ]
+ }
+ ],
+ "prompt_number": 8
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example number 2.4, Page number 47"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#importing modules\n",
+ "import math\n",
+ "from __future__ import division\n",
+ "\n",
+ "#Variable declaration\n",
+ "theta1=0; #angle on axis(radian)\n",
+ "theta2=90; #angle on perpendicular bisector(degree)\n",
+ "r=1; #distance(m)\n",
+ "p=4.5*10**-10; #dipole moment(C/m)\n",
+ "#let x=1/(4*pi*epsilon0)\n",
+ "x=9*10**9;\n",
+ "\n",
+ "#Calculation\n",
+ "theta2=theta2*math.pi/180; #angle on perpendicular bisector(radian)\n",
+ "V1=x*p*math.cos(theta1)/(r**2); #electric potential on axis(V)\n",
+ "\n",
+ "#Result\n",
+ "print \"electric potential on axis is\",V1,\"V\"\n",
+ "print \"electric potential on perpendicular bisector is 0 V\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "electric potential on axis is 4.05 V\n",
+ "electric potential on perpendicular bisector is 0 V\n"
+ ]
+ }
+ ],
+ "prompt_number": 19
+ }
+ ],
+ "metadata": {}
+ }
+ ]
+} \ No newline at end of file
diff --git a/Physics_for_BSc(Paper-3)/Chapter3.ipynb b/Physics_for_BSc(Paper-3)/Chapter3.ipynb
new file mode 100755
index 00000000..41fd3b12
--- /dev/null
+++ b/Physics_for_BSc(Paper-3)/Chapter3.ipynb
@@ -0,0 +1,202 @@
+{
+ "metadata": {
+ "name": "",
+ "signature": "sha256:59e0fed0245970f183161b17c490835692a2ba1742a8550242f21d13537b7e5e"
+ },
+ "nbformat": 3,
+ "nbformat_minor": 0,
+ "worksheets": [
+ {
+ "cells": [
+ {
+ "cell_type": "heading",
+ "level": 1,
+ "metadata": {},
+ "source": [
+ "3: Dielectrics"
+ ]
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example number 3.1, Page number 68"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#importing modules\n",
+ "import math\n",
+ "from __future__ import division\n",
+ "\n",
+ "#Variable declaration\n",
+ "k=78; #dielectric constant of water\n",
+ "epsilon0=8.9*10**-12; #dielectric permittivity of free space\n",
+ "\n",
+ "#Calculation\n",
+ "epsilon=k*epsilon0; #dielectric permittivity(C**2/Nm2)\n",
+ "chi=epsilon-epsilon0; #dielectric susceptibility(C**2/Nm2)\n",
+ "\n",
+ "#Result\n",
+ "print \"dielectric permittivity is\",epsilon,\"C**2/Nm2\"\n",
+ "print \"dielectric susceptibility is\",chi,\"C**2/Nm2\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "dielectric permittivity is 6.942e-10 C**2/Nm2\n",
+ "dielectric susceptibility is 6.853e-10 C**2/Nm2\n"
+ ]
+ }
+ ],
+ "prompt_number": 1
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example number 3.2, Page number 68"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#importing modules\n",
+ "import math\n",
+ "from __future__ import division\n",
+ "\n",
+ "#Variable declaration\n",
+ "epsilon=15*10**-12; #dielectric permittivity(C**2/Nm2)\n",
+ "A=1; #area of plates(m**2)\n",
+ "q=60*10**-6; #charge(C)\n",
+ "epsilon0=8.9*10**-12; #dielectric permittivity of free space\n",
+ "\n",
+ "#Calculation\n",
+ "sigma=q/A; #surface charge density(C/m**2)\n",
+ "chi=epsilon-epsilon0; #dielectric susceptibility(C**2/Nm2)\n",
+ "E=sigma/epsilon; #electric field intensity(N/C)\n",
+ "P=chi*E; #polarization(C/m**2)\n",
+ "\n",
+ "#Result\n",
+ "print \"electric field intensity is\",E/10**6,\"*10**6 N/C\"\n",
+ "print \"polarization is\",P*10**6,\"*10**-6 C/m**2\"\n",
+ "print \"susceptibility is\",chi,\"C**2/Nm2\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "electric field intensity is 4.0 *10**6 N/C\n",
+ "polarization is 24.4 *10**-6 C/m**2\n",
+ "susceptibility is 6.1e-12 C**2/Nm2\n"
+ ]
+ }
+ ],
+ "prompt_number": 4
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example number 3.3, Page number 69"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#importing modules\n",
+ "import math\n",
+ "from __future__ import division\n",
+ "\n",
+ "#Variable declaration\n",
+ "k=5.4; #dielectric constant\n",
+ "E=10**6; #electric field intensity(N/C)\n",
+ "epsilon0=8.9*10**-12; #dielectric permittivity of free space\n",
+ "\n",
+ "#Calculation\n",
+ "D=k*epsilon0*E; #electric displacement(C/m**2)\n",
+ "Ed=(1/2)*k*epsilon0*(E**2); #energy density in dielectric(J/m**2)\n",
+ "\n",
+ "#Result\n",
+ "print \"electric displacement is\",D,\"C/m**2\"\n",
+ "print \"answer given in the book is wrong\"\n",
+ "print \"energy density in dielectric is\",Ed,\"J/m**2\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "electric displacement is 4.806e-05 C/m**2\n",
+ "answer given in the book is wrong\n",
+ "energy density in dielectric is 24.03 J/m**2\n"
+ ]
+ }
+ ],
+ "prompt_number": 6
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example number 3.4, Page number 69"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#importing modules\n",
+ "import math\n",
+ "from __future__ import division\n",
+ "\n",
+ "#Variable declaration\n",
+ "chi=35.4*10**-12; #susceptibility(C**2/Nm2)\n",
+ "epsilon0=8.85*10**-12; #dielectric permittivity of free space\n",
+ "\n",
+ "#Calculation\n",
+ "k=1+(chi/epsilon0); #dielectric constant\n",
+ "epsilon=epsilon0*k; #permittivity(C/Nm**2)\n",
+ "\n",
+ "#Result\n",
+ "print \"dielectric constant is\",k\n",
+ "print \"permittivity is\",epsilon,\"C/Nm**2\"\n",
+ "print \"answer given in the book is wrong\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "dielectric constant is 5.0\n",
+ "permittivity is 4.425e-11 C/Nm**2\n",
+ "answer given in the book is wrong\n"
+ ]
+ }
+ ],
+ "prompt_number": 8
+ }
+ ],
+ "metadata": {}
+ }
+ ]
+} \ No newline at end of file
diff --git a/Physics_for_BSc(Paper-3)/Chapter4.ipynb b/Physics_for_BSc(Paper-3)/Chapter4.ipynb
new file mode 100755
index 00000000..3a0be628
--- /dev/null
+++ b/Physics_for_BSc(Paper-3)/Chapter4.ipynb
@@ -0,0 +1,333 @@
+{
+ "metadata": {
+ "name": "",
+ "signature": "sha256:50315b4dee267422712255a4580dea3156e39933e372f17694b3cb35adb8e098"
+ },
+ "nbformat": 3,
+ "nbformat_minor": 0,
+ "worksheets": [
+ {
+ "cells": [
+ {
+ "cell_type": "heading",
+ "level": 1,
+ "metadata": {},
+ "source": [
+ "4: Capacitors"
+ ]
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example number 4.1, Page number 91"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#importing modules\n",
+ "import math\n",
+ "from __future__ import division\n",
+ "\n",
+ "#Variable declaration\n",
+ "r=6750*10**3; #radius of earth(m)\n",
+ "#let x=4*pi*epsilon0\n",
+ "x=1/(9*10**9); \n",
+ "\n",
+ "#Calculation\n",
+ "C=x*r; #capacitance(F)\n",
+ "C=C*10**6; #capacitance(micro F)\n",
+ "\n",
+ "#Result\n",
+ "print \"capacitance is\",C,\"micro F\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "capacitance is 750.0 micro F\n"
+ ]
+ }
+ ],
+ "prompt_number": 1
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example number 4.2, Page number 91"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#importing modules\n",
+ "import math\n",
+ "from __future__ import division\n",
+ "\n",
+ "#Variable declaration\n",
+ "C1=20*10**-6; #capacitance(F)\n",
+ "V1=500; #potential(V)\n",
+ "C2=10*10**-6; #capacitance(F)\n",
+ "V2=200; #potential(V)\n",
+ "\n",
+ "#Calculation\n",
+ "q1=C1*V1; #charge on 1st capacitor(C)\n",
+ "q2=C2*V2; #charge on 2nd capacitor(C)\n",
+ "C=C1+C2; #resultant capacitance(C)\n",
+ "V=(q1+q2)/C; #combined potential(V)\n",
+ "\n",
+ "#Result\n",
+ "print \"combined potential is\",V,\"V\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "combined potential is 400.0 V\n"
+ ]
+ }
+ ],
+ "prompt_number": 2
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example number 4.3, Page number 92"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#importing modules\n",
+ "import math\n",
+ "from __future__ import division\n",
+ "\n",
+ "#Variable declaration\n",
+ "Cp=5; #resultant capacitance in parallel(micro F)\n",
+ "Cs=1.2; #resultant capacitance in series(micro F)\n",
+ "\n",
+ "#Calculation\n",
+ "C1C2=Cp*Cs; #product of capacitance(micro F)\n",
+ "C1_C2=math.sqrt((Cp**2)-(4*C1C2)); #difference of capacitance(micro F)\n",
+ "twoC1=Cp+C1_C2; \n",
+ "C1=twoC1/2; \n",
+ "twoC2=Cp-C1_C2;\n",
+ "C2=twoC2/2;\n",
+ "\n",
+ "#Result\n",
+ "print \"values of capacitors are\",C1,\"micro F and\",C2,\"micro F\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "values of capacitors are 3.0 micro F and 2.0 micro F\n"
+ ]
+ }
+ ],
+ "prompt_number": 3
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example number 4.4, Page number 93"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#importing modules\n",
+ "import math\n",
+ "from __future__ import division\n",
+ "\n",
+ "#Variable declaration\n",
+ "C=0.2*10**-6; #capacitance(F)\n",
+ "V=2; #potential(V)\n",
+ "\n",
+ "#Calculation\n",
+ "U=(1/2)*C*(V**2); #energy stored(J)\n",
+ "\n",
+ "#Result\n",
+ "print \"energy stored is\",U,\"J\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "energy stored is 4e-07 J\n"
+ ]
+ }
+ ],
+ "prompt_number": 4
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example number 4.5, Page number 93"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#importing modules\n",
+ "import math\n",
+ "from __future__ import division\n",
+ "\n",
+ "#Variable declaration\n",
+ "A=1; #area of plates(m**2)\n",
+ "k=7; #dielectric constant\n",
+ "d=0.01*10**-2; #distance between plates(m)\n",
+ "V=300; #potential(V)\n",
+ "epsilon0=8.85*10**-12; #dielectric permittivity of free space\n",
+ "\n",
+ "#Calculation\n",
+ "C=k*epsilon0*A/d; #capacitance(F)\n",
+ "E=(1/2)*C*(V**2); #energy stored in capacitor(J)\n",
+ "\n",
+ "#Result\n",
+ "print \"energy stored in capacitor is\",round(E*10**3,3),\"*10**-3 J\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "energy stored in capacitor is 27.877 *10**-3 J\n"
+ ]
+ }
+ ],
+ "prompt_number": 9
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example number 4.6, Page number 93"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#importing modules\n",
+ "import math\n",
+ "from __future__ import division\n",
+ "\n",
+ "#Variable declaration\n",
+ "A=2; #area(m**2)\n",
+ "d=1*10**-2; #distance(m)\n",
+ "V0=6000; #potential(V)\n",
+ "V=2000; #potential(V)\n",
+ "epsilon0=8.85*10**-12; #dielectric permittivity of free space\n",
+ "\n",
+ "#Calculation\n",
+ "C0=epsilon0*A/d; #capacitance when there is no dielectric(F)\n",
+ "Q=C0*V0; #charge on each plate(C)\n",
+ "C=Q/V; #capacitance when there is dielectric(F)\n",
+ "k=C/C0; #dielectric constant\n",
+ "E0=V0/d; #electric field intensity with air medium(V/m)\n",
+ "E=V/d; #electric field intensity with dielectric(V/m)\n",
+ "\n",
+ "#Result\n",
+ "print \"capacitance when there is no dielectric is\",C0*10**9,\"nF\"\n",
+ "print \"charge on each plate is\",Q,\"C\"\n",
+ "print \"capacitance when there is dielectric is\",C*10**9,\"nF\"\n",
+ "print \"dielectric constant is\",k\n",
+ "print \"electric field intensity with air medium is\",E0/10**5,\"*10**5 V/m\"\n",
+ "print \"electric field intensity with dielectric is\",E/10**5,\"*10**5 V/m\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "capacitance when there is no dielectric is 1.77 nF\n",
+ "charge on each plate is 1.062e-05 C\n",
+ "capacitance when there is dielectric is 5.31 nF\n",
+ "dielectric constant is 3.0\n",
+ "electric field intensity with air medium is 6.0 *10**5 V/m\n",
+ "electric field intensity with dielectric is 2.0 *10**5 V/m\n"
+ ]
+ }
+ ],
+ "prompt_number": 11
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example number 4.7, Page number 95"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#importing modules\n",
+ "import math\n",
+ "from __future__ import division\n",
+ "\n",
+ "#Variable declaration\n",
+ "k=5.4; #dielectric constant\n",
+ "E=10**6; #electric field intensity(V/m)\n",
+ "A=50*10**-4; #area(m**2)\n",
+ "epsilon0=8.85*10**-12; #dielectric permittivity of free space\n",
+ "d=5*10**-3; #distance(m)\n",
+ "\n",
+ "#Calculation\n",
+ "u=(1/2)*k*epsilon0*(E**2); #energy density(J/m**3)\n",
+ "\n",
+ "#Result\n",
+ "print \"energy density is\",u,\"J/m**3\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "energy density is 23.895 J/m**3\n"
+ ]
+ }
+ ],
+ "prompt_number": 7
+ }
+ ],
+ "metadata": {}
+ }
+ ]
+} \ No newline at end of file
diff --git a/Physics_for_BSc(Paper-3)/Chapter5.ipynb b/Physics_for_BSc(Paper-3)/Chapter5.ipynb
new file mode 100755
index 00000000..3ad752c1
--- /dev/null
+++ b/Physics_for_BSc(Paper-3)/Chapter5.ipynb
@@ -0,0 +1,384 @@
+{
+ "metadata": {
+ "name": "",
+ "signature": "sha256:4564535166c2472d72e2dcbe6fdb282dd0ebdfe6b75d04aed6f0238329c6aca1"
+ },
+ "nbformat": 3,
+ "nbformat_minor": 0,
+ "worksheets": [
+ {
+ "cells": [
+ {
+ "cell_type": "heading",
+ "level": 1,
+ "metadata": {},
+ "source": [
+ "5: Magnetostatics"
+ ]
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example number 5.1, Page number 118"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#importing modules\n",
+ "import math\n",
+ "from __future__ import division\n",
+ "\n",
+ "#Variable declaration\n",
+ "m=1.7*10**-27; #mass of proton(kg)\n",
+ "q=1.6*10**-19; #charge of proton(C)\n",
+ "KE=6*10**6*q; #kinetic energy of proton(J) \n",
+ "B=2; #intensity of magnetic field(Wb/m**2)\n",
+ "theta=90*math.pi/180; #angle(radian)\n",
+ "\n",
+ "#Calculation\n",
+ "v=math.sqrt(2*KE/m); #velocity(m/s)\n",
+ "Fb=q*v*B*math.sin(theta); #force acting on proton(N)\n",
+ "\n",
+ "#Result\n",
+ "print \"force acting on proton is\",round(Fb*10**11,3),\"*10**-11 N\"\n",
+ "print \"answer given in the book is wrong\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "force acting on proton is 1.075 *10**-11 N\n",
+ "answer given in the book is wrong\n"
+ ]
+ }
+ ],
+ "prompt_number": 12
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example number 5.2, Page number 119"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#importing modules\n",
+ "import math\n",
+ "from __future__ import division\n",
+ "\n",
+ "#Variable declaration\n",
+ "r=6.4*10**6; #radius of earth(m)\n",
+ "P=6.4*10**21; #magnetic moment(Amp m**2)\n",
+ "\n",
+ "#Calculation\n",
+ "A=math.pi*(r**2); #area(m**2)\n",
+ "i=P/A; #current(amp)\n",
+ "\n",
+ "#Result\n",
+ "print \"current is\",round(i/10**7),\"*10**7 Amp\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "current is 5.0 *10**7 Amp\n"
+ ]
+ }
+ ],
+ "prompt_number": 13
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example number 5.3, Page number 119"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#importing modules\n",
+ "import math\n",
+ "from __future__ import division\n",
+ "\n",
+ "#Variable declaration\n",
+ "B0=1.7*10**-5; #magnetic flux density(Wb/m**2)\n",
+ "mew0=4*math.pi*10**-7; \n",
+ "\n",
+ "#Calculation\n",
+ "H=B0/mew0; #magnetic intensity(Amp/m)\n",
+ "\n",
+ "#Result\n",
+ "print \"magnetic intensity is\",round(H,1),\"Amp/m\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "magnetic intensity is 13.5 Amp/m\n"
+ ]
+ }
+ ],
+ "prompt_number": 14
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example number 5.4, Page number 119"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#importing modules\n",
+ "import math\n",
+ "from __future__ import division\n",
+ "\n",
+ "#Variable declaration\n",
+ "l=30*10**-2; #length(m)\n",
+ "A=10**-4; #area(m**2)\n",
+ "N=300; #number of turns\n",
+ "i=0.032; #current(ampere)\n",
+ "phi=2*10**-6; #magnetic flux(Wb)\n",
+ "mew0=4*math.pi*10**-7; \n",
+ "\n",
+ "#Calculation\n",
+ "B=phi/A; #magnetic flux density(wb/m**2)\n",
+ "H=N*i/l; #magnetising force(amp turns/m)\n",
+ "mew=B/H; #permeability of ion(Wb/Amp m)\n",
+ "mewr=mew/mew0; #relative permeability\n",
+ "\n",
+ "#Result\n",
+ "print \"magnetic flux density is\",B*10**2,\"*10**-2 wb/m**2\"\n",
+ "print \"magnetising force is\",H,\"amp turns/m\"\n",
+ "print \"permeability of ion is\",mew*10**4,\"*10**-4 Wb/Amp m\"\n",
+ "print \"relative permeability is\",round(mewr)\n",
+ "print \"answer for relative permeability differs due to round off errors\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "magnetic flux density is 2.0 *10**-2 wb/m**2\n",
+ "magnetising force is 32.0 amp turns/m\n",
+ "permeability of ion is 6.25 *10**-4 Wb/Amp m\n",
+ "relative permeability is 497.0\n",
+ "answer for relative permeability differs due to round off errors\n"
+ ]
+ }
+ ],
+ "prompt_number": 20
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example number 5.5, Page number 120"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#importing modules\n",
+ "import math\n",
+ "from __future__ import division\n",
+ "\n",
+ "#Variable declaration\n",
+ "M=600; #magnetic moment(cgs units)\n",
+ "V=20; #volume(cm**3)\n",
+ "H=50; #magnetic field(oersteds)\n",
+ "\n",
+ "#Calculation\n",
+ "I=M/V; #intensity of magnetisation(cgs units)\n",
+ "B=H+(4*math.pi*I); #flux density(guass)\n",
+ "\n",
+ "#Result\n",
+ "print \"flux density is\",round(B),\"guass\"\n",
+ "print \"answer given in the book is wrong\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "flux density is 427.0 guass\n",
+ "answer given in the book is wrong\n"
+ ]
+ }
+ ],
+ "prompt_number": 23
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example number 5.6, Page number 120"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#importing modules\n",
+ "import math\n",
+ "from __future__ import division\n",
+ "\n",
+ "#Variable declaration\n",
+ "m=12000; #mass(gm)\n",
+ "d=7.5; #density(g/cm**3)\n",
+ "new=50; #frequency(Hz)\n",
+ "a=3000; #area of hysterisis curve(erg/cm**3)\n",
+ "\n",
+ "#Calculation\n",
+ "V=m/d; #volume of core(cm**3)\n",
+ "El=a*V; #energy loss in 1 cycle(erg)\n",
+ "n=new*60*60; #number of cycles per hour\n",
+ "EL=El*n/10**7; #energy loss per hour(J)\n",
+ "\n",
+ "#Result\n",
+ "print \"energy loss per hour is\",EL/10**4,\"*10**4 J\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "energy loss per hour is 8.64 *10**4 J\n"
+ ]
+ }
+ ],
+ "prompt_number": 24
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example number 5.7, Page number 121"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#importing modules\n",
+ "import math\n",
+ "from __future__ import division\n",
+ "\n",
+ "#Variable declaration\n",
+ "B=8*math.pi; #magnetic flux density(wb/m**2)\n",
+ "H=2000; #magnetic field(amp turn/m)\n",
+ "mew0=4*math.pi*10**-7; \n",
+ "\n",
+ "#Calculation\n",
+ "mewr=B/(mew0*H); #relative permeability\n",
+ "chi=mewr-1; #susceptibility\n",
+ "\n",
+ "#Result\n",
+ "print \"susceptibility is\",chi"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "susceptibility is 9999.0\n"
+ ]
+ }
+ ],
+ "prompt_number": 25
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example number 5.8, Page number 121"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#importing modules\n",
+ "import math\n",
+ "from __future__ import division\n",
+ "\n",
+ "#Variable declaration\n",
+ "q=1.6*10**-19; #charge on electron(C)\n",
+ "i1=3;\n",
+ "j1=2;\n",
+ "k1=3; #components of vector\n",
+ "i2=3;\n",
+ "j2=4; \n",
+ "k2=0; #components of vector\n",
+ "i3=0;\n",
+ "j3=4;\n",
+ "k3=1; #components of vector\n",
+ "\n",
+ "#Calculation\n",
+ "i4=(j2*k3)-(j3*k2);\n",
+ "j4=(i2*k3)-(i3*k2);\n",
+ "k4=(i2*j3)-(i3*j2); #components of derived vector\n",
+ "i5=i1+i4;\n",
+ "j5=j1+j4;\n",
+ "k5=k1+k4;\n",
+ "F=q*math.sqrt((i5**2)+(j5**2)+(k5**2)); #Lorentz force(N)\n",
+ "\n",
+ "#Result\n",
+ "print \"Lorentz force is\",round(F*10**19,2),\"*10**-19 N\"\n",
+ "print \"answer given in the book is wrong\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Lorentz force is 27.67 *10**-19 N\n",
+ "answer given in the book is wrong\n"
+ ]
+ }
+ ],
+ "prompt_number": 29
+ }
+ ],
+ "metadata": {}
+ }
+ ]
+} \ No newline at end of file
diff --git a/Physics_for_BSc(Paper-3)/Chapter6.ipynb b/Physics_for_BSc(Paper-3)/Chapter6.ipynb
new file mode 100755
index 00000000..fe7643f3
--- /dev/null
+++ b/Physics_for_BSc(Paper-3)/Chapter6.ipynb
@@ -0,0 +1,650 @@
+{
+ "metadata": {
+ "name": "",
+ "signature": "sha256:6eaeb1b666053d6a5e25f6642f9c553eb5c875421649f4bad88cbcf5e3456f43"
+ },
+ "nbformat": 3,
+ "nbformat_minor": 0,
+ "worksheets": [
+ {
+ "cells": [
+ {
+ "cell_type": "heading",
+ "level": 1,
+ "metadata": {},
+ "source": [
+ "6: Moving charge in electric and magnetic fields"
+ ]
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example number 6.1, Page number 159"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#importing modules\n",
+ "import math\n",
+ "from __future__ import division\n",
+ "\n",
+ "#Variable declaration\n",
+ "theta=90-60; #angle(degrees)\n",
+ "N=30; #number of turns\n",
+ "i=10; #current(A)\n",
+ "a=0.2; #length(m)\n",
+ "b=0.1; #breadth(m)\n",
+ "B=8*10**-4; #magnetic field of induction(Wb/m**2)\n",
+ "\n",
+ "#Calculation\n",
+ "theta=theta*math.pi/180; #angle(radian)\n",
+ "tow=N*a*b*B*i*math.sin(theta); #torque on coil(Nm)\n",
+ "\n",
+ "#Result\n",
+ "print \"torque on coil is\",tow*10**3,\"*10**-3 Nm\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "torque on coil is 2.4 *10**-3 Nm\n"
+ ]
+ }
+ ],
+ "prompt_number": 2
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example number 6.2, Page number 159"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#importing modules\n",
+ "import math\n",
+ "from __future__ import division\n",
+ "\n",
+ "#Variable declaration\n",
+ "mew0=4*math.pi*10**-7;\n",
+ "ia=10; #current(A)\n",
+ "ib=10; #current(A)\n",
+ "d=0.02; #diameter(m)\n",
+ "\n",
+ "#Calculation\n",
+ "F=mew0*ia*ib/(2*math.pi*d); #force(N/m)\n",
+ "\n",
+ "#Result\n",
+ "print \"force is\",F*10**3,\"*10**-3 N/m\"\n",
+ "print \"force is attractive\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "force is 1.0 *10**-3 N/m\n",
+ "force is attractive\n"
+ ]
+ }
+ ],
+ "prompt_number": 5
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example number 6.3, Page number 160"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#importing modules\n",
+ "import math\n",
+ "from __future__ import division\n",
+ "\n",
+ "#Variable declaration\n",
+ "i=0.1; #current(A)\n",
+ "N=60; #number of turns\n",
+ "mew0=4*math.pi*10**-7;\n",
+ "R=7*10**-2; #radius(m)\n",
+ "x=(18/2)*10**-2; #distance(m)\n",
+ "\n",
+ "#Calculation\n",
+ "a=mew0*i*N*(R**2);\n",
+ "b=((x**2)+(R**2))**(3/2);\n",
+ "B=2*a/(2*b); #magnetic field of induction(Wb/m**2)\n",
+ "\n",
+ "#Result\n",
+ "print \"magnetic field of induction is\",round(B*10**5,1),\"*10**-5 Wb/m**2\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "magnetic field of induction is 2.5 *10**-5 Wb/m**2\n"
+ ]
+ }
+ ],
+ "prompt_number": 7
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example number 6.4, Page number 160"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#importing modules\n",
+ "import math\n",
+ "from __future__ import division\n",
+ "\n",
+ "#Variable declaration\n",
+ "i=32; #current(A)\n",
+ "r=1.5*10**-3; #radius(m)\n",
+ "mew0=4*math.pi*10**-7;\n",
+ "d=1.2*10**-3; #distance(m)\n",
+ "\n",
+ "#Calculation\n",
+ "B1=mew0*i/(2*math.pi*r); #magnetic field on surface(T)\n",
+ "B2=B1*d; #magnetic field at a distance(T)\n",
+ "\n",
+ "#Result\n",
+ "print \"magnetic field on surface is\",round(B1*10**3,1),\"mT\"\n",
+ "print \"magnetic field at a distance is\",B2*10**3,\"mT\"\n",
+ "print \"answer for magnetic field at a distance given in the book is wrong\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "magnetic field on surface is 4.3 mT\n",
+ "magnetic field at a distance is 0.00512 mT\n",
+ "answer for magnetic field at a distance given in the book is wrong\n"
+ ]
+ }
+ ],
+ "prompt_number": 11
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example number 6.5, Page number 161"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#importing modules\n",
+ "import math\n",
+ "from __future__ import division\n",
+ "\n",
+ "#Variable declaration\n",
+ "i0=5.57; #current(A)\n",
+ "mew0=4*math.pi*10**-7;\n",
+ "n=850; #number of turns\n",
+ "l=1.23; #length(m)\n",
+ "\n",
+ "#Calculation\n",
+ "N=5*n/l; #number of turns per cm\n",
+ "B=mew0*i0*N; #magnetic field in solenoid(T)\n",
+ "\n",
+ "#Result\n",
+ "print \"magnetic field in solenoid is\",round(B*10**3,1),\"mT\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "magnetic field in solenoid is 24.2 mT\n"
+ ]
+ }
+ ],
+ "prompt_number": 14
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example number 6.6, Page number 161"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#importing modules\n",
+ "import math\n",
+ "from __future__ import division\n",
+ "\n",
+ "#Variable declaration\n",
+ "i=20; #current(A)\n",
+ "mew0=4*math.pi*10**-7;\n",
+ "n=1000; #number of turns\n",
+ "l=1; #length(m)\n",
+ "r=10*10**-2; #radius(m) \n",
+ "theta=90*math.pi/180;\n",
+ "\n",
+ "#Calculation\n",
+ "a=l/2;\n",
+ "b=r/2;\n",
+ "c=(a**2)+(b**2);\n",
+ "costheta1=a/math.sqrt(c);\n",
+ "costheta2=-a/math.sqrt(c);\n",
+ "B1=mew0*n*i*(costheta1-costheta2)/2; #magnetic field induction at the middle(Wb/m**2)\n",
+ "costheta_1=l/math.sqrt((l**2)+(r**2));\n",
+ "costheta_2=round(math.cos(theta));\n",
+ "B2=mew0*n*i*(costheta_1-costheta_2)/2; #magnetic field induction at one end(Wb/m**2)\n",
+ "\n",
+ "#Result\n",
+ "print \"magnetic field induction at the middle is\",round(B1*10**2,3),\"*10**-2 Wb/m**2\"\n",
+ "print \"magnetic field induction at one end is\",round(B2*10**3,1),\"mT\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "magnetic field induction at the middle is 2.501 *10**-2 Wb/m**2\n",
+ "magnetic field induction at one end is 12.5 mT\n"
+ ]
+ }
+ ],
+ "prompt_number": 24
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example number 6.7, Page number 162"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#importing modules\n",
+ "import math\n",
+ "from __future__ import division\n",
+ "\n",
+ "#Variable declaration\n",
+ "q=1.6*10**-19; #conversion factor from eV to J\n",
+ "K=200*q; #kinetic energy(J)\n",
+ "m=9.1083*10**-31; #mass(kg)\n",
+ "B=10**-2; #magnetic field(T)\n",
+ "theta=30*math.pi/180; #angle(radian)\n",
+ "\n",
+ "#Calculation\n",
+ "p=math.sqrt(2*m*K); #momentum(kg m/s)\n",
+ "a=p/(q*B); #radius of path(m)\n",
+ "d=2*math.pi*p*math.cos(theta)/(q*B); #pitch of helix(m)\n",
+ "\n",
+ "#Result\n",
+ "print \"radius of path is\",round(a*10**3,3),\"mm\"\n",
+ "print \"pitch of helix is\",round(d*10**3),\"mm\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "radius of path is 4.772 mm\n",
+ "pitch of helix is 26.0 mm\n"
+ ]
+ }
+ ],
+ "prompt_number": 26
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example number 6.8, Page number 163"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#importing modules\n",
+ "import math\n",
+ "from __future__ import division\n",
+ "\n",
+ "#Variable declaration\n",
+ "q=1.6*10**-19; #conversion factor from eV to J\n",
+ "K=20*q; #kinetic energy(J)\n",
+ "m=9.1*10**-31; #mass(kg)\n",
+ "B=10**2; #magnetic field(T)\n",
+ "\n",
+ "#Calculation\n",
+ "v=math.sqrt(2*K/m); #velocity(m/sec)\n",
+ "r=m*v/(q*B); #radius of path(m)\n",
+ "\n",
+ "#Result\n",
+ "print \"radius of path is\",round(r*10**8,2),\"*10**-8 m\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "radius of path is 15.08 *10**-8 m\n"
+ ]
+ }
+ ],
+ "prompt_number": 28
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example number 6.9, Page number 164"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#importing modules\n",
+ "import math\n",
+ "from __future__ import division\n",
+ "\n",
+ "#Variable declaration\n",
+ "m=9.1*10**-31; #mass(kg)\n",
+ "B=0.1; #magnetic field(Wb/m**2)\n",
+ "v=10**4; #velocity(m/s)\n",
+ "q=1.6*10**-19; #conversion factor from eV to J\n",
+ "\n",
+ "#Calculation\n",
+ "r=m*v/(q*B); #radius of path(m)\n",
+ "f=v/(2*math.pi*r); #frequency of revolution(rev/sec)\n",
+ "\n",
+ "#Result\n",
+ "print \"radius of path is\",round(r*10**7,2),\"*10**-7 m\"\n",
+ "print \"frequency of revolution is\",round(f/10**9,1),\"*10**9 rev/sec\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "radius of path is 5.69 *10**-7 m\n",
+ "frequency of revolution is 2.8 *10**9 rev/sec\n"
+ ]
+ }
+ ],
+ "prompt_number": 32
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example number 6.10, Page number 164"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#importing modules\n",
+ "import math\n",
+ "from __future__ import division\n",
+ "\n",
+ "#Variable declaration\n",
+ "s=0.1; #distance(m)\n",
+ "v=3*10**6; #velocity(m/s)\n",
+ "y=2*10**-3; #deflected distance(m)\n",
+ "E=0.18; #static electric field(V/m)\n",
+ "\n",
+ "#Calculation\n",
+ "t=s/v; #time(sec)\n",
+ "ebym=2*y/(E*(t**2)); #e/m of electron(C/kg)\n",
+ "\n",
+ "#Result\n",
+ "print \"e/m of electron is\",ebym,\"C/kg\"\n",
+ "print \"answer given in the book is wrong\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "e/m of electron is 2e+13 C/kg\n",
+ "answer given in the book is wrong\n"
+ ]
+ }
+ ],
+ "prompt_number": 35
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example number 6.11, Page number 165"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#importing modules\n",
+ "import math\n",
+ "from __future__ import division\n",
+ "\n",
+ "#Variable declaration\n",
+ "I=5; #current(A)\n",
+ "B=1.2; #magnetic field(T)\n",
+ "t=0.1*10**-2; #thickness(m)\n",
+ "q=1.6*10**-19; #conversion factor from eV to J\n",
+ "n=8.48*10**28; #concentration(electron/m**3)\n",
+ "\n",
+ "#Calculation\n",
+ "VH=I*B/(n*q*t); #hall voltage(V)\n",
+ "\n",
+ "#Result\n",
+ "print \"hall voltage is\",round(VH*10**6,4),\"micro V\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "hall voltage is 0.4422 micro V\n"
+ ]
+ }
+ ],
+ "prompt_number": 38
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example number 6.12, Page number 165"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#importing modules\n",
+ "import math\n",
+ "from __future__ import division\n",
+ "\n",
+ "#Variable declaration\n",
+ "i=0.5; #current(A)\n",
+ "R=0.1/2; #radius(m)\n",
+ "mew0=4*math.pi*10**-7;\n",
+ "N=200; #number of turns\n",
+ "\n",
+ "#Calculation\n",
+ "B=8*mew0*N*i/(R*math.sqrt(125)); #magnetic field induction(Wb/m**2)\n",
+ "B=round(B,4);\n",
+ "H=B/mew0; #intensity of magnetic field(A/m**2)\n",
+ "\n",
+ "#Result\n",
+ "print \"magnetic field induction is\",B*10**3,\"*10**-3 Wb/m**2\"\n",
+ "print \"intensity of magnetic field is\",round(H),\"A/m**2\"\n",
+ "print \"answer varies due to rounding off errors\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "magnetic field induction is 1.8 *10**-3 Wb/m**2\n",
+ "intensity of magnetic field is 1432.0 A/m**2\n",
+ "answer varies due to rounding off errors\n"
+ ]
+ }
+ ],
+ "prompt_number": 44
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example number 6.14, Page number 166"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#importing modules\n",
+ "import math\n",
+ "from __future__ import division\n",
+ "\n",
+ "#Variable declaration\n",
+ "q=1.6*10**-19; #conversion factor from eV to J\n",
+ "m=3.3*10**-27; #mass(kg)\n",
+ "t=10**-7; #time(sec)\n",
+ "r=0.3; #radius(cm)\n",
+ "\n",
+ "#Calculation\n",
+ "B=2*math.pi*m/(q*t); #magnetic flux density(Wb/m**2)\n",
+ "v=B*q*r/m; #velocity of particle(m/s)\n",
+ "\n",
+ "#Result\n",
+ "print \"magnetic flux density is\",round(B,3),\"Wb/m**2\"\n",
+ "print \"velocity of particle is\",round(v/10**7,2),\"*10**7 m/sec\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "magnetic flux density is 1.296 Wb/m**2\n",
+ "velocity of particle is 1.88 *10**7 m/sec\n"
+ ]
+ }
+ ],
+ "prompt_number": 49
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example number 6.15, Page number 167"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#importing modules\n",
+ "import math\n",
+ "from __future__ import division\n",
+ "\n",
+ "#Variable declaration\n",
+ "q=1.6*10**-19; #conversion factor from eV to J\n",
+ "i=1; #current(amp)\n",
+ "n=10**28; #concentration(electron/m**3)\n",
+ "r=0.055*10**-2; #radius(m)\n",
+ "rho=1.7*10**-8; #resistivity of Cu(ohm m)\n",
+ "\n",
+ "#Calculation\n",
+ "A=math.pi*(r**2); #area(m**2)\n",
+ "vd=1/(n*q*A); #drift velocity(m/sec)\n",
+ "E=rho*i/A; #electric field(v/m)\n",
+ "\n",
+ "#Result\n",
+ "print \"drift velocity is\",round(vd*10**4,2),\"*10**-4 m/sec\"\n",
+ "print \"electric field is\",round(E*10**2,3),\"*10**-2 v/m\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "drift velocity is 6.58 *10**-4 m/sec\n",
+ "electric field is 1.789 *10**-2 v/m\n"
+ ]
+ }
+ ],
+ "prompt_number": 52
+ }
+ ],
+ "metadata": {}
+ }
+ ]
+} \ No newline at end of file
diff --git a/Physics_for_BSc(Paper-3)/Chapter7.ipynb b/Physics_for_BSc(Paper-3)/Chapter7.ipynb
new file mode 100755
index 00000000..cfd1e199
--- /dev/null
+++ b/Physics_for_BSc(Paper-3)/Chapter7.ipynb
@@ -0,0 +1,413 @@
+{
+ "metadata": {
+ "name": "",
+ "signature": "sha256:df8ccdc39cf4228aa502def88be8b0eaa1a1170d675814e78e23ede418957e6f"
+ },
+ "nbformat": 3,
+ "nbformat_minor": 0,
+ "worksheets": [
+ {
+ "cells": [
+ {
+ "cell_type": "heading",
+ "level": 1,
+ "metadata": {},
+ "source": [
+ "7: Electromagnetic Induction"
+ ]
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example number 7.1, Page number 204"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#importing modules\n",
+ "import math\n",
+ "from __future__ import division\n",
+ "\n",
+ "#Variable declaration\n",
+ "R=125; #resistance(ohm)\n",
+ "V=3*10**-4; #potential difference(V)\n",
+ "T=10; #time period(sec)\n",
+ "theta1=16*10**-2; #deflection(m)\n",
+ "theta=5*10**-2; #deflection(m)\n",
+ "\n",
+ "#Calculation\n",
+ "i=V/R; #current(A)\n",
+ "q=T*i*theta/(2*math.pi*theta1); #charge(C)\n",
+ "\n",
+ "#Result\n",
+ "print \"charge is\",round(q*10**6,3),\"*10**-6 C\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "charge is 1.194 *10**-6 C\n"
+ ]
+ }
+ ],
+ "prompt_number": 13
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example number 7.2, Page number 205"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#importing modules\n",
+ "import math\n",
+ "from __future__ import division\n",
+ "\n",
+ "#Variable declaration\n",
+ "T=8; #time period(s)\n",
+ "i=2*10**-6; #current(A)\n",
+ "theta1=1;\n",
+ "theta=1;\n",
+ "\n",
+ "#Calculation\n",
+ "q=T*i*theta/(2*math.pi*theta1); #charge(C)\n",
+ "\n",
+ "#Result\n",
+ "print \"charge is\",round(q*10**6,3),\"*10**-6 C\"\n",
+ "print \"answer varies due to rounding off errors\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "charge is 2.546 *10**-6 C\n",
+ "answer varies due to rounding off errors\n"
+ ]
+ }
+ ],
+ "prompt_number": 15
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example number 7.3, Page number 205"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#importing modules\n",
+ "import math\n",
+ "from __future__ import division\n",
+ "\n",
+ "#Variable declaration\n",
+ "l=1.8*10**-2; #length(m)\n",
+ "B=0.5; #magnitude of field(Wb/m**2)\n",
+ "N=200; #number of turns\n",
+ "t=0.8; #time period(sec)\n",
+ "R=12; #resistance(ohm)\n",
+ "\n",
+ "#Calculation\n",
+ "A=l**2; #area of coil(m**2)\n",
+ "phiB=B*A; #magnetic flux in coil(Wb)\n",
+ "e=N*(phiB-0)/t; #induced emf(V)\n",
+ "i=e/R; #current(A)\n",
+ "\n",
+ "#Result\n",
+ "print \"induced emf is\",e,\"V\"\n",
+ "print \"current is\",i*10**4,\"*10**-4 A\"\n",
+ "print \"answers given in the book are wrong\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "induced emf is 0.0405 V\n",
+ "current is 33.75 *10**-4 A\n",
+ "answers given in the book are wrong\n"
+ ]
+ }
+ ],
+ "prompt_number": 22
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example number 7.6, Page number 207"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#importing modules\n",
+ "import math\n",
+ "from __future__ import division\n",
+ "\n",
+ "#Variable declaration\n",
+ "B=100*10**-4; #magnetic field(Wb/m**2)\n",
+ "d=20*10**-2; #diameter(m)\n",
+ "n=10; #number of rotations\n",
+ "\n",
+ "#Calculation\n",
+ "r=d/2; #radius(m)\n",
+ "dAbydt=math.pi*n*(r**2); #area(turns m**2/s)\n",
+ "e=B*dAbydt; #potential difference(V)\n",
+ "\n",
+ "#Result\n",
+ "print \"potential difference is\",round(e*10**3,3),\"mV\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "potential difference is 3.142 mV\n"
+ ]
+ }
+ ],
+ "prompt_number": 24
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example number 7.7, Page number 207"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#importing modules\n",
+ "import math\n",
+ "from __future__ import division\n",
+ "\n",
+ "#Variable declaration\n",
+ "l=1; #length(m)\n",
+ "B=0.2; #magnetic field(Wb/m**2)\n",
+ "v=0.8; #velocity(m/s)\n",
+ "theta1=60*math.pi/180; #angle(radian)\n",
+ "theta2=45*math.pi/180; #angle(radian)\n",
+ "theta3=30*math.pi/180; #angle(radian)\n",
+ "\n",
+ "#Calculation\n",
+ "e1=B*l*v*math.sin(theta1); #induced emf when B and v are perpendicular(V)\n",
+ "e2=B*l*v*math.sin(theta1)*math.sin(theta2); #induced emf with angle 45 degrees(V)\n",
+ "e3=B*l*v*math.sin(theta1)*math.sin(theta2)*math.sin(theta3); #induced emf with angle 30 degrees(V)\n",
+ "\n",
+ "#Result\n",
+ "print \"induced emf when B and v are perpendicular is\",round(e1,4),\"V\"\n",
+ "print \"induced emf with angle 45 degrees is\",round(e2,3),\"V\"\n",
+ "print \"induced emf with angle 30 degrees is\",round(e3,3),\"V\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "induced emf when B and v are perpendicular is 0.1386 V\n",
+ "induced emf with angle 45 degrees is 0.098 V\n",
+ "induced emf with angle 30 degrees is 0.049 V\n"
+ ]
+ }
+ ],
+ "prompt_number": 25
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example number 7.8, Page number 208"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#importing modules\n",
+ "import math\n",
+ "from __future__ import division\n",
+ "\n",
+ "#Variable declaration\n",
+ "L=20; #inductance(H)\n",
+ "i=0.1; #current(A)\n",
+ "\n",
+ "#Calculation\n",
+ "Ub=(1/2)*L*(i**2); #energy stored in inductor(J)\n",
+ "\n",
+ "#Result\n",
+ "print \"energy stored in inductor is\",Ub,\"J\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "energy stored in inductor is 0.1 J\n"
+ ]
+ }
+ ],
+ "prompt_number": 26
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example number 7.9, Page number 209"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#importing modules\n",
+ "import math\n",
+ "from __future__ import division\n",
+ "\n",
+ "#Variable declaration\n",
+ "e=12; #induced emf(V)\n",
+ "L=53*10**-3; #inductance(H)\n",
+ "R=0.35; #resistance(ohm)\n",
+ "\n",
+ "#Calculation\n",
+ "i=e/R; #current(A)\n",
+ "Ub=(1/2)*L*(i**2); #energy stored in inductor(J)\n",
+ "\n",
+ "#Result\n",
+ "print \"energy stored in inductor is\",round(Ub,1),\"J\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "energy stored in inductor is 31.2 J\n"
+ ]
+ }
+ ],
+ "prompt_number": 27
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example number 7.10, Page number 209"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#importing modules\n",
+ "import math\n",
+ "from __future__ import division\n",
+ "\n",
+ "#Variable declaration\n",
+ "N=1250; #number of turns\n",
+ "a=5.2*10**-2; #length(m)\n",
+ "b=9.5*10**-2; #breadth(m)\n",
+ "h=1.3*10**-2; #height(m)\n",
+ "mew0=4*math.pi*10**-7; \n",
+ "\n",
+ "#Calculation\n",
+ "L=(mew0*(N**2)*h*math.log(b/a))/(2*math.pi); #inductance(H)\n",
+ "\n",
+ "#Result\n",
+ "print \"inductance is\",round(L*10**3,1),\"mH\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "inductance is 2.4 mH\n"
+ ]
+ }
+ ],
+ "prompt_number": 28
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example number 7.11, Page number 209"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#importing modules\n",
+ "import math\n",
+ "from __future__ import division\n",
+ "\n",
+ "#Variable declaration\n",
+ "N1=500; #number of turns\n",
+ "A=3*10**-3; #area(m**2)\n",
+ "l=0.5; #length(m)\n",
+ "mew0=4*math.pi*10**-7; \n",
+ "N2=8; #number of turns\n",
+ "\n",
+ "#Calculation\n",
+ "M=mew0*N1*N2*A/l; #coefficient of mutual induction(H)\n",
+ "\n",
+ "#Result\n",
+ "print \"coefficient of mutual induction is\",round(M*10**6),\"micro H\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "coefficient of mutual induction is 30.0 micro H\n"
+ ]
+ }
+ ],
+ "prompt_number": 29
+ }
+ ],
+ "metadata": {}
+ }
+ ]
+} \ No newline at end of file
diff --git a/Physics_for_BSc(Paper-3)/Chapter8.ipynb b/Physics_for_BSc(Paper-3)/Chapter8.ipynb
new file mode 100755
index 00000000..5ea804c3
--- /dev/null
+++ b/Physics_for_BSc(Paper-3)/Chapter8.ipynb
@@ -0,0 +1,148 @@
+{
+ "metadata": {
+ "name": "",
+ "signature": "sha256:7c85091bd4e24d60bc3e76c728778479287ddcc4fa6749b5ce2d1adbd2e10621"
+ },
+ "nbformat": 3,
+ "nbformat_minor": 0,
+ "worksheets": [
+ {
+ "cells": [
+ {
+ "cell_type": "heading",
+ "level": 1,
+ "metadata": {},
+ "source": [
+ "8: Maxwell's equations"
+ ]
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example number 8.1, Page number 234"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#importing modules\n",
+ "import math\n",
+ "from __future__ import division\n",
+ "\n",
+ "#Variable declaration\n",
+ "K=4.3; #dielectric constant\n",
+ "c=3*10**8; #velocity of light in vacuum\n",
+ "\n",
+ "#Calculation\n",
+ "n=round(math.sqrt(K),2); #refractive index of quartz\n",
+ "v=c/n; #velocity of light in quartz(m/s)\n",
+ "\n",
+ "#Result\n",
+ "print \"refractive index of quartz is\",n\n",
+ "print \"velocity of light in quartz is\",round(v/10**8,2),\"*10**8 m/s\"\n",
+ "print \"answer for velocity given in the book is wrong\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "refractive index of quartz is 2.07\n",
+ "velocity of light in quartz is 1.45 *10**8 m/s\n",
+ "answer for velocity given in the book is wrong\n"
+ ]
+ }
+ ],
+ "prompt_number": 9
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example number 8.2, Page number 235"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#importing modules\n",
+ "import math\n",
+ "from __future__ import division\n",
+ "\n",
+ "#Variable declaration\n",
+ "epsilon0=8.87*10**-12; #dielectric permittivity of free space\n",
+ "E=1.2*10**6; #electric field intensity(N/C)\n",
+ "\n",
+ "#Calculation\n",
+ "Ed=(1/2)*epsilon0*(E**2); #energy density(J/m**2)\n",
+ "\n",
+ "#Result\n",
+ "print \"energy density is\",round(Ed,3),\"J/m**2\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "energy density is 6.386 J/m**2\n"
+ ]
+ }
+ ],
+ "prompt_number": 10
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example number 8.3, Page number 235"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#importing modules\n",
+ "import math\n",
+ "from __future__ import division\n",
+ "\n",
+ "#Variable declaration\n",
+ "E0=3*10**6; #dielectric voltage(V/m)\n",
+ "c=3*10**8; #velocity of light in vacuum\n",
+ "mew0=4*math.pi*10**-7; \n",
+ "\n",
+ "#Calculation\n",
+ "Av=(E0**2)/(2*c*mew0); #average value of Poynting vector(W/m**2)\n",
+ "\n",
+ "#Result\n",
+ "print \"average value of Poynting vector is\",round(Av/10**11,2),\"*10**11 W/m**2\"\n",
+ "print \"answer given in the book is wrong\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "average value of Poynting vector is 0.12 *10**11 W/m**2\n",
+ "answer given in the book is wrong\n"
+ ]
+ }
+ ],
+ "prompt_number": 13
+ }
+ ],
+ "metadata": {}
+ }
+ ]
+} \ No newline at end of file
diff --git a/Physics_for_BSc(Paper-3)/Chapter9.ipynb b/Physics_for_BSc(Paper-3)/Chapter9.ipynb
new file mode 100755
index 00000000..67ff399f
--- /dev/null
+++ b/Physics_for_BSc(Paper-3)/Chapter9.ipynb
@@ -0,0 +1,693 @@
+{
+ "metadata": {
+ "name": "",
+ "signature": "sha256:aec700ae8e541452237ee9c0f10eb2b8642d7039520473250339382162750967"
+ },
+ "nbformat": 3,
+ "nbformat_minor": 0,
+ "worksheets": [
+ {
+ "cells": [
+ {
+ "cell_type": "heading",
+ "level": 1,
+ "metadata": {},
+ "source": [
+ "9: Varying and alternating currents"
+ ]
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example number 9.1, Page number 242"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#importing modules\n",
+ "import math\n",
+ "from __future__ import division\n",
+ "\n",
+ "#Variable declaration\n",
+ "L=0.1; #inductance(H)\n",
+ "R=10; #resistance(ohm)\n",
+ "t1=0; #time(sec)\n",
+ "t2=0.002; #time(sec)\n",
+ "t3=0.04; #time(sec)\n",
+ "E=5; #voltage(V)\n",
+ "\n",
+ "#Calculation\n",
+ "tow=L/R; #time(sec)\n",
+ "a=E/R;\n",
+ "i1=a*(1-math.exp(-t1/tow)); #current for t=0 sec(A)\n",
+ "i2=a*(1-math.exp(-t2/tow)); #current for t=0.002 sec(A)\n",
+ "i3=a*(1-math.exp(-t3/tow)); #current for t=0.04 sec(A)\n",
+ "i4=a*(1-math.exp(-tow/tow)); #current for t=tow sec(A)\n",
+ "\n",
+ "#Result\n",
+ "print \"current for t=0 sec is\",i1,\"A\"\n",
+ "print \"current for t=0.002 sec is\",round(i2,2),\"A\"\n",
+ "print \"current for t=0.04 sec is\",round(i3,2),\"A\"\n",
+ "print \"current for t=tow sec is\",round(i4,3),\"A\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "current for t=0 sec is 0.0 A\n",
+ "current for t=0.002 sec is 0.09 A\n",
+ "current for t=0.04 sec is 0.49 A\n",
+ "current for t=tow sec is 0.316 A\n"
+ ]
+ }
+ ],
+ "prompt_number": 6
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example number 9.2, Page number 243"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#importing modules\n",
+ "import math\n",
+ "from __future__ import division\n",
+ "\n",
+ "#Variable declaration\n",
+ "L=0.5; #inductance(H)\n",
+ "R=5; #resistance(ohm)\n",
+ "E=2; #voltage(V)\n",
+ "t=0.2; #time(sec)\n",
+ "\n",
+ "#Calculation\n",
+ "tow=L/R; #time(sec)\n",
+ "a=E/R;\n",
+ "i=a*(1-math.exp(-t/tow)); #current(A)\n",
+ "dibydt=(E-(R*i))/L; #rate of growth of current(A/s)\n",
+ "E=(1/2)*L*(i**2); #energy stored by inductor(J)\n",
+ "\n",
+ "#Result\n",
+ "print \"rate of growth of current is\",round(dibydt,2),\"A/s\"\n",
+ "print \"energy stored by inductor is\",round(E,2),\"J\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "rate of growth of current is 0.54 A/s\n",
+ "energy stored by inductor is 0.03 J\n"
+ ]
+ }
+ ],
+ "prompt_number": 8
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example number 9.3, Page number 244"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#importing modules\n",
+ "import math\n",
+ "from __future__ import division\n",
+ "\n",
+ "#Variable declaration\n",
+ "L=10; #inductance(H)\n",
+ "R=10; #resistance(ohm)\n",
+ "E=10; #voltage(V)\n",
+ "t1=0.3; #time(sec)\n",
+ "t2=0.5; #time(sec)\n",
+ "t3=1; #time(sec)\n",
+ "\n",
+ "#Calculation\n",
+ "tow=L/R; #time(sec)\n",
+ "i0=E/R;\n",
+ "i1=i0*math.exp(-t1/tow); #current for t=0.3 sec(A)\n",
+ "i2=i0*math.exp(-t2/tow); #current for t=0.5 sec(A)\n",
+ "i3=i0*math.exp(-t3/tow); #current for t=1 sec(A)\n",
+ "\n",
+ "#Result\n",
+ "print \"current for t=0.3 sec is\",round(i1,2),\"A\"\n",
+ "print \"current for t=0.5 sec is\",round(i2,2),\"A\"\n",
+ "print \"current for t=1 sec is\",round(i3,2),\"A\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "current for t=0.3 sec is 0.74 A\n",
+ "current for t=0.5 sec is 0.61 A\n",
+ "current for t=1 sec is 0.37 A\n"
+ ]
+ }
+ ],
+ "prompt_number": 12
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example number 9.4, Page number 250"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#importing modules\n",
+ "import math\n",
+ "from __future__ import division\n",
+ "\n",
+ "#Variable declaration\n",
+ "E=5; #voltage(V)\n",
+ "C=2*10**-6; #capacitor(F)\n",
+ "R=1*10**6; #resistance(ohm)\n",
+ "t=1; #time(sec)\n",
+ "v=40/100; #decay value(%)\n",
+ "\n",
+ "#Calculation\n",
+ "q=E*C*(1-math.exp(-t/(R*C))); #charge on plates(C)\n",
+ "Vc=q/C; #voltage drop across capacitor(V)\n",
+ "i0=E/R;\n",
+ "i=i0*math.exp(-t/(R*C)); #current in circuit(A)\n",
+ "V=i*R; #voltage drop across resistor(V)\n",
+ "E=(1/2)*C*(Vc**2); #energy stored by capacitor(J)\n",
+ "tow=R*C; #time constant(sec)\n",
+ "t=2*math.log(1/v); #time taken(sec)\n",
+ "\n",
+ "#Result\n",
+ "print \"voltage drop across capacitor is\",round(Vc,2),\"V\"\n",
+ "print \"current in circuit is\",int(i*10**6),\"micro A\"\n",
+ "print \"voltage drop across resistor is\",int(V),\"V\"\n",
+ "print \"energy stored by capacitor is\",round(E*10**6,1),\"*10**-6 J\"\n",
+ "print \"time constant is\",tow,\"sec\"\n",
+ "print \"time taken is\",round(t,4),\"sec\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "voltage drop across capacitor is 1.97 V\n",
+ "current in circuit is 3 micro A\n",
+ "voltage drop across resistor is 3 V\n",
+ "energy stored by capacitor is 3.9 *10**-6 J\n",
+ "time constant is 2.0 sec\n",
+ "time taken is 1.8326 sec\n"
+ ]
+ }
+ ],
+ "prompt_number": 22
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example number 9.5, Page number 265"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#importing modules\n",
+ "import math\n",
+ "from __future__ import division\n",
+ "\n",
+ "#Variable declaration\n",
+ "L=1*10**-3; #inductance(H)\n",
+ "C=0.1*10**-6; #capacitor(F)\n",
+ "R=1; #resistance(ohm)\n",
+ "\n",
+ "#Calculation\n",
+ "a=1/(L*C);\n",
+ "b=(R**2)/(4*(L**2)); \n",
+ "omega=math.sqrt(a-b); #angular frequency(per sec)\n",
+ "Q=omega*L/R; #Q-factor\n",
+ "\n",
+ "#Result\n",
+ "print \"angular frequency is\",round(omega),\"per sec\"\n",
+ "print \"answer varies due to rounding off errors\"\n",
+ "print \"Q-factor is\",round(Q)"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "angular frequency is 99999.0 per sec\n",
+ "answer varies due to rounding off errors\n",
+ "Q-factor is 100.0\n"
+ ]
+ }
+ ],
+ "prompt_number": 1
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example number 9.6, Page number 280"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#importing modules\n",
+ "import math\n",
+ "from __future__ import division\n",
+ "\n",
+ "#Variable declaration\n",
+ "#v=7sin(314+pi/6)\n",
+ "v=7;\n",
+ "R=100; #resistance(ohm)\n",
+ "\n",
+ "#Calculation\n",
+ "Im=v/R; #maximum current(A)\n",
+ "Irms=Im/math.sqrt(2); #rms value of current(A)\n",
+ "Vrms=v/math.sqrt(2);\n",
+ "P=Vrms*Irms; #average power(W)\n",
+ "\n",
+ "#Result\n",
+ "print \"maximum current is\",Im,\"A\"\n",
+ "print \"rms value of current is\",round(Irms,2),\"A\"\n",
+ "print \"average power is\",round(P,3),\"W\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "maximum current is 0.07 A\n",
+ "rms value of current is 0.05 A\n",
+ "average power is 0.245 W\n"
+ ]
+ }
+ ],
+ "prompt_number": 4
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example number 9.7, Page number 283"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#importing modules\n",
+ "import math\n",
+ "from __future__ import division\n",
+ "\n",
+ "#Variable declaration\n",
+ "#V=7sin(314t+pi/6)\n",
+ "v=7;\n",
+ "omega=314; \n",
+ "L=0.05; #inductance(H)\n",
+ "\n",
+ "#Calculation\n",
+ "XL=omega*L;\n",
+ "betaL=1/XL; #susceptance(per ohm)\n",
+ "i=v*betaL; #current through inductor\n",
+ "Im=i;\n",
+ "Irms=Im/math.sqrt(2); #rms current(A)\n",
+ "P=0; #power loss\n",
+ "\n",
+ "#Result\n",
+ "print \"susceptance is\",round(betaL,4),\"per ohm\"\n",
+ "print \"current through inductor is\",round(i,2),\"sin(314t-math.pi/3)\"\n",
+ "print \"rms current is\",round(Irms,2),\"A\"\n",
+ "print \"power loss is\",P"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "susceptance is 0.0637 per ohm\n",
+ "current through inductor is 0.45 sin(314t-math.pi/3)\n",
+ "rms current is 0.32 A\n",
+ "power loss is 0\n"
+ ]
+ }
+ ],
+ "prompt_number": 6
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example number 9.8, Page number 286"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#importing modules\n",
+ "import math\n",
+ "from __future__ import division\n",
+ "\n",
+ "#Variable declaration\n",
+ "#V=7sin(314t+pi/6)\n",
+ "v=7;\n",
+ "omega=314; \n",
+ "C=0.05*10**-6; #capacitance(F)\n",
+ "\n",
+ "#Calculation\n",
+ "XC=1/(omega*C); #value of XC \n",
+ "i=v/XC; #current through capacitor\n",
+ "Im=i;\n",
+ "Irms=Im/math.sqrt(2); #rms current(A)\n",
+ "P=0; #power loss\n",
+ "\n",
+ "#Result\n",
+ "print \"value of XC is\",round(XC/10**3,1),\"K ohm\"\n",
+ "print \"current through capacitor is\",i*10**3,\"*10**-3 sin(314t+2*math.pi/3)\"\n",
+ "print \"rms current is\",int(Irms*10**6),\"micro A\"\n",
+ "print \"power loss is\",P"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "value of XC is 63.7 K ohm\n",
+ "current through capacitor is 0.1099 *10**-3 sin(314t+2*math.pi/3)\n",
+ "rms current is 77 micro A\n",
+ "power loss is 0\n"
+ ]
+ }
+ ],
+ "prompt_number": 14
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example number 9.9, Page number 294"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#importing modules\n",
+ "import math\n",
+ "from __future__ import division\n",
+ "\n",
+ "#Variable declaration\n",
+ "V1=110; #voltage(V)\n",
+ "P=40; #power(W)\n",
+ "V2=230; #voltage(V)\n",
+ "\n",
+ "#Calculation\n",
+ "RB=V1**2/P; #resistance of bulb(ohm)\n",
+ "i=V1/RB; #electric current through bulb(A)\n",
+ "Z=V2/i; #series resistance(ohm)\n",
+ "R=Z-RB; #pure resistance(ohm)\n",
+ "XL=math.sqrt((Z**2)-(RB**2)); \n",
+ "L=XL/314; #inductance(H)\n",
+ "\n",
+ "#Result\n",
+ "print \"pure resistance is\",R,\"ohm\"\n",
+ "print \"inductance is\",round(L,3),\"H\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "pure resistance is 330.0 ohm\n",
+ "inductance is 1.769 H\n"
+ ]
+ }
+ ],
+ "prompt_number": 19
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example number 9.10, Page number 311"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#importing modules\n",
+ "import math\n",
+ "from __future__ import division\n",
+ "\n",
+ "#Variable declaration\n",
+ "C=10**-6; #capacitance(F)\n",
+ "L=10*10**-3; #inductance(H)\n",
+ "R=1*10**3; #resistance(ohm)\n",
+ "\n",
+ "#Calculation\n",
+ "fr=1/(2*math.pi*math.sqrt(L*C)); #resonant frequency(Hz)\n",
+ "Z=L/(C*R); #impedence(ohm)\n",
+ "\n",
+ "#Result\n",
+ "print \"resonant frequency is\",round(fr/10**3,3),\"KHz\"\n",
+ "print \"impedence is\",Z,\"ohm\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "resonant frequency is 1.592 KHz\n",
+ "impedence is 10.0 ohm\n"
+ ]
+ }
+ ],
+ "prompt_number": 23
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example number 9.11, Page number 312"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#importing modules\n",
+ "import math\n",
+ "from __future__ import division\n",
+ "\n",
+ "#Variable declaration\n",
+ "C=5*10**-6; #capacitance(F)\n",
+ "R=10; #resistance(ohm)\n",
+ "new=50; #frequency(Hz)\n",
+ "\n",
+ "#Calculation\n",
+ "omega=2*math.pi*new;\n",
+ "L=1/(C*(omega**2)); #self inductance(H)\n",
+ "\n",
+ "#Result\n",
+ "print \"self inductance is\",round(L,3),\"H\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "self inductance is 2.026 H\n"
+ ]
+ }
+ ],
+ "prompt_number": 25
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example number 9.12, Page number 312"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#importing modules\n",
+ "import math\n",
+ "from __future__ import division\n",
+ "\n",
+ "#Variable declaration\n",
+ "C=0.1*10**-6; #capacitance(F)\n",
+ "L=1*10**-3; #inductance(H)\n",
+ "R=10; #resistance(ohm)\n",
+ "\n",
+ "#Calculation\n",
+ "omega0=1/math.sqrt(L*C); #resonant frequency(rad/sec)\n",
+ "d=R/L; #difference between two half power points\n",
+ "cosphi=R/R; #power factor at resonance\n",
+ "\n",
+ "#Result\n",
+ "print \"resonant frequency is\",omega0/10**5,\"*10**5 rad/sec\"\n",
+ "print \"power factor at resonance is\",cosphi"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "resonant frequency is 1.0 *10**5 rad/sec\n",
+ "power factor at resonance is 1.0\n"
+ ]
+ }
+ ],
+ "prompt_number": 28
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example number 9.13, Page number 313"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#importing modules\n",
+ "import math\n",
+ "from __future__ import division\n",
+ "\n",
+ "#Variable declaration\n",
+ "C=0.1*10**-6; #capacitance(F)\n",
+ "L=10*10**-3; #inductance(H)\n",
+ "R=10; #resistance(ohm)\n",
+ "\n",
+ "#Calculation\n",
+ "Z=L/(C*R); #impedence at resonance(ohm)\n",
+ "\n",
+ "#Result\n",
+ "print \"impedence at resonance is\",Z/10**4,\"*10**4 ohm\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "impedence at resonance is 1.0 *10**4 ohm\n"
+ ]
+ }
+ ],
+ "prompt_number": 30
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example number 9.14, Page number 313"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#importing modules\n",
+ "import math\n",
+ "from __future__ import division\n",
+ "\n",
+ "#Variable declaration\n",
+ "C=5*10**-6; #capacitance(F)\n",
+ "L=10*10**-3; #inductance(H)\n",
+ "R=10*10**3; #resistance(ohm)\n",
+ "\n",
+ "#Calculation\n",
+ "omegar=1/math.sqrt(L*C); #resonant frequency(Hz)\n",
+ "omegar=round(omegar/10**3,1);\n",
+ "delta_omega=1/(R*C); #bandwidth(Hz)\n",
+ "Q=omegar*10**3/delta_omega; #Q-factor\n",
+ "\n",
+ "#Result\n",
+ "print \"resonant frequency is\",omegar,\"*10**3 Hz\"\n",
+ "print \"bandwidth is\",delta_omega,\"Hz\"\n",
+ "print \"Q-factor is\",Q"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "resonant frequency is 4.5 *10**3 Hz\n",
+ "bandwidth is 20.0 Hz\n",
+ "Q-factor is 225.0\n"
+ ]
+ }
+ ],
+ "prompt_number": 36
+ }
+ ],
+ "metadata": {}
+ }
+ ]
+} \ No newline at end of file
diff --git a/Physics_for_BSc(Paper-3)/README.txt b/Physics_for_BSc(Paper-3)/README.txt
new file mode 100755
index 00000000..ce06454b
--- /dev/null
+++ b/Physics_for_BSc(Paper-3)/README.txt
@@ -0,0 +1,10 @@
+Contributed By: SRIKANTH MOLANGIRI
+Course: others
+College/Institute/Organization: JNAFAU
+Department/Designation: Applied Arts
+Book Title: Physics for BSc(Paper-3)
+Author: A. Sadananda Chary, C. Sivaram, G. Ramadevudu
+Publisher: Telugu Akademi, Hyderabad
+Year of publication: 2011
+Isbn: Not mentioned
+Edition: 1 \ No newline at end of file
diff --git a/Physics_for_BSc(Paper-3)/screenshots/1.png b/Physics_for_BSc(Paper-3)/screenshots/1.png
new file mode 100755
index 00000000..e3c21479
--- /dev/null
+++ b/Physics_for_BSc(Paper-3)/screenshots/1.png
Binary files differ
diff --git a/Physics_for_BSc(Paper-3)/screenshots/2.png b/Physics_for_BSc(Paper-3)/screenshots/2.png
new file mode 100755
index 00000000..9e1ecd0f
--- /dev/null
+++ b/Physics_for_BSc(Paper-3)/screenshots/2.png
Binary files differ
diff --git a/Physics_for_BSc(Paper-3)/screenshots/3.png b/Physics_for_BSc(Paper-3)/screenshots/3.png
new file mode 100755
index 00000000..744a6842
--- /dev/null
+++ b/Physics_for_BSc(Paper-3)/screenshots/3.png
Binary files differ