From e5ca7d9515ea0c72b50e9d67b31896cf83e1e318 Mon Sep 17 00:00:00 2001 From: Trupti Kini Date: Wed, 19 Oct 2016 23:30:52 +0600 Subject: Added(A)/Deleted(D) following books A Electrical_&_Electronic_Systems_by_Neil_Storey/Chapter11_b2XsTwq.ipynb A Electrical_&_Electronic_Systems_by_Neil_Storey/Chapter12_MbtXOSy.ipynb A Electrical_&_Electronic_Systems_by_Neil_Storey/Chapter13_IKwAwKI.ipynb A Electrical_&_Electronic_Systems_by_Neil_Storey/Chapter14_Gi0X0ZR.ipynb A Electrical_&_Electronic_Systems_by_Neil_Storey/Chapter15_QY6wZIq.ipynb A Electrical_&_Electronic_Systems_by_Neil_Storey/Chapter16_0NyhPvP.ipynb A Electrical_&_Electronic_Systems_by_Neil_Storey/Chapter18_C36GpSn.ipynb A Electrical_&_Electronic_Systems_by_Neil_Storey/Chapter19_QpHK5JI.ipynb A Electrical_&_Electronic_Systems_by_Neil_Storey/Chapter20_hKMNWxW.ipynb A Electrical_&_Electronic_Systems_by_Neil_Storey/Chapter21_GeNhAzQ.ipynb A Electrical_&_Electronic_Systems_by_Neil_Storey/Chapter22_wZJNJdr.ipynb A Electrical_&_Electronic_Systems_by_Neil_Storey/Chapter23_9hMbnX4.ipynb A Electrical_&_Electronic_Systems_by_Neil_Storey/Chapter2_8BakG8I.ipynb A Electrical_&_Electronic_Systems_by_Neil_Storey/Chapter5_VQzvFGO.ipynb A Electrical_&_Electronic_Systems_by_Neil_Storey/Chapter6_18MJqWw.ipynb A Electrical_&_Electronic_Systems_by_Neil_Storey/Chapter8_wMvTWIF.ipynb A Electrical_&_Electronic_Systems_by_Neil_Storey/Chapter9_vhHgT2e.ipynb A Electrical_&_Electronic_Systems_by_Neil_Storey/screenshots/cap1_v96t3WK.png A Electrical_&_Electronic_Systems_by_Neil_Storey/screenshots/index2_za7aGFC.png A Electrical_&_Electronic_Systems_by_Neil_Storey/screenshots/index_Is0qqx4.png A Linear_Algebra_And_Its_Applications_by_G._Strang/README.txt R Physics-_For_Students_Of_Science_And_Engineering(Part_2)_by_D._Halliday_and_R._Resnick/Chapter26.ipynb -> Physics_For_Students_Of_Science_And_Engineering_Part_2_by_D_Halliday_and_R_Resnick/Chapter26.ipynb R Physics-_For_Students_Of_Science_And_Engineering(Part_2)_by_D._Halliday_and_R._Resnick/Chapter27.ipynb -> Physics_For_Students_Of_Science_And_Engineering_Part_2_by_D_Halliday_and_R_Resnick/Chapter27.ipynb R Physics-_For_Students_Of_Science_And_Engineering(Part_2)_by_D._Halliday_and_R._Resnick/Chapter28.ipynb -> Physics_For_Students_Of_Science_And_Engineering_Part_2_by_D_Halliday_and_R_Resnick/Chapter28.ipynb R Physics-_For_Students_Of_Science_And_Engineering(Part_2)_by_D._Halliday_and_R._Resnick/Chapter29.ipynb -> Physics_For_Students_Of_Science_And_Engineering_Part_2_by_D_Halliday_and_R_Resnick/Chapter29.ipynb R Physics-_For_Students_Of_Science_And_Engineering(Part_2)_by_D._Halliday_and_R._Resnick/Chapter30.ipynb -> Physics_For_Students_Of_Science_And_Engineering_Part_2_by_D_Halliday_and_R_Resnick/Chapter30.ipynb R Physics-_For_Students_Of_Science_And_Engineering(Part_2)_by_D._Halliday_and_R._Resnick/Chapter31.ipynb -> Physics_For_Students_Of_Science_And_Engineering_Part_2_by_D_Halliday_and_R_Resnick/Chapter31.ipynb R Physics-_For_Students_Of_Science_And_Engineering(Part_2)_by_D._Halliday_and_R._Resnick/Chapter33.ipynb -> Physics_For_Students_Of_Science_And_Engineering_Part_2_by_D_Halliday_and_R_Resnick/Chapter33.ipynb R Physics-_For_Students_Of_Science_And_Engineering(Part_2)_by_D._Halliday_and_R._Resnick/Chapter34.ipynb -> Physics_For_Students_Of_Science_And_Engineering_Part_2_by_D_Halliday_and_R_Resnick/Chapter34.ipynb R Physics-_For_Students_Of_Science_And_Engineering(Part_2)_by_D._Halliday_and_R._Resnick/Chapter35.ipynb -> Physics_For_Students_Of_Science_And_Engineering_Part_2_by_D_Halliday_and_R_Resnick/Chapter35.ipynb R Physics-_For_Students_Of_Science_And_Engineering(Part_2)_by_D._Halliday_and_R._Resnick/Chapter36.ipynb -> Physics_For_Students_Of_Science_And_Engineering_Part_2_by_D_Halliday_and_R_Resnick/Chapter36.ipynb R Physics-_For_Students_Of_Science_And_Engineering(Part_2)_by_D._Halliday_and_R._Resnick/Chapter37.ipynb -> Physics_For_Students_Of_Science_And_Engineering_Part_2_by_D_Halliday_and_R_Resnick/Chapter37.ipynb R Physics-_For_Students_Of_Science_And_Engineering(Part_2)_by_D._Halliday_and_R._Resnick/Chapter38.ipynb -> Physics_For_Students_Of_Science_And_Engineering_Part_2_by_D_Halliday_and_R_Resnick/Chapter38.ipynb R Physics-_For_Students_Of_Science_And_Engineering(Part_2)_by_D._Halliday_and_R._Resnick/Chapter39.ipynb -> Physics_For_Students_Of_Science_And_Engineering_Part_2_by_D_Halliday_and_R_Resnick/Chapter39.ipynb R Physics-_For_Students_Of_Science_And_Engineering(Part_2)_by_D._Halliday_and_R._Resnick/Chapter40.ipynb -> Physics_For_Students_Of_Science_And_Engineering_Part_2_by_D_Halliday_and_R_Resnick/Chapter40.ipynb R Physics-_For_Students_Of_Science_And_Engineering(Part_2)_by_D._Halliday_and_R._Resnick/Chapter41.ipynb -> Physics_For_Students_Of_Science_And_Engineering_Part_2_by_D_Halliday_and_R_Resnick/Chapter41.ipynb R Physics-_For_Students_Of_Science_And_Engineering(Part_2)_by_D._Halliday_and_R._Resnick/Chapter42.ipynb -> Physics_For_Students_Of_Science_And_Engineering_Part_2_by_D_Halliday_and_R_Resnick/Chapter42.ipynb R Physics-_For_Students_Of_Science_And_Engineering(Part_2)_by_D._Halliday_and_R._Resnick/Chapter43.ipynb -> Physics_For_Students_Of_Science_And_Engineering_Part_2_by_D_Halliday_and_R_Resnick/Chapter43.ipynb R Physics-_For_Students_Of_Science_And_Engineering(Part_2)_by_D._Halliday_and_R._Resnick/Chapter44.ipynb -> Physics_For_Students_Of_Science_And_Engineering_Part_2_by_D_Halliday_and_R_Resnick/Chapter44.ipynb R Physics-_For_Students_Of_Science_And_Engineering(Part_2)_by_D._Halliday_and_R._Resnick/Chapter45.ipynb -> Physics_For_Students_Of_Science_And_Engineering_Part_2_by_D_Halliday_and_R_Resnick/Chapter45.ipynb R Physics-_For_Students_Of_Science_And_Engineering(Part_2)_by_D._Halliday_and_R._Resnick/Chapter46.ipynb -> Physics_For_Students_Of_Science_And_Engineering_Part_2_by_D_Halliday_and_R_Resnick/Chapter46.ipynb R Physics-_For_Students_Of_Science_And_Engineering(Part_2)_by_D._Halliday_and_R._Resnick/Chapter47.ipynb -> Physics_For_Students_Of_Science_And_Engineering_Part_2_by_D_Halliday_and_R_Resnick/Chapter47.ipynb R Physics-_For_Students_Of_Science_And_Engineering(Part_2)_by_D._Halliday_and_R._Resnick/Chapter48.ipynb -> Physics_For_Students_Of_Science_And_Engineering_Part_2_by_D_Halliday_and_R_Resnick/Chapter48.ipynb R Physics-_For_Students_Of_Science_And_Engineering(Part_2)_by_D._Halliday_and_R._Resnick/screenshots/Chapter_37.png -> Physics_For_Students_Of_Science_And_Engineering_Part_2_by_D_Halliday_and_R_Resnick/screenshots/Chapter_37.png R Physics-_For_Students_Of_Science_And_Engineering(Part_2)_by_D._Halliday_and_R._Resnick/screenshots/Chapter_38.png -> Physics_For_Students_Of_Science_And_Engineering_Part_2_by_D_Halliday_and_R_Resnick/screenshots/Chapter_38.png R Physics-_For_Students_Of_Science_And_Engineering(Part_2)_by_D._Halliday_and_R._Resnick/screenshots/Chapter_39.png -> Physics_For_Students_Of_Science_And_Engineering_Part_2_by_D_Halliday_and_R_Resnick/screenshots/Chapter_39.png A Thermodynamics_by_Gaggioli_and_Obert/README.txt --- .../Chapter11_b2XsTwq.ipynb | 280 ++++++++++++++ .../Chapter12_MbtXOSy.ipynb | 313 +++++++++++++++ .../Chapter13_IKwAwKI.ipynb | 278 ++++++++++++++ .../Chapter14_Gi0X0ZR.ipynb | 268 +++++++++++++ .../Chapter15_QY6wZIq.ipynb | 396 +++++++++++++++++++ .../Chapter16_0NyhPvP.ipynb | 215 +++++++++++ .../Chapter18_C36GpSn.ipynb | 158 ++++++++ .../Chapter19_QpHK5JI.ipynb | 113 ++++++ .../Chapter20_hKMNWxW.ipynb | 121 ++++++ .../Chapter21_GeNhAzQ.ipynb | 241 ++++++++++++ .../Chapter22_wZJNJdr.ipynb | 123 ++++++ .../Chapter23_9hMbnX4.ipynb | 151 ++++++++ .../Chapter2_8BakG8I.ipynb | 363 ++++++++++++++++++ .../Chapter5_VQzvFGO.ipynb | 253 +++++++++++++ .../Chapter6_18MJqWw.ipynb | 261 +++++++++++++ .../Chapter8_wMvTWIF.ipynb | 175 +++++++++ .../Chapter9_vhHgT2e.ipynb | 418 +++++++++++++++++++++ .../screenshots/cap1_v96t3WK.png | Bin 0 -> 25269 bytes .../screenshots/index2_za7aGFC.png | Bin 0 -> 7115 bytes .../screenshots/index_Is0qqx4.png | Bin 0 -> 7144 bytes .../README.txt | 10 + .../Chapter26.ipynb | 230 ------------ .../Chapter27.ipynb | 183 --------- .../Chapter28.ipynb | 98 ----- .../Chapter29.ipynb | 209 ----------- .../Chapter30.ipynb | 167 -------- .../Chapter31.ipynb | 219 ----------- .../Chapter33.ipynb | 260 ------------- .../Chapter34.ipynb | 148 -------- .../Chapter35.ipynb | 131 ------- .../Chapter36.ipynb | 220 ----------- .../Chapter37.ipynb | 181 --------- .../Chapter38.ipynb | 195 ---------- .../Chapter39.ipynb | 73 ---- .../Chapter40.ipynb | 166 -------- .../Chapter41.ipynb | 139 ------- .../Chapter42.ipynb | 183 --------- .../Chapter43.ipynb | 177 --------- .../Chapter44.ipynb | 157 -------- .../Chapter45.ipynb | 227 ----------- .../Chapter46.ipynb | 130 ------- .../Chapter47.ipynb | 157 -------- .../Chapter48.ipynb | 205 ---------- .../screenshots/Chapter_37.png | Bin 92354 -> 0 bytes .../screenshots/Chapter_38.png | Bin 78505 -> 0 bytes .../screenshots/Chapter_39.png | Bin 88168 -> 0 bytes .../Chapter26.ipynb | 230 ++++++++++++ .../Chapter27.ipynb | 183 +++++++++ .../Chapter28.ipynb | 98 +++++ .../Chapter29.ipynb | 209 +++++++++++ .../Chapter30.ipynb | 167 ++++++++ .../Chapter31.ipynb | 219 +++++++++++ .../Chapter33.ipynb | 260 +++++++++++++ .../Chapter34.ipynb | 148 ++++++++ .../Chapter35.ipynb | 131 +++++++ .../Chapter36.ipynb | 220 +++++++++++ .../Chapter37.ipynb | 181 +++++++++ .../Chapter38.ipynb | 195 ++++++++++ .../Chapter39.ipynb | 73 ++++ .../Chapter40.ipynb | 166 ++++++++ .../Chapter41.ipynb | 139 +++++++ .../Chapter42.ipynb | 183 +++++++++ .../Chapter43.ipynb | 177 +++++++++ .../Chapter44.ipynb | 157 ++++++++ .../Chapter45.ipynb | 227 +++++++++++ .../Chapter46.ipynb | 130 +++++++ .../Chapter47.ipynb | 157 ++++++++ .../Chapter48.ipynb | 205 ++++++++++ .../screenshots/Chapter_37.png | Bin 0 -> 92354 bytes .../screenshots/Chapter_38.png | Bin 0 -> 78505 bytes .../screenshots/Chapter_39.png | Bin 0 -> 88168 bytes Thermodynamics_by_Gaggioli_and_Obert/README.txt | 10 + 72 files changed, 8002 insertions(+), 3855 deletions(-) create mode 100644 Electrical_&_Electronic_Systems_by_Neil_Storey/Chapter11_b2XsTwq.ipynb create mode 100644 Electrical_&_Electronic_Systems_by_Neil_Storey/Chapter12_MbtXOSy.ipynb create mode 100644 Electrical_&_Electronic_Systems_by_Neil_Storey/Chapter13_IKwAwKI.ipynb create mode 100644 Electrical_&_Electronic_Systems_by_Neil_Storey/Chapter14_Gi0X0ZR.ipynb create mode 100644 Electrical_&_Electronic_Systems_by_Neil_Storey/Chapter15_QY6wZIq.ipynb create mode 100644 Electrical_&_Electronic_Systems_by_Neil_Storey/Chapter16_0NyhPvP.ipynb create mode 100644 Electrical_&_Electronic_Systems_by_Neil_Storey/Chapter18_C36GpSn.ipynb create mode 100644 Electrical_&_Electronic_Systems_by_Neil_Storey/Chapter19_QpHK5JI.ipynb create mode 100644 Electrical_&_Electronic_Systems_by_Neil_Storey/Chapter20_hKMNWxW.ipynb create mode 100644 Electrical_&_Electronic_Systems_by_Neil_Storey/Chapter21_GeNhAzQ.ipynb create mode 100644 Electrical_&_Electronic_Systems_by_Neil_Storey/Chapter22_wZJNJdr.ipynb create mode 100644 Electrical_&_Electronic_Systems_by_Neil_Storey/Chapter23_9hMbnX4.ipynb create mode 100644 Electrical_&_Electronic_Systems_by_Neil_Storey/Chapter2_8BakG8I.ipynb create mode 100644 Electrical_&_Electronic_Systems_by_Neil_Storey/Chapter5_VQzvFGO.ipynb create mode 100644 Electrical_&_Electronic_Systems_by_Neil_Storey/Chapter6_18MJqWw.ipynb create mode 100644 Electrical_&_Electronic_Systems_by_Neil_Storey/Chapter8_wMvTWIF.ipynb create mode 100644 Electrical_&_Electronic_Systems_by_Neil_Storey/Chapter9_vhHgT2e.ipynb create mode 100644 Electrical_&_Electronic_Systems_by_Neil_Storey/screenshots/cap1_v96t3WK.png create mode 100644 Electrical_&_Electronic_Systems_by_Neil_Storey/screenshots/index2_za7aGFC.png create mode 100644 Electrical_&_Electronic_Systems_by_Neil_Storey/screenshots/index_Is0qqx4.png create mode 100644 Linear_Algebra_And_Its_Applications_by_G._Strang/README.txt delete mode 100755 Physics-_For_Students_Of_Science_And_Engineering(Part_2)_by_D._Halliday_and_R._Resnick/Chapter26.ipynb delete mode 100755 Physics-_For_Students_Of_Science_And_Engineering(Part_2)_by_D._Halliday_and_R._Resnick/Chapter27.ipynb delete mode 100755 Physics-_For_Students_Of_Science_And_Engineering(Part_2)_by_D._Halliday_and_R._Resnick/Chapter28.ipynb delete mode 100755 Physics-_For_Students_Of_Science_And_Engineering(Part_2)_by_D._Halliday_and_R._Resnick/Chapter29.ipynb delete mode 100755 Physics-_For_Students_Of_Science_And_Engineering(Part_2)_by_D._Halliday_and_R._Resnick/Chapter30.ipynb delete mode 100755 Physics-_For_Students_Of_Science_And_Engineering(Part_2)_by_D._Halliday_and_R._Resnick/Chapter31.ipynb delete mode 100755 Physics-_For_Students_Of_Science_And_Engineering(Part_2)_by_D._Halliday_and_R._Resnick/Chapter33.ipynb delete mode 100755 Physics-_For_Students_Of_Science_And_Engineering(Part_2)_by_D._Halliday_and_R._Resnick/Chapter34.ipynb delete mode 100755 Physics-_For_Students_Of_Science_And_Engineering(Part_2)_by_D._Halliday_and_R._Resnick/Chapter35.ipynb delete mode 100755 Physics-_For_Students_Of_Science_And_Engineering(Part_2)_by_D._Halliday_and_R._Resnick/Chapter36.ipynb delete mode 100755 Physics-_For_Students_Of_Science_And_Engineering(Part_2)_by_D._Halliday_and_R._Resnick/Chapter37.ipynb delete mode 100755 Physics-_For_Students_Of_Science_And_Engineering(Part_2)_by_D._Halliday_and_R._Resnick/Chapter38.ipynb delete mode 100755 Physics-_For_Students_Of_Science_And_Engineering(Part_2)_by_D._Halliday_and_R._Resnick/Chapter39.ipynb delete mode 100755 Physics-_For_Students_Of_Science_And_Engineering(Part_2)_by_D._Halliday_and_R._Resnick/Chapter40.ipynb delete mode 100755 Physics-_For_Students_Of_Science_And_Engineering(Part_2)_by_D._Halliday_and_R._Resnick/Chapter41.ipynb delete mode 100755 Physics-_For_Students_Of_Science_And_Engineering(Part_2)_by_D._Halliday_and_R._Resnick/Chapter42.ipynb delete mode 100755 Physics-_For_Students_Of_Science_And_Engineering(Part_2)_by_D._Halliday_and_R._Resnick/Chapter43.ipynb delete mode 100755 Physics-_For_Students_Of_Science_And_Engineering(Part_2)_by_D._Halliday_and_R._Resnick/Chapter44.ipynb delete mode 100755 Physics-_For_Students_Of_Science_And_Engineering(Part_2)_by_D._Halliday_and_R._Resnick/Chapter45.ipynb delete mode 100755 Physics-_For_Students_Of_Science_And_Engineering(Part_2)_by_D._Halliday_and_R._Resnick/Chapter46.ipynb delete mode 100755 Physics-_For_Students_Of_Science_And_Engineering(Part_2)_by_D._Halliday_and_R._Resnick/Chapter47.ipynb delete mode 100755 Physics-_For_Students_Of_Science_And_Engineering(Part_2)_by_D._Halliday_and_R._Resnick/Chapter48.ipynb delete mode 100755 Physics-_For_Students_Of_Science_And_Engineering(Part_2)_by_D._Halliday_and_R._Resnick/screenshots/Chapter_37.png delete mode 100755 Physics-_For_Students_Of_Science_And_Engineering(Part_2)_by_D._Halliday_and_R._Resnick/screenshots/Chapter_38.png delete mode 100755 Physics-_For_Students_Of_Science_And_Engineering(Part_2)_by_D._Halliday_and_R._Resnick/screenshots/Chapter_39.png create mode 100755 Physics_For_Students_Of_Science_And_Engineering_Part_2_by_D_Halliday_and_R_Resnick/Chapter26.ipynb create mode 100755 Physics_For_Students_Of_Science_And_Engineering_Part_2_by_D_Halliday_and_R_Resnick/Chapter27.ipynb create mode 100755 Physics_For_Students_Of_Science_And_Engineering_Part_2_by_D_Halliday_and_R_Resnick/Chapter28.ipynb create mode 100755 Physics_For_Students_Of_Science_And_Engineering_Part_2_by_D_Halliday_and_R_Resnick/Chapter29.ipynb create mode 100755 Physics_For_Students_Of_Science_And_Engineering_Part_2_by_D_Halliday_and_R_Resnick/Chapter30.ipynb create mode 100755 Physics_For_Students_Of_Science_And_Engineering_Part_2_by_D_Halliday_and_R_Resnick/Chapter31.ipynb create mode 100755 Physics_For_Students_Of_Science_And_Engineering_Part_2_by_D_Halliday_and_R_Resnick/Chapter33.ipynb create mode 100755 Physics_For_Students_Of_Science_And_Engineering_Part_2_by_D_Halliday_and_R_Resnick/Chapter34.ipynb create mode 100755 Physics_For_Students_Of_Science_And_Engineering_Part_2_by_D_Halliday_and_R_Resnick/Chapter35.ipynb create mode 100755 Physics_For_Students_Of_Science_And_Engineering_Part_2_by_D_Halliday_and_R_Resnick/Chapter36.ipynb create mode 100755 Physics_For_Students_Of_Science_And_Engineering_Part_2_by_D_Halliday_and_R_Resnick/Chapter37.ipynb create mode 100755 Physics_For_Students_Of_Science_And_Engineering_Part_2_by_D_Halliday_and_R_Resnick/Chapter38.ipynb create mode 100755 Physics_For_Students_Of_Science_And_Engineering_Part_2_by_D_Halliday_and_R_Resnick/Chapter39.ipynb create mode 100755 Physics_For_Students_Of_Science_And_Engineering_Part_2_by_D_Halliday_and_R_Resnick/Chapter40.ipynb create mode 100755 Physics_For_Students_Of_Science_And_Engineering_Part_2_by_D_Halliday_and_R_Resnick/Chapter41.ipynb create mode 100755 Physics_For_Students_Of_Science_And_Engineering_Part_2_by_D_Halliday_and_R_Resnick/Chapter42.ipynb create mode 100755 Physics_For_Students_Of_Science_And_Engineering_Part_2_by_D_Halliday_and_R_Resnick/Chapter43.ipynb create mode 100755 Physics_For_Students_Of_Science_And_Engineering_Part_2_by_D_Halliday_and_R_Resnick/Chapter44.ipynb create mode 100755 Physics_For_Students_Of_Science_And_Engineering_Part_2_by_D_Halliday_and_R_Resnick/Chapter45.ipynb create mode 100755 Physics_For_Students_Of_Science_And_Engineering_Part_2_by_D_Halliday_and_R_Resnick/Chapter46.ipynb create mode 100755 Physics_For_Students_Of_Science_And_Engineering_Part_2_by_D_Halliday_and_R_Resnick/Chapter47.ipynb create mode 100755 Physics_For_Students_Of_Science_And_Engineering_Part_2_by_D_Halliday_and_R_Resnick/Chapter48.ipynb create mode 100755 Physics_For_Students_Of_Science_And_Engineering_Part_2_by_D_Halliday_and_R_Resnick/screenshots/Chapter_37.png create mode 100755 Physics_For_Students_Of_Science_And_Engineering_Part_2_by_D_Halliday_and_R_Resnick/screenshots/Chapter_38.png create mode 100755 Physics_For_Students_Of_Science_And_Engineering_Part_2_by_D_Halliday_and_R_Resnick/screenshots/Chapter_39.png create mode 100644 Thermodynamics_by_Gaggioli_and_Obert/README.txt diff --git a/Electrical_&_Electronic_Systems_by_Neil_Storey/Chapter11_b2XsTwq.ipynb b/Electrical_&_Electronic_Systems_by_Neil_Storey/Chapter11_b2XsTwq.ipynb new file mode 100644 index 00000000..1e08381f --- /dev/null +++ b/Electrical_&_Electronic_Systems_by_Neil_Storey/Chapter11_b2XsTwq.ipynb @@ -0,0 +1,280 @@ +{ + "metadata": { + "name": "", + "signature": "sha256:3a4ef8be1017f129a0421c21819212b5457aab0abc06690d5c2563f72500374f" + }, + "nbformat": 3, + "nbformat_minor": 0, + "worksheets": [ + { + "cells": [ + { + "cell_type": "heading", + "level": 1, + "metadata": {}, + "source": [ + "Chapter 11: Measurement of Voltages and Currents" + ] + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 11.1, Page 209" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Initialisation\n", + "t=0.02 #time period in seconds from diagram\n", + "v1=7 #peak voltage from diagram\n", + "\n", + "\n", + "#Calculation\n", + "f=1*t**-1 #frequency in Hz\n", + "v2=2*v1 # Peak to Peak Voltage\n", + "\n", + "#Result\n", + "print'Frequency = %d Hz\\n'%f\n", + "print'Peak to Peak Voltage = %d V\\n'%v2\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Frequency = 50 Hz\n", + "\n", + "Peak to Peak Voltage = 14 V\n", + "\n" + ] + } + ], + "prompt_number": 2 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 11.2, Page 210" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#Initialisation\n", + "t=0.05 #time period in seconds from diagram\n", + "v1=10 #peak voltage from diagram\n", + "\n", + "\n", + "#Calculation\n", + "f1=1*t**-1 #frequency in Hz\n", + "w1=2*math.pi*f1 #Angular velocity\n", + "\n", + "#Result\n", + "print'%d sin %.1ft Hz\\n'%(v1,w1)" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "10 sin 125.7t Hz\n", + "\n" + ] + } + ], + "prompt_number": 26 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 11.3, Page 211" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#Initialisation\n", + "t=0.1 #time period in seconds from diagram\n", + "v1=10 #peak voltage from diagram\n", + "t1=25*10**-3\n", + "\n", + "#Calculation\n", + "f1=1*t**-1 #frequency in Hz\n", + "w1=2*math.pi*f1 #Angular velocity\n", + "phi=-(t1*t**-1)*360 #phase angle\n", + "\n", + "#Result\n", + "print'phi = %d degree'%phi\n", + "print'%d sin %dt%d Hz\\n'%(v1,round(w1),phi)" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "phi = -90 degree\n", + "10 sin 63t-90 Hz\n", + "\n" + ] + } + ], + "prompt_number": 24 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 11.4, Page 215" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#Initialisation\n", + "v1=5 #constant 5V\n", + "r=10 #resistance in Ohm\n", + "vrms=5 #sine wave of 5 V r.m.s\n", + "vp=5 #5 V peak\n", + "\n", + "#Calculation\n", + "p=(v1**2)*r**-1 #Power in watts\n", + "p2=(vrms**2)*r**-1 #Power avarage in watts\n", + "a=(vp*math.sqrt(2)**-1)**2\n", + "p3=a*r**-1 #Power avarage in watts \n", + "\n", + "#Result\n", + "print'(1) P = %.1f W\\n'%p\n", + "print'(2) Pav = %.1f W\\n'%p2\n", + "print'(3) Pav = %.2f W\\n'%p3" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "(1) P = 2.5 W\n", + "\n", + "(2) Pav = 2.5 W\n", + "\n", + "(3) Pav = 1.25 W\n", + "\n" + ] + } + ], + "prompt_number": 27 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 11.5, Page 220" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Initialisation\n", + "fsd1=50*10**-3 #full scale defelction of ammeter in Ampere\n", + "fsd2=1*10**-3 #full scale defelction of moving coil meter in Ampere\n", + "Rm=25 #resistance of moving coil meter in Ohms\n", + "\n", + "#Calculation\n", + "Rsm=fsd1*fsd2**-1 #sensitivity factor\n", + "Rsh=Rm*49**-1 #shunt resistor\n", + "\n", + "#Result\n", + "print'Therefore, Resistor = %d mOhm\\n'%round(Rsh*10**3)\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Therefore, Resistor = 510 mOhm\n", + "\n" + ] + } + ], + "prompt_number": 10 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 11.6, Page 222" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Initialisation\n", + "fsd1=50 #full scale defelction of voltmeter in Volts\n", + "fsd2=1*10**-3 #full scale defelction of moving coil meter in Ampere\n", + "Rm=25 #resistance of moving coil meter in Ohms\n", + "\n", + "#Calculation\n", + "Rsm=fsd1*fsd2**-1\n", + "Rse=Rsm-Rm\n", + "\n", + "#Result\n", + "print'Rse = %.3f KOhm\\n'%(Rse*10**-3)\n", + "print'Therefore, Resistor ~ %d KOhm\\n'%round(Rse*10**-3)" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Rse = 49.975 KOhm\n", + "\n", + "Therefore, Resistor ~ 50 KOhm\n", + "\n" + ] + } + ], + "prompt_number": 5 + }, + { + "cell_type": "code", + "collapsed": false, + "input": [], + "language": "python", + "metadata": {}, + "outputs": [] + } + ], + "metadata": {} + } + ] +} diff --git a/Electrical_&_Electronic_Systems_by_Neil_Storey/Chapter12_MbtXOSy.ipynb b/Electrical_&_Electronic_Systems_by_Neil_Storey/Chapter12_MbtXOSy.ipynb new file mode 100644 index 00000000..0b76bb5c --- /dev/null +++ b/Electrical_&_Electronic_Systems_by_Neil_Storey/Chapter12_MbtXOSy.ipynb @@ -0,0 +1,313 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Chapter 12: Resistance and DC Circuits" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 12.1, Page 237" + ] + }, + { + "cell_type": "code", + "execution_count": 1, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Magnitude, I4 = -3 A\n" + ] + } + ], + "source": [ + "#Initialization\n", + "i1=8 #current in Amp\n", + "i2=1 #current in Amp\n", + "i3=4 #current in Amp\n", + "\n", + "#Calculation\n", + "i4=i2+i3-i1 #current in Amp\n", + "\n", + "#Results\n", + "print'Magnitude, I4 = %d A'%i4" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 12.2, Page 239" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], + "source": [ + "#Initialization\n", + "e=12 #EMF source in volt\n", + "v1=3 #node voltage\n", + "v3=3 #node voltage\n", + "\n", + "#Calculation\n", + "v2=v1+v3-e #node voltage\n", + "\n", + "#Results\n", + "print'V2 = %d V'%v2" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 12.4, Page 242" + ] + }, + { + "cell_type": "code", + "execution_count": 11, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Voc = 10 V\n", + "R = 100 ohm\n" + ] + } + ], + "source": [ + "import numpy as np\n", + "\n", + "#We have used method II for solving our problem by using simultaneous equations\n", + "\n", + "a = np.array([[25,-2],[400,-8]]) \n", + "b = np.array([[50],[3200]])\n", + "c=np.linalg.solve(a,b)\n", + "\n", + "print'Voc = %d V'%c[0]\n", + "print'R = %d ohm'%c[1]\n", + " " + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 12.5, Page 244" + ] + }, + { + "cell_type": "code", + "execution_count": 2, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Voltage, V = 7.14\n" + ] + } + ], + "source": [ + "#Initialization\n", + "r1=100 #Resistance in Ohm\n", + "r2=200 #Resistance in Ohm\n", + "r3=50 #Resistance in Ohm\n", + "v1=15 #voltage source\n", + "v2=20 #voltage source\n", + "\n", + "#Calculation\n", + "#Considering 15 V as a source & replace the other voltage source by its internal resistance,\n", + "r11=(r2*r3)*(r2+r3)**-1 #resistance in parallel\n", + "v11=v1*(r11/(r1+r11)) #voltage\n", + "#Considering 20 V as a source & replace the other voltage source by its internal resistance,\n", + "r22=(r1*r3)*(r1+r3)**-1 #resistance in parallel\n", + "v22=v2*(r22/(r2+r22)) #voltage\n", + "\n", + "#output of the original circuit\n", + "v33=v11+v22\n", + "\n", + "\n", + "\n", + "#Results\n", + "print'Voltage, V = %.2f'%v33" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 12.6, Page 246" + ] + }, + { + "cell_type": "code", + "execution_count": 4, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Output Current, I = 1.67 A\n" + ] + } + ], + "source": [ + "#Initialization\n", + "r1=10 #Resistance in Ohm\n", + "r2=5 #Resistance in Ohm\n", + "v2=5 #voltage source\n", + "i=2 #current in Amp\n", + "\n", + "#Calculation\n", + "#Considering 5 V as a source & replace the current source by its internal resistance,\n", + "i1=v2*(r1+r2)**-1 #current using Ohms law\n", + "#Considering current source & replace the voltage source by its internal resistance,\n", + "r3=(r1*r2)*(r1+r2)**-1 #resistance in parallel\n", + "v3=i*r3 #voltage using Ohms law\n", + "i2=v3*r2**-1 #current using Ohms law\n", + "i3=i1+i2 #total current\n", + "\n", + "#Results\n", + "print'Output Current, I = %.2f A'%i3" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 12.8, Page 251" + ] + }, + { + "cell_type": "code", + "execution_count": 22, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "V2 = 33.04 V\n", + "V3 = 43.15 V\n", + "Current, I1 = 1.73 A\n" + ] + } + ], + "source": [ + "import numpy as np\n", + "r=25 #resistance in ohm\n", + "\n", + "#We have used for solving our problem by using simultaneous equations\n", + "\n", + "a = np.array([[(-13*60**-1),(1*20**-1)],[(1*60**-1),(-9*100**-1)]]) \n", + "b = np.array([[-5],[-100*30**-1]])\n", + "c=np.linalg.solve(a,b)\n", + "i1=c[1]/r #required current\n", + "\n", + "print'V2 = %.2f V'%c[0] #wrong answer in textbook\n", + "print'V3 = %.2f V'%c[1] #wrong answer in textbook\n", + "print'Current, I1 = %.2f A'%i1\n", + " " + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 12.9, Page 253" + ] + }, + { + "cell_type": "code", + "execution_count": 34, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "I1 = 326 mA\n", + "I2 = 33 mA\n", + "I3 = 53 mA\n", + "Voltage, Ve = 0.197 V\n" + ] + } + ], + "source": [ + "import numpy as np\n", + "re=10 #resistance in ohm\n", + "\n", + "#We have used for solving our problem by using simultaneous equations\n", + "\n", + "a = np.array([[(-160),(20), (30)],[(20),(-210), (10)], [(30),(10), (-190)]]) \n", + "b = np.array([[-50],[0],[0]])\n", + "c=np.linalg.solve(a,b)\n", + "ve=re*(c[2]-c[1])\n", + "\n", + "print'I1 = %d mA'%(c[0]*10**3) #current I1\n", + "print'I2 = %d mA'%(c[1]*10**3) #current I2\n", + "print'I3 = %d mA'%(c[2]*10**3) #current I3\n", + "print'Voltage, Ve = %.3f V'%ve\n", + " " + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], + "source": [] + } + ], + "metadata": { + "kernelspec": { + "display_name": "Python [Root]", + "language": "python", + "name": "Python [Root]" + }, + "language_info": { + "codemirror_mode": { + "name": "ipython", + "version": 2 + }, + "file_extension": ".py", + "mimetype": "text/x-python", + "name": "python", + "nbconvert_exporter": "python", + "pygments_lexer": "ipython2", + "version": "2.7.12" + } + }, + "nbformat": 4, + "nbformat_minor": 0 +} diff --git a/Electrical_&_Electronic_Systems_by_Neil_Storey/Chapter13_IKwAwKI.ipynb b/Electrical_&_Electronic_Systems_by_Neil_Storey/Chapter13_IKwAwKI.ipynb new file mode 100644 index 00000000..6ed908f9 --- /dev/null +++ b/Electrical_&_Electronic_Systems_by_Neil_Storey/Chapter13_IKwAwKI.ipynb @@ -0,0 +1,278 @@ +{ + "metadata": { + "name": "", + "signature": "sha256:d756c6c77a4ac290c4965398d89838e2f053a559b464bd46ff8cc1c208f13b8e" + }, + "nbformat": 3, + "nbformat_minor": 0, + "worksheets": [ + { + "cells": [ + { + "cell_type": "heading", + "level": 1, + "metadata": {}, + "source": [ + "Chapter 13: Capacitance and Electric Fields" + ] + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 13.1, Page 264" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Initialization\n", + "c=10*10**-6 #capacitance in Farad\n", + "v=10 #voltage\n", + "\n", + "#Calculation\n", + "q=c*v #charge in coulomb\n", + "\n", + "#Results\n", + "print'Charge, q = %.1f uC'%(q*10**6)" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Charge, q = 100.0 uC\n" + ] + } + ], + "prompt_number": 5 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 13.2, Page 264" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Initialization\n", + "l=25*10**-3 #length in meter\n", + "b=10*10**-3 #breadth in meter\n", + "d=7*10**-6 #distance between plates in meter\n", + "e=100 #dielectric constant of material\n", + "e0=8.85*10**-12 #dielectric constant of air \n", + "\n", + "#Calculation\n", + "c=(e0*e*l*b)*d**-1 #Capacitance\n", + "#Results\n", + "print'Capacitance, C = %.1f nF'%(c*10**9)" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Capacitance, C = 31.6 nF\n" + ] + } + ], + "prompt_number": 9 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 13.3, Page 268" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Initialization\n", + "v=100 #voltage\n", + "d=10**-5 #distance in meter\n", + "\n", + "#Calculation\n", + "e=v*d**-1 #Electric Field Strength\n", + "\n", + "#Results\n", + "print'Electric Field Strength, E = %d ^7 V/m'%round(e*10**-6)" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Electric Field Strength, E = 10 ^7 V/m\n" + ] + } + ], + "prompt_number": 18 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 13.4, Page 268" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Initialization\n", + "q=15*10**-6 #charge in coulomb\n", + "a=200*10**-6 #area\n", + "\n", + "#Calculation\n", + "d=q/a #electric flux density\n", + "\n", + "#Results\n", + "print'D = %d mC/m^2'%(d*10**3)" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "D = 75 mC/m^2\n" + ] + } + ], + "prompt_number": 20 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 13.5, Page 270" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Initialization\n", + "C1=10*10**-6 #capacitance in Farad\n", + "C2=25*10**-6 #capacitance in Farad\n", + "\n", + "#Calculation\n", + "C=C1+C2 #capacitance in Farad\n", + "\n", + "#Results\n", + "print'C = %d uF'%(C*10**6)" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "C = 35 uF\n" + ] + } + ], + "prompt_number": 21 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 13.6, Page 271" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Initialization\n", + "C1=10*10**-6 #capacitance in Farad\n", + "C2=25*10**-6 #capacitance in Farad\n", + "\n", + "#Calculation\n", + "C=(C1*C2)/(C1+C2) #capacitance in Farad\n", + "\n", + "#Results\n", + "print'C = %.2f uF'%(C*10**6)" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "C = 7.14 uF\n" + ] + } + ], + "prompt_number": 23 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 13.7, Page 275" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Initialization\n", + "C1=10*10**-6 #capacitance in Farad\n", + "V=100 #voltage\n", + "\n", + "#Calculation\n", + "E=(0.5)*(C1*V**2) #Energy stored\n", + "\n", + "#Results\n", + "print'E = %.1f mJ'%(E*10**3)" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "E = 50.0 mJ\n" + ] + } + ], + "prompt_number": 35 + }, + { + "cell_type": "code", + "collapsed": false, + "input": [], + "language": "python", + "metadata": {}, + "outputs": [] + } + ], + "metadata": {} + } + ] +} diff --git a/Electrical_&_Electronic_Systems_by_Neil_Storey/Chapter14_Gi0X0ZR.ipynb b/Electrical_&_Electronic_Systems_by_Neil_Storey/Chapter14_Gi0X0ZR.ipynb new file mode 100644 index 00000000..e0d13aee --- /dev/null +++ b/Electrical_&_Electronic_Systems_by_Neil_Storey/Chapter14_Gi0X0ZR.ipynb @@ -0,0 +1,268 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Chapter 14: Inductance and Magnetic Fields" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 14.1, Page 280" + ] + }, + { + "cell_type": "code", + "execution_count": 1, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Magnetic Field Strength, H = 7.96 A/m\n" + ] + } + ], + "source": [ + "#Initialization\n", + "i=5 #current in ampere\n", + "l=0.628 #circumference\n", + "\n", + "\n", + "#Calculation\n", + "h=i/l #magnetic field strength\n", + "\n", + "#Results\n", + "print'Magnetic Field Strength, H = %.2f A/m'%h" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 14.2, Page 283" + ] + }, + { + "cell_type": "code", + "execution_count": 8, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "(a) Magnetomotive Force, H = 3000.00 ampere-turns\n", + "(b) Magnetic Field Strength, H = 7500.00 A/m\n", + "(c) B = 9.42 mT\n", + "(d) Toal Flux, phi = 2.83 uWb\n" + ] + } + ], + "source": [ + "import math\n", + "#Initialization\n", + "i=6 #current in ampere\n", + "n=500 #turns\n", + "l=0.4 #circumference\n", + "uo=4*math.pi*10**-7 #epsilon zero constant\n", + "a=300*10**-6 #area\n", + "\n", + "#Calculation\n", + "f=n*i #Magnetomotive Force\n", + "h=f/l #magnetic field strength\n", + "b=uo*h #magnetic induction\n", + "phi=b*a #flux\n", + "\n", + "#Results\n", + "print'(a) Magnetomotive Force, H = %.2f ampere-turns'%f\n", + "print'(b) Magnetic Field Strength, H = %.2f A/m'%h\n", + "print'(c) B = %.2f mT'%(b*10**3)\n", + "print'(d) Toal Flux, phi = %.2f uWb'%(phi*10**6)" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 14.3, Page 285" + ] + }, + { + "cell_type": "code", + "execution_count": 11, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Voltage, V = 30 mV\n" + ] + } + ], + "source": [ + "#Initialization\n", + "l=10*10**-3 #inductance in henry\n", + "di=3\n", + "\n", + "\n", + "#Calculation\n", + "v=l*di #voltage \n", + "\n", + "#Results\n", + "print'Voltage, V = %d mV'%(v*10**3)" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 14.4, Page 287" + ] + }, + { + "cell_type": "code", + "execution_count": 15, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Inductance,L = 30 uH\n" + ] + } + ], + "source": [ + "import math\n", + "#Initialization\n", + "n=400 #turns\n", + "l=200*10**-3 #circumference\n", + "uo=4*math.pi*10**-7 #epsilon zero constant\n", + "a=30*10**-6 #area\n", + "\n", + "#Calculation\n", + "L=(uo*a*n**2)/l #Inductance in henry \n", + "\n", + "#Results\n", + "print'Inductance,L = %d uH'%(L*10**6)" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 14.5, Page 289" + ] + }, + { + "cell_type": "code", + "execution_count": 21, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "(a) Inductance in series,L = 30 uH\n", + "(b) Inductance in parallel,L = 6.67 uH\n" + ] + } + ], + "source": [ + "import math\n", + "#Initialization\n", + "l1=10 #Inductance in henry \n", + "l2=20 #Inductance in henry \n", + "\n", + "#Calculation\n", + "ls=l1+l2 #Inductance in henry \n", + "lp=((l1*l2)*(l1+l2)**-1) #Inductance in henry \n", + "#Results\n", + "print'(a) Inductance in series,L = %d uH'%ls\n", + "print'(b) Inductance in parallel,L = %.2f uH'%lp" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 14.6, Page 293" + ] + }, + { + "cell_type": "code", + "execution_count": 26, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Stored Energy = 125 mJ\n" + ] + } + ], + "source": [ + "import math\n", + "#Initialization\n", + "l=10**-2 #Inductance in henry \n", + "i=5 #current in ampere \n", + "\n", + "#Calculation\n", + "s=0.5*l*i**2 #stored energy\n", + "\n", + "#Results\n", + "print'Stored Energy = %d mJ'%(s*10**3)\n" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], + "source": [] + } + ], + "metadata": { + "anaconda-cloud": {}, + "kernelspec": { + "display_name": "Python [Root]", + "language": "python", + "name": "Python [Root]" + }, + "language_info": { + "codemirror_mode": { + "name": "ipython", + "version": 2 + }, + "file_extension": ".py", + "mimetype": "text/x-python", + "name": "python", + "nbconvert_exporter": "python", + "pygments_lexer": "ipython2", + "version": "2.7.12" + } + }, + "nbformat": 4, + "nbformat_minor": 0 +} diff --git a/Electrical_&_Electronic_Systems_by_Neil_Storey/Chapter15_QY6wZIq.ipynb b/Electrical_&_Electronic_Systems_by_Neil_Storey/Chapter15_QY6wZIq.ipynb new file mode 100644 index 00000000..1862ee2c --- /dev/null +++ b/Electrical_&_Electronic_Systems_by_Neil_Storey/Chapter15_QY6wZIq.ipynb @@ -0,0 +1,396 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Chapter 15: Alternating Voltages and Currents" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 15.1, Page 305" + ] + }, + { + "cell_type": "code", + "execution_count": 3, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Reactance, Xl = 1 Ohm\n" + ] + } + ], + "source": [ + "#Initialisation\n", + "w=1000 #Angular Frequency \n", + "L=10**-3 #Inductance\n", + "\n", + "#Calculation\n", + "Xl=w*L #Reactance\n", + "\n", + "#Result\n", + "print'Reactance, Xl = %d Ohm'%Xl" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 15.2, Page 305" + ] + }, + { + "cell_type": "code", + "execution_count": 6, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Reactance, Xl = 1.59 KOhm\n" + ] + } + ], + "source": [ + "import math\n", + "\n", + "#Initialisation\n", + "f=50 #frequency\n", + "C=2*10**-6 #Capacitance\n", + "\n", + "#Calculation\n", + "w=2*math.pi*f #Angular Frequency \n", + "Xc=1/(w*C) #Reactance\n", + "\n", + "#Result\n", + "print'Reactance, Xl = %.2f KOhm'%(Xc/1000)" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 15.3, Page 306" + ] + }, + { + "cell_type": "code", + "execution_count": 15, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Peak Current, IL = 318 mA\n" + ] + } + ], + "source": [ + "import math\n", + "\n", + "#Initialisation\n", + "f=100 #frequency\n", + "l=25*10**-3 #Inductance\n", + "Vl=5 #AC Voltage (Sine)\n", + "\n", + "#Calculation\n", + "w=2*math.pi*f #Angular Frequency \n", + "Xl=w*l #Reactance\n", + "Il=Vl*Xl**-1\n", + "\n", + "#Result\n", + "print'Peak Current, IL = %d mA'%(Il*10**3)" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 15.4, Page 306" + ] + }, + { + "cell_type": "code", + "execution_count": 18, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Voltage appear across the capacitor, V = 8 V r.m.s\n" + ] + } + ], + "source": [ + "import math\n", + "\n", + "#Initialisation\n", + "Ic=2 #sinusoidal Current\n", + "C=10*10**-3 #Capacitance\n", + "w=25 #Angular Frequency \n", + "\n", + "\n", + "\n", + "#Calculation \n", + "Xc=1/(w*C) #Reactance\n", + "Vc= Ic*Xc #Voltage\n", + "\n", + "#Result\n", + "print'Voltage appear across the capacitor, V = %d V r.m.s'%(Vc)" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 15.5, Page 309" + ] + }, + { + "cell_type": "code", + "execution_count": 3, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "(a) V = 63.6 V\n", + "(b) V = 38.15 V\n" + ] + } + ], + "source": [ + "import math\n", + "\n", + "#Initialisation\n", + "I=5 #sinusoidal Current\n", + "R=10 #Resistance in Ohm\n", + "f=50 #Frequency in Hertz\n", + "L=0.025 #Inductancec in Henry\n", + " \n", + "\n", + "#Calculation \n", + "Vr=I*R #Voltage across resistor\n", + "Xl=2*math.pi*f*L #Reactance\n", + "VL= I*Xl #Voltage across inductor\n", + "V=math.sqrt((Vr**2)+(VL**2)) #total voltage\n", + "phi=math.atan(VL*Vr**-1) #Phase Angle in radians\n", + "\n", + "#Result\n", + "print'(a) V = %.1f V'%(V)\n", + "print'(b) V = %.2f V'%(phi*180/math.pi) #phase angle in degree" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 15.6, Page 311" + ] + }, + { + "cell_type": "code", + "execution_count": 45, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "(a) Current, I = 884 uA\n", + "(b) V = -27.95 V\n" + ] + } + ], + "source": [ + "import math\n", + "\n", + "#Initialisation\n", + "R=10**4 #Resistance in Ohm\n", + "f=10**3 #Frequency in Hertz\n", + "C=3*10**-8 #Capacitance in Farad\n", + "V=10 #Voltage\n", + "\n", + "#Calculation \n", + "Xc=1/(2*math.pi*f*C) #Reactance\n", + "a=((10**4)**2)+(5.3*10**3)**2\n", + "I=math.sqrt((V**2)/a) #Current in Amp\n", + "Vr=I*R #Voltage\n", + "Vc=Xc*I #Voltage\n", + "phi=math.atan(Vc/Vr) #Phase Angle in radians\n", + "\n", + "#Result\n", + "print'(a) Current, I = %d uA'%round(I*10**6)\n", + "print'(b) V = %.2f V'%(-phi*180/math.pi) #phase angle in degree" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 15.7, Page 317" + ] + }, + { + "cell_type": "code", + "execution_count": 49, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Z = 200 + j 62 Ohms\n" + ] + } + ], + "source": [ + "import math\n", + "\n", + "#Initialisation\n", + "I=5 #sinusoidal Current\n", + "R=200 #Resistance in Ohm\n", + "f=50 #Frequency in Hertz\n", + "L=400*10**-3 #Inductancec in Henry\n", + "C=50*10**-6 #Capacitance in Henry \n", + "\n", + "#Calculation \n", + "Vr=I*R #Voltage across resistor\n", + "Xl=2*math.pi*f*L #Reactance\n", + "Xc=1/(2*math.pi*f*C) #Reactance\n", + "i=Xl-Xc\n", + "\n", + "#Result\n", + "print'Z = %d + j %d Ohms'%(R,i)\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 15.8, Page 320" + ] + }, + { + "cell_type": "code", + "execution_count": 32, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "vo = 12.4 < 29.7\n", + "Therefore\n", + "vo = 12.4 sin(500 t + 29.7)\n" + ] + } + ], + "source": [ + "import math\n", + "from numpy import ones\n", + "\n", + "#Initialisation\n", + "R1=5 #Resistance in Ohm\n", + "R2=50 #Resistance in Ohm\n", + "w=500 #rad/s\n", + "L=50*10**-3 #Inductancec in Henry\n", + "C=200*10**-6 #Capacitance in Henry \n", + "v=10\n", + "\n", + "#Calculation\n", + "Xc=1/(w*C) #Reactance\n", + "Z1=complex(R1,-Xc) #taking in complex form\n", + "a=(R2*w**2*L**2)/(R2**2+(w**2*L**2))\n", + "b=(R2**2*w*L)/(R2**2+(w**2*L**2))\n", + "Z2=complex(a,b) #taking in complex form\n", + "Z3=(Z1+Z2)\n", + "Z=Z2/Z3\n", + "r=math.sqrt((Z.real)**2 + (Z.imag)**2) #converting in polar (absolute)\n", + "r1=v*r \n", + "phi=math.atan(Z.imag/Z.real) #converting in polar (phase)\n", + "\n", + "#Result\n", + "print'vo = %.1f < %.1f'%(r1,(phi*180/math.pi))\n", + "print'Therefore'\n", + "print'vo = %.1f sin(%d t + %.1f)'%(r1,w,(phi*180/math.pi))" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], + "source": [] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], + "source": [] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], + "source": [] + } + ], + "metadata": { + "anaconda-cloud": {}, + "kernelspec": { + "display_name": "Python [Root]", + "language": "python", + "name": "Python [Root]" + }, + "language_info": { + "codemirror_mode": { + "name": "ipython", + "version": 2 + }, + "file_extension": ".py", + "mimetype": "text/x-python", + "name": "python", + "nbconvert_exporter": "python", + "pygments_lexer": "ipython2", + "version": "2.7.12" + } + }, + "nbformat": 4, + "nbformat_minor": 0 +} diff --git a/Electrical_&_Electronic_Systems_by_Neil_Storey/Chapter16_0NyhPvP.ipynb b/Electrical_&_Electronic_Systems_by_Neil_Storey/Chapter16_0NyhPvP.ipynb new file mode 100644 index 00000000..7a471548 --- /dev/null +++ b/Electrical_&_Electronic_Systems_by_Neil_Storey/Chapter16_0NyhPvP.ipynb @@ -0,0 +1,215 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Chapter 16: Power in AC Circuits" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 16.1, Page 329" + ] + }, + { + "cell_type": "code", + "execution_count": 6, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "(a) Apparent power, S = 250 VA\n", + "(b) Power Factor = 0.866\n", + "(c) Active Power, P = 216.5\n" + ] + } + ], + "source": [ + "import math\n", + "\n", + "#Initialisation\n", + "V=50 #Voltage\n", + "I=5 #Current in Ampere r.m.s\n", + "phase=30 #in degrees\n", + "\n", + "#Calculation \n", + "S=V*I #apparent power\n", + "pf=math.cos(phase*math.pi/180) #power factor\n", + "apf=S*pf #active power\n", + "\n", + "#Result\n", + "print'(a) Apparent power, S = %d VA'%S\n", + "print'(b) Power Factor = %.3f'%pf\n", + "print'(c) Active Power, P = %.1f'%apf" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 16.2, Page 331" + ] + }, + { + "cell_type": "code", + "execution_count": 16, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + " Apparent Power, P = 2000 W\n", + " Active Power, P = 1500 W\n", + " Reactive Power, Q = 1322 var\n", + " Current I = 8.33 A\n" + ] + } + ], + "source": [ + "import math\n", + "\n", + "#Initialisation\n", + "pf=0.75 #power factor\n", + "S=2000 #apparent power in VA\n", + "V=240 #Voltage in volts\n", + "\n", + "#Calculation \n", + "apf=S*pf #active power\n", + "sin=math.sqrt(1-(pf**2)) \n", + "Q=S*sin #Reactive Power\n", + "I=S*V**-1 #Current\n", + "#Result\n", + "print' Apparent Power, P = %d W'%S\n", + "print' Active Power, P = %d W'%apf\n", + "print' Reactive Power, Q = %d var'%Q\n", + "print' Current I = %.2f A'%I" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 16.3, Page 333" + ] + }, + { + "cell_type": "code", + "execution_count": 19, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + " Apparent Power, S = 1500 W\n", + " Active Power, P = 1500 W\n", + " Reactive Power, Q = 1322 var\n", + " Current I = 6.25 A\n" + ] + } + ], + "source": [ + "import math\n", + "\n", + "#Initialisation\n", + "pf=0.75 #power factor\n", + "S=1500 #apparent power in W\n", + "V=240 #Voltage in volts\n", + "P1 = 2000 #apparent power\n", + "P2 = 1500 #active power\n", + "Q = 1322 #reactive power\n", + "I = 8.33 #current in amp\n", + "f=50 #frequency in hertz\n", + "\n", + "#Calculation \n", + "Xc=V**2/Q #reactive capacitance\n", + "C=1/(Xc*2*math.pi*f) #capacitance\n", + "I=S*V**-1 #current\n", + "\n", + "#Result\n", + "print' Apparent Power, S = %d W'%S\n", + "print' Active Power, P = %d W'%apf\n", + "print' Reactive Power, Q = %d var'%Q\n", + "print' Current I = %.2f A'%I" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 16.4, Page 335" + ] + }, + { + "cell_type": "code", + "execution_count": 24, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Zl = (50+20j)\n" + ] + } + ], + "source": [ + "import math\n", + "import numpy as np\n", + "\n", + "#Initialisation\n", + "Zo=complex(50,-20) #complex form of output impedance\n", + "\n", + "#Calculation \n", + "Zl=np.conjugate(Zo) #complex form of Load impedance\n", + "\n", + "#Result\n", + "print'Zl = %s'%Zl" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], + "source": [] + } + ], + "metadata": { + "kernelspec": { + "display_name": "Python [Root]", + "language": "python", + "name": "Python [Root]" + }, + "language_info": { + "codemirror_mode": { + "name": "ipython", + "version": 2 + }, + "file_extension": ".py", + "mimetype": "text/x-python", + "name": "python", + "nbconvert_exporter": "python", + "pygments_lexer": "ipython2", + "version": "2.7.12" + } + }, + "nbformat": 4, + "nbformat_minor": 0 +} diff --git a/Electrical_&_Electronic_Systems_by_Neil_Storey/Chapter18_C36GpSn.ipynb b/Electrical_&_Electronic_Systems_by_Neil_Storey/Chapter18_C36GpSn.ipynb new file mode 100644 index 00000000..b24f0f02 --- /dev/null +++ b/Electrical_&_Electronic_Systems_by_Neil_Storey/Chapter18_C36GpSn.ipynb @@ -0,0 +1,158 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Chapter 18: Transient Behaviour" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 18.1, Page 376" + ] + }, + { + "cell_type": "code", + "execution_count": 7, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "v = 18.36 V\n" + ] + } + ], + "source": [ + "#Initialisation\n", + "c=100*10**-6 #capacitance in farad\n", + "r=100*10**3 #resistance in ohm\n", + "v=20 #volt\n", + "t=25 #time in seconds\n", + "e=2.71828 #mathematical constant\n", + "\n", + "#Calculation\n", + "T=c*r #time in seconds\n", + "v1=v*(1-e**(-t*T**-1)) #volt\n", + "\n", + "#Result\n", + "print'v = %.2f V'%v1\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 18.2, Page 378" + ] + }, + { + "cell_type": "code", + "execution_count": 12, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "t = 10.2 mSec\n" + ] + } + ], + "source": [ + "import math\n", + "\n", + "#Initialisation\n", + "l=400*10**-3 #inductance in henry\n", + "i1=300 #current in milliamp\n", + "r=20 #resistance in ohm\n", + "v=15 #volt\n", + "t=25 #time in seconds\n", + "e=2.71828 #mathematical constant\n", + "\n", + "#Calculation\n", + "T=l/r #time in seconds\n", + "i=(v*r**-1)*10**3 #current in amp\n", + "t=((math.log(i/(i-i1)))/(math.log(e)))*0.02 #expression to find time t\n", + "\n", + "#Result\n", + "print't = %.1f mSec'%(t*10**3)\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 18.3, Page 382" + ] + }, + { + "cell_type": "code", + "execution_count": 9, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "v = 10 - 5 e^( -t/0.2 ) V\n" + ] + } + ], + "source": [ + "#Initialisation\n", + "c=20*10**-6 #capacitance in farad\n", + "r=10*10**3 #resistance in ohm\n", + "v=5 #volt\n", + "v2=10 #volt\n", + "\n", + "#Calculation\n", + "T=c*r #time in seconds\n", + "\n", + "#Result\n", + "print'v = %d - %d e^( -t/%.1f ) V'%(v2,v,T)" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], + "source": [] + } + ], + "metadata": { + "anaconda-cloud": {}, + "kernelspec": { + "display_name": "Python [Root]", + "language": "python", + "name": "Python [Root]" + }, + "language_info": { + "codemirror_mode": { + "name": "ipython", + "version": 2 + }, + "file_extension": ".py", + "mimetype": "text/x-python", + "name": "python", + "nbconvert_exporter": "python", + "pygments_lexer": "ipython2", + "version": "2.7.12" + } + }, + "nbformat": 4, + "nbformat_minor": 0 +} diff --git a/Electrical_&_Electronic_Systems_by_Neil_Storey/Chapter19_QpHK5JI.ipynb b/Electrical_&_Electronic_Systems_by_Neil_Storey/Chapter19_QpHK5JI.ipynb new file mode 100644 index 00000000..b87fa7b1 --- /dev/null +++ b/Electrical_&_Electronic_Systems_by_Neil_Storey/Chapter19_QpHK5JI.ipynb @@ -0,0 +1,113 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Chapter 19: Semiconductor Diodes" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 19.1, Page 392" + ] + }, + { + "cell_type": "code", + "execution_count": 1, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Peak Ripple Voltage = 0.4 V\n" + ] + } + ], + "source": [ + "#Introduction\n", + "i=0.2 #current in amp\n", + "C=0.01 #Capacitance in farad\n", + "t=20*10**-3 #time in sec\n", + "\n", + "#Calculation\n", + "dv=i/C #change in voltage w.r.t time\n", + "v=dv*t #peak ripple voltage\n", + "\n", + "#Result\n", + "print'Peak Ripple Voltage = %.1f V'%v\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 19.2, Page 406" + ] + }, + { + "cell_type": "code", + "execution_count": 2, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Peak Ripple Voltage = 0.2 V\n" + ] + } + ], + "source": [ + "#Introduction\n", + "i=0.2 #current in amp\n", + "C=0.01 #Capacitance in farad\n", + "t=10*10**-3 #time in sec\n", + "\n", + "#Calculation\n", + "dv=i/C #change in voltage w.r.t time\n", + "v=dv*t #peak ripple voltage\n", + "\n", + "#Result\n", + "print'Peak Ripple Voltage = %.1f V'%v\n" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], + "source": [] + } + ], + "metadata": { + "kernelspec": { + "display_name": "Python [Root]", + "language": "python", + "name": "Python [Root]" + }, + "language_info": { + "codemirror_mode": { + "name": "ipython", + "version": 2 + }, + "file_extension": ".py", + "mimetype": "text/x-python", + "name": "python", + "nbconvert_exporter": "python", + "pygments_lexer": "ipython2", + "version": "2.7.12" + } + }, + "nbformat": 4, + "nbformat_minor": 0 +} diff --git a/Electrical_&_Electronic_Systems_by_Neil_Storey/Chapter20_hKMNWxW.ipynb b/Electrical_&_Electronic_Systems_by_Neil_Storey/Chapter20_hKMNWxW.ipynb new file mode 100644 index 00000000..960e2bde --- /dev/null +++ b/Electrical_&_Electronic_Systems_by_Neil_Storey/Chapter20_hKMNWxW.ipynb @@ -0,0 +1,121 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Chapter 20: Field-effect Transistors" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 20.1, Page" + ] + }, + { + "cell_type": "code", + "execution_count": 4, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Small signal voltage gain = -4 \n", + "Low frequency cut off = 0.16 Hz\n" + ] + } + ], + "source": [ + "import math\n", + "\n", + "#Introduction\n", + "gm=2*10**-3\n", + "rd=2*10**3 #resistance in ohm\n", + "C=10**-6 #capacitance in farad\n", + "R=10**6 #resistance in ohm\n", + "\n", + "\n", + "#Calculation\n", + "G=-gm*rd #Small signal voltage gain\n", + "fc=1/(2*math.pi*C*R) #frequency in Hz\n", + "\n", + "#Result\n", + "print'Small signal voltage gain = %d '%G\n", + "print'Low frequency cut off = %.2f Hz'%fc" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 20.2, Page" + ] + }, + { + "cell_type": "code", + "execution_count": 2, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Rd = 0.67 kOhm\n" + ] + } + ], + "source": [ + "import math\n", + "\n", + "#Introduction\n", + "idd=4*10**-3 #current in ampere\n", + "vo=8 #voltage\n", + "vdd=12 #voltage\n", + "\n", + "#Calculation\n", + "Rd=vo*(vdd-idd)**-1\n", + "\n", + "#Result\n", + "print'Rd = %.2f kOhm'%Rd #wrong answer in textbook" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], + "source": [] + } + ], + "metadata": { + "anaconda-cloud": {}, + "kernelspec": { + "display_name": "Python [Root]", + "language": "python", + "name": "Python [Root]" + }, + "language_info": { + "codemirror_mode": { + "name": "ipython", + "version": 2 + }, + "file_extension": ".py", + "mimetype": "text/x-python", + "name": "python", + "nbconvert_exporter": "python", + "pygments_lexer": "ipython2", + "version": "2.7.12" + } + }, + "nbformat": 4, + "nbformat_minor": 0 +} diff --git a/Electrical_&_Electronic_Systems_by_Neil_Storey/Chapter21_GeNhAzQ.ipynb b/Electrical_&_Electronic_Systems_by_Neil_Storey/Chapter21_GeNhAzQ.ipynb new file mode 100644 index 00000000..6d1b753b --- /dev/null +++ b/Electrical_&_Electronic_Systems_by_Neil_Storey/Chapter21_GeNhAzQ.ipynb @@ -0,0 +1,241 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Chapter 21: Bipolar Transistors" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 21.1, Page 445" + ] + }, + { + "cell_type": "code", + "execution_count": 5, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Output Current, I = 2.04 mA\n", + "Output Voltage, V = 4.5 V\n" + ] + } + ], + "source": [ + "import math\n", + "#Initialization\n", + "vcc=10 #voltage\n", + "vbe=0.7 #voltage, base-to-emitter junction\n", + "rb=910*10**3 #resistance in ohm\n", + "hfe=200\n", + "rc=2.7*10**3 #resistance in ohm\n", + "\n", + "#Calculation\n", + "ib=(vcc-vbe)/rb #base current in ampere\n", + "ic=hfe*ib #collector in current in ampere\n", + "vo=vcc-(ic*rc) #output voltage\n", + "\n", + "#Result\n", + "print'Output Current, I = %.2f mA'%(ic*10**3)\n", + "print'Output Voltage, V = %.1f V'%vo" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 21.2, Page 445" + ] + }, + { + "cell_type": "code", + "execution_count": 25, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Quiescent Output Voltage, V = 5.6 V\n" + ] + } + ], + "source": [ + "import math\n", + "#Initialization\n", + "vcc=10 #voltage\n", + "r2=10*10**3 #resistance in ohm\n", + "r1=27*10**3 #resistance in ohm\n", + "vbe=0.7 #voltage, base-to-emitter junction\n", + "re=10**3 #resistance in ohm\n", + "rc=2.2*10**3 #resistance in ohm\n", + "\n", + "#Calculation\n", + "vb=vcc*(r2*(r1+r2)**-1) # base voltage\n", + "ve=vb-vbe #emitter voltage\n", + "ie=ve/re #emitter current\n", + "ic=ie #collector current\n", + "vo=vcc-(ic*rc) #output voltage\n", + "\n", + "#Result\n", + "print'Quiescent Output Voltage, V = %.1f V'%vo\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 21.3, Page 448" + ] + }, + { + "cell_type": "code", + "execution_count": 16, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Voltage Gain = -2.2 mA\n" + ] + } + ], + "source": [ + "import math\n", + "#Initialization\n", + "re=10**3 #resistance in ohm\n", + "rc=2.2*10**3 #resistance in ohm\n", + "\n", + "#Calculation\n", + "gain=-rc/re #voltage gain\n", + "\n", + "#Result\n", + "print'Voltage Gain = %.1f mA'%gain\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 21.4, Page 451" + ] + }, + { + "cell_type": "code", + "execution_count": 20, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Voltage Gain = 64 Hz\n" + ] + } + ], + "source": [ + "import math\n", + "#Initialization\n", + "r1=15*10**3 #resistance in ohm\n", + "r2=47*10**3 #resistance in ohm\n", + "C=220*10**-9 #capacitance in farad\n", + "\n", + "#Calculation\n", + "ri=(r1*r2)/(r1+r2) #resistance in paraller\n", + "fco=1/(2*math.pi*C*ri) #frequency in Hz\n", + "\n", + "\n", + "#Result\n", + "print'Voltage Gain = %d Hz'%round(fco)\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 21.5, Page 453" + ] + }, + { + "cell_type": "code", + "execution_count": 26, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Quiescent Output Voltage, V = 2.0 V\n" + ] + } + ], + "source": [ + "import math\n", + "#Initialization\n", + "vcc=10 #voltage\n", + "r2=10*10**3 #resistance in ohm\n", + "r1=27*10**3 #resistance in ohm\n", + "vbe=0.7 #voltage, base-to-emitter junction\n", + "re=10**3 #resistance in ohm\n", + "rc=2.2*10**3 #resistance in ohm\n", + "\n", + "#Calculation\n", + "vb=vcc*(r2*(r1+r2)**-1) # base voltage\n", + "ve=vb-vbe #emitter voltage\n", + "\n", + "\n", + "#Result\n", + "print'Quiescent Output Voltage, V = %.1f V'%ve\n" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], + "source": [] + } + ], + "metadata": { + "anaconda-cloud": {}, + "kernelspec": { + "display_name": "Python [Root]", + "language": "python", + "name": "Python [Root]" + }, + "language_info": { + "codemirror_mode": { + "name": "ipython", + "version": 2 + }, + "file_extension": ".py", + "mimetype": "text/x-python", + "name": "python", + "nbconvert_exporter": "python", + "pygments_lexer": "ipython2", + "version": "2.7.12" + } + }, + "nbformat": 4, + "nbformat_minor": 0 +} diff --git a/Electrical_&_Electronic_Systems_by_Neil_Storey/Chapter22_wZJNJdr.ipynb b/Electrical_&_Electronic_Systems_by_Neil_Storey/Chapter22_wZJNJdr.ipynb new file mode 100644 index 00000000..b477d5ec --- /dev/null +++ b/Electrical_&_Electronic_Systems_by_Neil_Storey/Chapter22_wZJNJdr.ipynb @@ -0,0 +1,123 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Chapter 22: Power Electronics" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 22.1, Page 475" + ] + }, + { + "cell_type": "code", + "execution_count": 6, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + " Output Voltage, V = 12.0 V\n" + ] + } + ], + "source": [ + "import math\n", + "#Initialization\n", + "vz=4.7 #voltage\n", + "r3=1.222*10**3 #resistance in ohm\n", + "r4=10**3 #resistance in ohm\n", + "\n", + "\n", + "#Calculation\n", + "Vo=(vz+0.7)*((r3+r4)*r4**-1) #output voltage\n", + "\n", + "\n", + "#Result\n", + "print' Output Voltage, V = %.1f V'%Vo\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 22.2, Page 476" + ] + }, + { + "cell_type": "code", + "execution_count": 10, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Power delivered to the load, P = 5 W\n", + "Power dissipated in the output transistor, P = 10 W\n" + ] + } + ], + "source": [ + "import math\n", + "#Initialization\n", + "vo=10 #voltage\n", + "rl=5 #resistance in ohm\n", + "vi=15 #voltage\n", + "\n", + "\n", + "#Calculation\n", + "io=vo*rl**-1 #current in ampere\n", + "po=vo*io**-1 #power delivered to the load in watt\n", + "pt=(vi-vo)*io #power dissipated in the output transistor in watt\n", + "\n", + "\n", + "\n", + "#Result\n", + "print'Power delivered to the load, P = %d W'%po\n", + "print'Power dissipated in the output transistor, P = %d W'%pt\n" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], + "source": [] + } + ], + "metadata": { + "anaconda-cloud": {}, + "kernelspec": { + "display_name": "Python [Root]", + "language": "python", + "name": "Python [Root]" + }, + "language_info": { + "codemirror_mode": { + "name": "ipython", + "version": 2 + }, + "file_extension": ".py", + "mimetype": "text/x-python", + "name": "python", + "nbconvert_exporter": "python", + "pygments_lexer": "ipython2", + "version": "2.7.12" + } + }, + "nbformat": 4, + "nbformat_minor": 0 +} diff --git a/Electrical_&_Electronic_Systems_by_Neil_Storey/Chapter23_9hMbnX4.ipynb b/Electrical_&_Electronic_Systems_by_Neil_Storey/Chapter23_9hMbnX4.ipynb new file mode 100644 index 00000000..e17dafb8 --- /dev/null +++ b/Electrical_&_Electronic_Systems_by_Neil_Storey/Chapter23_9hMbnX4.ipynb @@ -0,0 +1,151 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Chapter 23: Electric Motors and Generators" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 23.1, Page 483" + ] + }, + { + "cell_type": "code", + "execution_count": 1, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Sinusoidal Voltage with Peak value = 8.4 V\n" + ] + } + ], + "source": [ + "#initialization\n", + "n=100 #no of turns\n", + "b=400*10**-3 #magnetic field\n", + "a=20*10**-4 #area in cm^2\n", + "w=105 #angular frequency\n", + "\n", + "#calculation\n", + "v=n*b*a*w #voltage\n", + "\n", + "#result\n", + "print'Sinusoidal Voltage with Peak value = %.1f V'%v" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 23.2, Page 488" + ] + }, + { + "cell_type": "code", + "execution_count": 2, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Rotation Speed = 1800 rpm\n" + ] + } + ], + "source": [ + "#initialization\n", + "f=60 #frequency in Hz\n", + "a=60 #seconds\n", + "\n", + "#calculation\n", + "f1=f/2 #required rotation speed\n", + "f2=f1*a #equivalent rotation speed\n", + "\n", + "\n", + "#result\n", + "print'Rotation Speed = %d rpm'%f2" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 23.3, Page 490" + ] + }, + { + "cell_type": "code", + "execution_count": 3, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Rotation Speed = 12000 rpm\n" + ] + } + ], + "source": [ + "#initialization\n", + "f=50 #frequency in Hz\n", + "p=4 #four times magnetic field for 8 pole motor\n", + "a=60 #seconds\n", + "\n", + "#calculation\n", + "f1=f*p #required rotation speed\n", + "f2=f1*a #equivalent rotation speed\n", + "\n", + "\n", + "#result\n", + "print'Rotation Speed = %d rpm'%f2" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], + "source": [] + } + ], + "metadata": { + "anaconda-cloud": {}, + "kernelspec": { + "display_name": "Python [Root]", + "language": "python", + "name": "Python [Root]" + }, + "language_info": { + "codemirror_mode": { + "name": "ipython", + "version": 2 + }, + "file_extension": ".py", + "mimetype": "text/x-python", + "name": "python", + "nbconvert_exporter": "python", + "pygments_lexer": "ipython2", + "version": "2.7.12" + } + }, + "nbformat": 4, + "nbformat_minor": 0 +} diff --git a/Electrical_&_Electronic_Systems_by_Neil_Storey/Chapter2_8BakG8I.ipynb b/Electrical_&_Electronic_Systems_by_Neil_Storey/Chapter2_8BakG8I.ipynb new file mode 100644 index 00000000..a103be90 --- /dev/null +++ b/Electrical_&_Electronic_Systems_by_Neil_Storey/Chapter2_8BakG8I.ipynb @@ -0,0 +1,363 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Chapter 2: Basic Electric Circuits and Components" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 2.1, Page 23" + ] + }, + { + "cell_type": "code", + "execution_count": 3, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Current, I = 15.9 mA\n" + ] + } + ], + "source": [ + "#Initialisation\n", + "v1=15.8 #voltage across r1\n", + "v2=12.3 #voltage across r2\n", + "r2=220 #resistance R2 in ohm\n", + "\n", + "#Calculation\n", + "v=v1-v2 #voltage difference across the resistor\n", + "i=v/r2 #current in ampere\n", + "\n", + "#Result\n", + "print'Current, I = %.1f mA'%(i*1000)" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 2.2, Page 24" + ] + }, + { + "cell_type": "code", + "execution_count": 5, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "I2 = 7 A\n" + ] + } + ], + "source": [ + "#Initialisation\n", + "i1=10; #current in amp\n", + "i3=3; #current in amp\n", + "\n", + "\n", + "#Calculation\n", + "i2=i1-i3 #current in amp\n", + "\n", + "#Result\n", + "print'I2 = %d A'%i2" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 2.3, Page 25" + ] + }, + { + "cell_type": "code", + "execution_count": 6, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "V1 = 5 V\n" + ] + } + ], + "source": [ + "#Initialisation\n", + "E=12 #EMF in volt\n", + "v2=7 #volt\n", + "\n", + "\n", + "#Calculation\n", + "v1=E-v2 #volt\n", + "\n", + "#Result\n", + "print'V1 = %d V'%v1" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 2.4, Page 25" + ] + }, + { + "cell_type": "code", + "execution_count": 8, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "P = 450 W\n" + ] + } + ], + "source": [ + "#Initialisation\n", + "i=3 #current in amp\n", + "r=50 #resistance in ohm\n", + "\n", + "\n", + "#Calculation\n", + "p=(i**2)*r #power in watt\n", + "\n", + "#Result\n", + "print'P = %d W'%p\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 2.5, Page 26" + ] + }, + { + "cell_type": "code", + "execution_count": 9, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "R = 70 ohm\n" + ] + } + ], + "source": [ + "#Initialisation\n", + "r1=10 #resistance in ohm\n", + "r2=20 #resistance in ohm\n", + "r3=15 #resistance in ohm\n", + "r4=25 #resistance in ohm\n", + "\n", + "\n", + "#Calculation\n", + "r=r1+r2+r3+r4 #series resistance in ohm\n", + "\n", + "#Result\n", + "print'R = %d ohm'%r\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 2.6, Page 27" + ] + }, + { + "cell_type": "code", + "execution_count": 13, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "R = 6.67 ohm\n" + ] + } + ], + "source": [ + "#Initialisation\n", + "r1=10 #resistance in ohm\n", + "r2=20 #resistance in ohm\n", + "\n", + "\n", + "\n", + "#Calculation\n", + "r=(r1*r2)*(r1+r2)**-1 #parallel resistance in ohm\n", + "\n", + "#Result\n", + "print'R = %.2f ohm'%r\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 2.7, Page 28" + ] + }, + { + "cell_type": "code", + "execution_count": 14, + "metadata": { + "collapsed": false, + "scrolled": true + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "V = 6 V\n" + ] + } + ], + "source": [ + "#Initialisation\n", + "r1=200 #resistance in ohm\n", + "r2=300 #resistance in ohm\n", + "\n", + "\n", + "#Calculation\n", + "v=(10*r2)/(r1+r2) #resistance in ohm\n", + "\n", + "#Result\n", + "print'V = %d V'%v" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 2.8, Page 29" + ] + }, + { + "cell_type": "code", + "execution_count": 20, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "V = 7 V\n" + ] + } + ], + "source": [ + "#Initialisation\n", + "r1=1*10**3 #resistance in ohm\n", + "r2=500 #resistance in ohm\n", + "v1=15 #voltage\n", + "v2=3 #voltage\n", + "\n", + "#Calculation\n", + "v=v2+((v1-v2)*((r2)*(r1+r2)**-1)) #resistance in ohm\n", + "\n", + "#Result\n", + "print'V = %d V'%v\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 2.9, Page 30" + ] + }, + { + "cell_type": "code", + "execution_count": 21, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "T = 20 ms\n" + ] + } + ], + "source": [ + "#Initialisation\n", + "f=50 #frequency in herts\n", + "\n", + "\n", + "#Calculation\n", + "t=(1*f**-1) #time period\n", + "\n", + "\n", + "#Result\n", + "print'T = %d ms'%(t*10**3)\n" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], + "source": [] + } + ], + "metadata": { + "anaconda-cloud": {}, + "kernelspec": { + "display_name": "Python [Root]", + "language": "python", + "name": "Python [Root]" + }, + "language_info": { + "codemirror_mode": { + "name": "ipython", + "version": 2 + }, + "file_extension": ".py", + "mimetype": "text/x-python", + "name": "python", + "nbconvert_exporter": "python", + "pygments_lexer": "ipython2", + "version": "2.7.12" + } + }, + "nbformat": 4, + "nbformat_minor": 0 +} diff --git a/Electrical_&_Electronic_Systems_by_Neil_Storey/Chapter5_VQzvFGO.ipynb b/Electrical_&_Electronic_Systems_by_Neil_Storey/Chapter5_VQzvFGO.ipynb new file mode 100644 index 00000000..55d66248 --- /dev/null +++ b/Electrical_&_Electronic_Systems_by_Neil_Storey/Chapter5_VQzvFGO.ipynb @@ -0,0 +1,253 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Chapter 5: Signals and Data Transmission" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 5.1, Page 71" + ] + }, + { + "cell_type": "code", + "execution_count": 66, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "An 8-bit word can take 2^8 = 256 values\n", + "\n", + "An 16-bit word can take 2^16 = 65536 values\n", + "\n", + "An 32-bit word can take 2^32 = 4.000000 x 10^9 values\n", + "\n" + ] + } + ], + "source": [ + "#Initialisation\n", + "n=8 #8 bit\n", + "n2=16 #16 bit\n", + "n3=32 #32 bit\n", + "\n", + "#Calculation\n", + "c=2**n #value for 8 bit\n", + "c2=2**n2 #value for 16 bit\n", + "c3=2**n3 #value for 32 bit\n", + "\n", + "#Result\n", + "print'An 8-bit word can take 2^8 = %d values\\n'%c\n", + "print'An 16-bit word can take 2^16 = %d values\\n'%c2\n", + "print'An 32-bit word can take 2^32 = %f x 10^9 values\\n'%(c3/10**9)" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 5.2, Page 71" + ] + }, + { + "cell_type": "code", + "execution_count": 67, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "An 8-bit word resolution = 0.39 percent\n", + "\n", + "An 16-bit word resolution = 0.0015 percent\n", + "\n", + "An 32-bit word resolution = 0.000000023 percent\n", + "\n" + ] + } + ], + "source": [ + "#Initialisation\n", + "n=8 #8 bit\n", + "n2=16 #16 bit\n", + "n3=32 #32 bit\n", + "\n", + "\n", + "#Calculation\n", + "c=2**n #value for 8 bit\n", + "p=(1*c**-1)*100 #percent\n", + "c2=2**n2 #value for 16 bit\n", + "p2=(1*c2**-1)*100 #percent\n", + "c3=2**n3 #value for 32 bit\n", + "p3=(1*c3**-1)*100 #percent\n", + "\n", + "#Result\n", + "print'An 8-bit word resolution = %.2f percent\\n'%p\n", + "print'An 16-bit word resolution = %.4f percent\\n'%p2\n", + "print'An 32-bit word resolution = %.9f percent\\n'%p3" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 5.3, Page 73" + ] + }, + { + "cell_type": "code", + "execution_count": 64, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "data": { + "image/png": "iVBORw0KGgoAAAANSUhEUgAAAYgAAAEZ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D8H7iL7gy1m45aPIMzMrJSPIMzMrJQThJmZlXKCMDOzUk4QZmZWygnCzMxKOUGYmVmp/w9Q\n8qp7rMXCBAAAAABJRU5ErkJggg==\n", + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + } + ], + "source": [ + "import numpy as np\n", + "import matplotlib.pyplot as plt\n", + "\n", + "#data\n", + "x = np.linspace(0, 3, 1)\n", + "y=2\n", + "\n", + "#plotting\n", + "\n", + "plt.bar(1, y, 0.001*max(x))\n", + "\n", + "\n", + "xlabel(\"Frequency in kHz\")\n", + "ylabel(\"Voltage\")\n", + "title(\"Frequency Spectrum\")\n", + "plt.axis([0, 2, 0, 3])\n", + "plt.grid()\n", + "plt.show()\n", + "\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 5.4, Page 73" + ] + }, + { + "cell_type": "code", + "execution_count": 65, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "data": { + "image/png": "iVBORw0KGgoAAAANSUhEUgAAAYgAAAEZCAYAAACNebLAAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAG21JREFUeJzt3Xu0ZGV55/HvD9oLymB7G0SQ7hWCslBJK4oYdLqNUcGo\nOImIjgZbJwnL+0RdalDT42UlaxnHIFFjULSBSLwrKJJolBPwBgr0QBRQglxVvCByaYZweeaP2t0U\nxT7n1Dm965zd53w/a9Wi9t5v7XrqZXc99b7P3vukqpAkadQOix2AJKmfTBCSpFYmCElSKxOEJKmV\nCUKS1MoEIUlqZYKQJLUyQahTSS5LsjnJ9UluaP77kMWOazEkOTTJeUmuS/LzJP+aZNWE3/OOJL81\nyffQ8rFisQPQklPAH1TV6TM1SrJjVd2+QDEtuCR7AccDz62qqST3BZ4OTPozz3jl61Lvd3XLEYQm\nIXdbkaxqft2+LMnlwNea9Qcm+WaSXze/ttcOvWZ1kqkkv0nyL0n+LsmJzba1Sa4ceY8fJ/m95nmS\nvDnJJUl+keQTSVa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n/FTRqbCULbo5uGngf466r68HCDJK+d4fW3cef06r1H9vXq\nqvrqyL7WArcMrbqdO//t3G16p6puTvJV4LnAYcD+M8SyxfD+76D93+ZtDOoWBwNntmy/myS7AR8G\nnr3l9tnSuKxBqM/G+ZOT/wK8LMl9AZI8NMmDgTOA5ya5V5L/Ajx76DWXAY9rnh82sq9XNPfVJ8ne\nSe4zw3tfDDwkyf5N+52TbPk3dRxwDIORx2+m28EcFYMRyT5J3ji0froaxArgU8Cbquo/OopBy4gj\nCPXZrGfnVNVXk+wDfHtQguAG4MVVdV6STwHnA9cAZw+97D3Ap5oi9KlD6z/CYOro3Kae8XMGo4DW\nuKrq1iSHA+9PshODusfvM5gaOzfJ9cDH5vKBh/ff/nGrkrwQOLnZ/2kztP9dBqOXtyd5R9PumVX1\ns3nEpGXI231rWWjm5W+oqvcu0Ps9FPh6Ve2zEO8nTYJTTFLHkvwx8G0Gf7BF2m45gpAktXIEIUlq\nZYKQJLUyQUiSWpkgJEmtTBCSpFYmCElSq/8PK/+gYIz8oXAAAAAASUVORK5CYII=\n", + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + } + ], + "source": [ + "import numpy as np\n", + "import matplotlib.pyplot as plt\n", + "\n", + "#data\n", + "x = np.linspace(0, 3, 1)\n", + "y=2\n", + "y1=1\n", + "\n", + "#plotting\n", + "plt.bar(1, y, 0.001*max(x))\n", + "plt.bar(1.5, y1, 0.001*max(x))\n", + "\n", + "\n", + "xlabel(\"Frequency in kHz\")\n", + "ylabel(\"Voltage\")\n", + "title(\"Frequency Spectrum\")\n", + "plt.axis([0, 2, 0, 3])\n", + "plt.grid()\n", + "plt.show()\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 5.5, Page 74" + ] + }, + { + "cell_type": "code", + "execution_count": 68, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Bandwidth = 7.0 kHz\n" + ] + } + ], + "source": [ + "#Initialisation\n", + "f1=7000 #Human Speech Frequency Upper limit in HZ\n", + "f2=50 #Human Speech Frequency Lower limit in Hz\n", + "\n", + "#Calculation\n", + "B=f1-f2 #Bandwidth in Hz\n", + "\n", + "#Result\n", + "print'Bandwidth = %.1f kHz'%(B*1000**-1)" + ] + } + ], + "metadata": { + "anaconda-cloud": {}, + "kernelspec": { + "display_name": "Python [Root]", + "language": "python", + "name": "Python [Root]" + }, + "language_info": { + "codemirror_mode": { + "name": "ipython", + "version": 2 + }, + "file_extension": ".py", + "mimetype": "text/x-python", + "name": "python", + "nbconvert_exporter": "python", + "pygments_lexer": "ipython2", + "version": "2.7.12" + } + }, + "nbformat": 4, + "nbformat_minor": 0 +} diff --git a/Electrical_&_Electronic_Systems_by_Neil_Storey/Chapter6_18MJqWw.ipynb b/Electrical_&_Electronic_Systems_by_Neil_Storey/Chapter6_18MJqWw.ipynb new file mode 100644 index 00000000..4bcd3580 --- /dev/null +++ b/Electrical_&_Electronic_Systems_by_Neil_Storey/Chapter6_18MJqWw.ipynb @@ -0,0 +1,261 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Chapter 6: Amplification" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 6.1, Page 92" + ] + }, + { + "cell_type": "code", + "execution_count": 11, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Ouput voltage of and amplifier = 15.2 V\n" + ] + } + ], + "source": [ + "#Initialisation\n", + "Ri=1000 #Input Resistance of amplifier in Ohm\n", + "Rs=100 #Output Resistance of sensor in Ohm\n", + "Rl=50 #Load Resistance\n", + "Ro=10 #Output Resistance of amplifier in Ohm\n", + "Av=10 #Voltage gain\n", + "Vs=2 #Sensor voltage\n", + "\n", + "#Calculation\n", + "Vi=Ri*Vs*(Rs+Ri)**-1 #Input Voltage of Amplifier\n", + "Vo=Av*Vi*Rl*(Ro+Rl)**-1 #Output Voltage of Amplifier\n", + "\n", + "#Result\n", + "print'Ouput voltage of and amplifier = %.1f V'%Vo\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 6.2, Page 93" + ] + }, + { + "cell_type": "code", + "execution_count": 10, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Voltage Gain, Av = 8.35\n" + ] + } + ], + "source": [ + "#Initialisation\n", + "Vo=15.2 #Output Voltage of Amplifier\n", + "Vi=1.82 #Input Voltage of Amplifier\n", + "\n", + "#Calculation\n", + "Av=Vo/Vi #Voltage gain\n", + "\n", + "#Result\n", + "print'Voltage Gain, Av = %.2f'%Av\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 6.3, Page 94" + ] + }, + { + "cell_type": "code", + "execution_count": 9, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Ouput voltage of and amplifier = 20.0 V\n" + ] + } + ], + "source": [ + "#Initialisation\n", + "Av=10 #Voltage gain\n", + "Vi=2 #Input Voltage of Amplifier\n", + "Rl=50 #Load Resistance\n", + "Ro=0 #Output Resistance of amplifier in Ohm\n", + "\n", + "\n", + "#Calculation\n", + "Vo=Av*Vi*Rl/(Ro+Rl) #Output Voltage of Amplifier\n", + "\n", + "#Result\n", + "print'Ouput voltage of and amplifier = %.1f V'%Vo\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 6.4, Page 96" + ] + }, + { + "cell_type": "code", + "execution_count": 8, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Output Power, Po = 4.6 W\n" + ] + } + ], + "source": [ + "#Initialisation\n", + "Vo=15.2 #Output Voltage\n", + "Rl=50 #Load Resistance\n", + "\n", + "#Calculation \n", + "Po=(Vo**2)/Rl #Output Power\n", + "\n", + "#Result\n", + "print'Output Power, Po = %.1f W'%Po" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 6.5, Page 98" + ] + }, + { + "cell_type": "code", + "execution_count": 18, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Power Gain, Ap = 1395\n" + ] + } + ], + "source": [ + "#Initialisation\n", + "Vi=1.82 #Input Voltage of Amplifier\n", + "Ri=1000 #Input Resistance of amplifier in Ohm\n", + "Vo=15.2 #Output Voltage of Amplifier\n", + "Rl=50 #Load Resistance\n", + "\n", + "\n", + "#Calculation\n", + "Pi=(Vi**2)*Ri**-1 #Input Power in Watt\n", + "Po=(Vo**2)*Rl**-1 #Output Power in Watt\n", + "Ap=Po/Pi #Power Gain\n", + " \n", + "\n", + "#Result\n", + "print'Power Gain, Ap = %d'%Ap #wrong answer in textbook \n", + " " + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 6.6, Page 99" + ] + }, + { + "cell_type": "code", + "execution_count": 5, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Power Gain (dB) = 31.5 dB\n" + ] + } + ], + "source": [ + "import math\n", + "#Initialisation\n", + "P=1400 #Power gain\n", + "\n", + "#Calculation\n", + "pdb=10*math.log10(P) #Power Gain in dB\n", + "\n", + "#Result\n", + "print'Power Gain (dB) = %.1f dB'%pdb\n" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], + "source": [] + } + ], + "metadata": { + "anaconda-cloud": {}, + "kernelspec": { + "display_name": "Python [Root]", + "language": "python", + "name": "Python [Root]" + }, + "language_info": { + "codemirror_mode": { + "name": "ipython", + "version": 2 + }, + "file_extension": ".py", + "mimetype": "text/x-python", + "name": "python", + "nbconvert_exporter": "python", + "pygments_lexer": "ipython2", + "version": "2.7.12" + } + }, + "nbformat": 4, + "nbformat_minor": 0 +} diff --git a/Electrical_&_Electronic_Systems_by_Neil_Storey/Chapter8_wMvTWIF.ipynb b/Electrical_&_Electronic_Systems_by_Neil_Storey/Chapter8_wMvTWIF.ipynb new file mode 100644 index 00000000..bc1fdb59 --- /dev/null +++ b/Electrical_&_Electronic_Systems_by_Neil_Storey/Chapter8_wMvTWIF.ipynb @@ -0,0 +1,175 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Chapter 8: Operational Amplifier" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 8.3, Page 148" + ] + }, + { + "cell_type": "code", + "execution_count": 1, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Gain = 50\n" + ] + } + ], + "source": [ + "#Initialisation\n", + "f=20*10**3 #bandwidth frequency in KHz\n", + "\n", + "#Calculation\n", + "gain=(10**6)/(f) #gain\n", + "\n", + "#Result\n", + "print'Gain = %d'%gain" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 8.4, Page 150" + ] + }, + { + "cell_type": "code", + "execution_count": 5, + "metadata": { + "collapsed": false, + "scrolled": true + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Output Resistance = 7.5 mOhm\n", + "\n", + "Input Resistance = 20 GOhm\n" + ] + } + ], + "source": [ + "#Initialisation\n", + "og=2*10**5 #Open Loop Gain\n", + "cg=20 #Closed Loop Gain\n", + "or1=75 #Output Resistance\n", + "ir1=2*10**6 #Input Resistance\n", + "\n", + "#Calculation\n", + "ab=og*cg**-1 #factor (1+AB)\n", + "or2=or1/ab #Output Resistance\n", + "ir2=ir1*ab #Input Resistance\n", + "\n", + "#Result\n", + "print'Output Resistance = %.1f mOhm\\n'%(or2*1000)\n", + "print'Input Resistance = %d GOhm'%(ir2*10**-9)" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 8.5, Page 150" + ] + }, + { + "cell_type": "code", + "execution_count": 12, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Output Resistance = 7.5 mOhm\n", + "\n", + "Input Resistance = 1 KOhm\n" + ] + } + ], + "source": [ + "#Initialisation\n", + "og=2*10**5 #Open Loop Gain\n", + "cg=20 #Closed Loop Gain\n", + "or1=75 #Output Resistance\n", + "ir1=2*10**6 #Input Resistance\n", + "r1=20*10**3 #Resistnce in Ohm\n", + "r2=10**3 #Resistnce in Ohm\n", + "\n", + "#Calculation\n", + "ab=og*cg**-1 #factor (1+AB)\n", + "or2=or1*ab**-1 #Output Resistance\n", + "#the input is connected to a virtual earth point by the resistance R2, \n", + "#so the input resistance is equal to R 2 ,\n", + "ir2=r2 #Input Resistance\n", + "\n", + "#Result\n", + "print'Output Resistance = %.1f mOhm\\n'%(or2*1000)\n", + "print'Input Resistance = %d KOhm'%(ir2*10**-3)" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 8.6, Page 151" + ] + }, + { + "cell_type": "code", + "execution_count": 15, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Output Resistance = 375 uOhm\n", + "\n", + "Input Resistance = 400 GOhm\n" + ] + } + ], + "source": [ + "#Initialisation\n", + "og=2*10**5 #Open Loop Gain\n", + "cg=1 #Closed Loop Gain\n", + "or1=75 #Output Resistance\n", + "ir1=2*10**6 #Input Resistance\n", + "\n", + "#Calculation\n", + "ab=og*cg**-1 #factor (1+AB)\n", + "or2=or1*ab**-1 #Output Resistance\n", + "ir2=ir1*ab #Input Resistance\n", + "\n", + "#Result\n", + "print'Output Resistance = %d uOhm\\n'%(or2*10**6) #wrong answer in the textbook\n", + "print'Input Resistance = %d GOhm'%(ir2*10**-9)" + ] + } + ], + "metadata": {}, + "nbformat": 4, + "nbformat_minor": 0 +} diff --git a/Electrical_&_Electronic_Systems_by_Neil_Storey/Chapter9_vhHgT2e.ipynb b/Electrical_&_Electronic_Systems_by_Neil_Storey/Chapter9_vhHgT2e.ipynb new file mode 100644 index 00000000..489ec875 --- /dev/null +++ b/Electrical_&_Electronic_Systems_by_Neil_Storey/Chapter9_vhHgT2e.ipynb @@ -0,0 +1,418 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Chapter 9: Digital Electronics" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 9.8, Page 176" + ] + }, + { + "cell_type": "code", + "execution_count": 7, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Decimal Equivalent = 26.000000\n" + ] + } + ], + "source": [ + "#Initialization\n", + "ni1=11010 #binary number\n", + "\n", + "#Calculation\n", + "def binary_decimal(ni): # Function to convert binary to decimal\n", + " deci = 0;\n", + " i = 0;\n", + " while (ni != 0):\n", + " rem = ni-int(ni/10.)*10\n", + " ni = int(ni/10.);\n", + " deci = deci + rem*2**i;\n", + " i = i + 1;\n", + " return deci\n", + "\n", + "w=binary_decimal(ni1) #calling the function\n", + "\n", + "#Declaration\n", + "print'Decimal Equivalent = %f'%w" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 9.9, Page 176" + ] + }, + { + "cell_type": "code", + "execution_count": 1, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Binary Equivalent = 11010\n" + ] + } + ], + "source": [ + "#Initialization\n", + "ni1=26 #Decimal number\n", + "\n", + "#Calculation\n", + "def decimal_binary(ni): # Function to convert decimal to binary\n", + " bini = 0;\n", + " i = 1;\n", + " while (ni != 0):\n", + " rem = ni-int(ni/2)*2; \n", + " ni = int(ni/2);\n", + " bini = bini + rem*i;\n", + " i = i * 10;\n", + " return bini\n", + "\n", + "w=decimal_binary(ni1) #calling the function\n", + "\n", + "#Declaration\n", + "print'Binary Equivalent = %d'%w" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 9.10, Page 177" + ] + }, + { + "cell_type": "code", + "execution_count": 17, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Decimal equivalent of 34.6875 = 100010.1011\n" + ] + } + ], + "source": [ + "#Initializaton\n", + "\n", + "no=34.6875 #decimal number\n", + "n_int = int(no); # Extract the integral part\n", + "n_frac = no-n_int; # Extract the fractional part\n", + "\n", + "#Calculation\n", + "\n", + "def decimal_binary(ni): # Function to convert decimal to binary\n", + " bini = 0;\n", + " i = 1;\n", + " while (ni != 0):\n", + " rem = ni-int(ni/2)*2; \n", + " ni = int(ni/2);\n", + " bini = bini + rem*i;\n", + " i = i * 10;\n", + " return bini\n", + "\n", + "def decifrac_binfrac(nf): # Function to convert binary fraction to decimal fraction\n", + " binf = 0; i = 0.1;\n", + " while (nf != 0):\n", + " nf = nf*2;\n", + " rem = int(nf); \n", + " nf = nf-rem;\n", + " binf = binf + rem*i;\n", + " i = i/10;\n", + " return binf\n", + "\n", + "\n", + "\n", + "#Result\n", + "print \"Decimal equivalent of 34.6875 = %.4f\"%(decimal_binary(n_int)+decifrac_binfrac(n_frac))" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 9.11, Page 177" + ] + }, + { + "cell_type": "code", + "execution_count": 26, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "W = 40979\n" + ] + } + ], + "source": [ + "#initialization\n", + "n='A013' #Hex number \n", + "\n", + "#Calculation\n", + "w=int(n, 16) #Hex to Decimal Coversion\n", + "\n", + "\n", + "#Result\n", + "print'W = %d'%w" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 9.12, Page 178" + ] + }, + { + "cell_type": "code", + "execution_count": 34, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The hexadecimal equivalent of 7046 is 0x1b86\n" + ] + } + ], + "source": [ + "\n", + "#Variable declaration\n", + "n=7046 #Hex number \n", + "\n", + "#Calculations\n", + "h = hex(n) #decimal to hex conversion\n", + "\n", + "#Result\n", + "print \"The hexadecimal equivalent of 7046 is\",h" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 9.13, Page 178" + ] + }, + { + "cell_type": "code", + "execution_count": 32, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Decimal equivalent of 34.6875 = 1111100001010001\n" + ] + } + ], + "source": [ + "#Initializaton\n", + "\n", + "n='f851' #Hex Number\n", + "\n", + "#Calculation\n", + "\n", + "w=int(n, 16) #Hex to Decimal Coversion\n", + "\n", + "def decimal_binary(ni): # Function to convert decimal to binary\n", + " bini = 0;\n", + " i = 1;\n", + " while (ni != 0):\n", + " rem = ni-int(ni/2)*2; \n", + " ni = int(ni/2);\n", + " bini = bini + rem*i;\n", + " i = i * 10;\n", + " return bini\n", + "\n", + "\n", + "w1=decimal_binary(w) #calling the function\n", + "\n", + "\n", + "#Result\n", + "print \"Decimal equivalent of 34.6875 = %.d\"%(w1)" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 9.14, Page 179" + ] + }, + { + "cell_type": "code", + "execution_count": 36, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The hexadecimal equivalent of 111011011000100 is 0x76c4\n" + ] + } + ], + "source": [ + "#Initialiation\n", + "ni1=111011011000100 #binary number\n", + "\n", + "#Calculation\n", + "def binary_decimal(ni): # Function to convert binary to decimal\n", + " deci = 0;\n", + " i = 0;\n", + " while (ni != 0):\n", + " rem = ni-int(ni/10.)*10\n", + " ni = int(ni/10.);\n", + " deci = deci + rem*2**i;\n", + " i = i + 1;\n", + " return deci\n", + "\n", + "w=binary_decimal(ni1) #calling the function\n", + "h = hex(w) #decimal to hex conversion\n", + "\n", + "#Result\n", + "print \"The hexadecimal equivalent of 111011011000100 is\",h" + ] + }, + { + "cell_type": "markdown", + "metadata": { + "collapsed": false + }, + "source": [ + "## Example 9.15, Page 182" + ] + }, + { + "cell_type": "code", + "execution_count": 19, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Eqivalent BCD of 72 = 1001010001010000\n" + ] + } + ], + "source": [ + "#initialisation\n", + "x='9450' #decimal number to be convert\n", + "\n", + "#calculation\n", + "digits = [int(c) for c in x]\n", + "zero_padded_BCD_digits = [format(d, '04b') for d in digits]\n", + "\n", + "#results\n", + "print \"Eqivalent BCD of 72 = \",\n", + "print ''.join(zero_padded_BCD_digits)" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 9.16, Page 182" + ] + }, + { + "cell_type": "code", + "execution_count": 21, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The equivalent decimal =3876.\n" + ] + } + ], + "source": [ + "\n", + "#Initialisation\n", + "BCD=\"0011 1000 0111 0110\" #Given BCD string\n", + "BCD_split=BCD.split(\" \"); #Splitting th binary string into individual BCD \n", + "d=0;\n", + "for i in range(len(BCD_split),0,-1):\n", + " d+=int(BCD_split[len(BCD_split)-i],2)*10**(i-1);\n", + "\n", + "#Result\n", + "print(\"The equivalent decimal = %d.\"%d);\n", + " " + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], + "source": [] + } + ], + "metadata": { + "kernelspec": { + "display_name": "Python [Root]", + "language": "python", + "name": "Python [Root]" + }, + "language_info": { + "codemirror_mode": { + "name": "ipython", + "version": 2 + }, + "file_extension": ".py", + "mimetype": "text/x-python", + "name": "python", + "nbconvert_exporter": "python", + "pygments_lexer": "ipython2", + "version": "2.7.12" + } + }, + "nbformat": 4, + "nbformat_minor": 0 +} diff --git a/Electrical_&_Electronic_Systems_by_Neil_Storey/screenshots/cap1_v96t3WK.png b/Electrical_&_Electronic_Systems_by_Neil_Storey/screenshots/cap1_v96t3WK.png new file mode 100644 index 00000000..30eb3a12 Binary files /dev/null and b/Electrical_&_Electronic_Systems_by_Neil_Storey/screenshots/cap1_v96t3WK.png differ diff --git a/Electrical_&_Electronic_Systems_by_Neil_Storey/screenshots/index2_za7aGFC.png b/Electrical_&_Electronic_Systems_by_Neil_Storey/screenshots/index2_za7aGFC.png new file mode 100644 index 00000000..8cdd1ca3 Binary files /dev/null and b/Electrical_&_Electronic_Systems_by_Neil_Storey/screenshots/index2_za7aGFC.png differ diff --git a/Electrical_&_Electronic_Systems_by_Neil_Storey/screenshots/index_Is0qqx4.png b/Electrical_&_Electronic_Systems_by_Neil_Storey/screenshots/index_Is0qqx4.png new file mode 100644 index 00000000..1e4ff4d3 Binary files /dev/null and b/Electrical_&_Electronic_Systems_by_Neil_Storey/screenshots/index_Is0qqx4.png differ diff --git a/Linear_Algebra_And_Its_Applications_by_G._Strang/README.txt b/Linear_Algebra_And_Its_Applications_by_G._Strang/README.txt new file mode 100644 index 00000000..fb74cf3f --- /dev/null +++ b/Linear_Algebra_And_Its_Applications_by_G._Strang/README.txt @@ -0,0 +1,10 @@ +Contributed By: Priyanka Saini +Course: btech +College/Institute/Organization: UKTU +Department/Designation: EN +Book Title: Linear Algebra And Its Applications +Author: G. Strang +Publisher: Cengage Learning +Year of publication: 2011 +Isbn: 81-3150-172-8 +Edition: 4 \ No newline at end of file diff --git a/Physics-_For_Students_Of_Science_And_Engineering(Part_2)_by_D._Halliday_and_R._Resnick/Chapter26.ipynb b/Physics-_For_Students_Of_Science_And_Engineering(Part_2)_by_D._Halliday_and_R._Resnick/Chapter26.ipynb deleted file mode 100755 index 3dcd2a65..00000000 --- a/Physics-_For_Students_Of_Science_And_Engineering(Part_2)_by_D._Halliday_and_R._Resnick/Chapter26.ipynb +++ /dev/null @@ -1,230 +0,0 @@ -{ - "cells": [ - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "# Chapter 26:CHARGE AND MATTER" - ] - }, - { - "cell_type": "markdown", - "metadata": { - "collapsed": true - }, - "source": [ - "# Example 26.1 Magnitude of total charges in a copper penny" - ] - }, - { - "cell_type": "code", - "execution_count": 5, - "metadata": { - "collapsed": false - }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - " Magnitude of the charges in coulombs is 133687.50000000003\n" - ] - } - ], - "source": [ - "#Example 1.1\n", - "\n", - "m =3.1 #mass of copper penny in grams\n", - "e =4.6*10** -18 #charge in coulombs\n", - "N0 =6*10**23 #avogadro’s number atoms / mole\n", - "M =64 #molecular weight of copper in gm/ mole\n", - "\n", - "#Calculation\n", - "N =( N0 * m ) / M #No. of copper atoms in penny\n", - "q = N * e # magnitude of the charges in coulombs\n", - "print (\" Magnitude of the charges in coulomb is \",q )" - ] - }, - { - "cell_type": "markdown", - "metadata": { - "collapsed": true - }, - "source": [ - "# Example 26.2 Separation between total positive and negative charges" - ] - }, - { - "cell_type": "code", - "execution_count": 1, - "metadata": { - "collapsed": false - }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - " Separation between total positive and negative charges in meters is 5813776741.499454\n" - ] - } - ], - "source": [ - "#Example 2\n", - "\n", - "import math\n", - "\n", - "F =4.5 #Force of attraction in nt\n", - "q =1.3*10**5 #total charge in coulomb\n", - "r = q * math.sqrt ((9*10**9) / F ) ;\n", - "print(\" Separation between total positive and negative charges in meters is \",r )" - ] - }, - { - "cell_type": "markdown", - "metadata": { - "collapsed": true - }, - "source": [ - "# Example 26.3 Force acting on charge q1" - ] - }, - { - "cell_type": "code", - "execution_count": 8, - "metadata": { - "collapsed": false - }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "X component of resultant force acting on q1 in nt is 2.0999999999999996\n", - "Y component of resultant force acting on q1 in nt is -1.5588457268119893\n" - ] - } - ], - "source": [ - "#Example 3\n", - "\n", - "import math\n", - "\n", - "#given three charges q1,q2,q3\n", - "q1=-1.0*10**-6 #charge in coul\n", - "q2=+3.0*10**-6 #charge in coul\n", - "q3=-2.0*10**-6 #charge in coul\n", - "r12=15*10**-2 #separation between q1 and q2 in m\n", - "r13=10*10**-2 # separation between q1 and q3 in m\n", - "angle=math.pi/6 #in degrees\n", - "F12=(9.0*10**9)*q1*q2/(r12**2) #in nt\n", - "F13=(9.0*10**9)*q1*q3/(r13**2) #in nt\n", - "F12x=-F12 #ignoring signs of charges\n", - "F13x=F13*math.sin(angle);\n", - "F1x=F12x+F13x\n", - "F12y=0 #from fig.263\n", - "F13y=-F13*math.cos(angle);\n", - "F1y=F12y+F13y #in nt\n", - "print(\"X component of resultant force acting on q1 in nt is\",F1x)\n", - "print(\"Y component of resultant force acting on q1 in nt is\",F1y)" - ] - }, - { - "cell_type": "markdown", - "metadata": { - "collapsed": true - }, - "source": [ - "# Example 26.4 Electrical and Gravitational force between two particles" - ] - }, - { - "cell_type": "code", - "execution_count": 9, - "metadata": { - "collapsed": false - }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "Coulomb force in nt is 8.202207191171238e-08\n", - "Gravitational force in nt is 3.689889640441438e-47\n" - ] - } - ], - "source": [ - "#Example 4\n", - "\n", - "r=5.3*10**-11 #distance between electron and proton in the hydrogen atom in meter\n", - "e=1.6*10**-19 #charge in coul\n", - "G=6.7*10**-11 #gravitatinal constant in nt-m2/kg2\n", - "m1=9.1*10**-31 #mass of electron in kg\n", - "m2=1.7*10**-27 #mass of proton in kg\n", - "F1=(9*10**9)*e*e/(r**2) #coulomb's law\n", - "F2=G*m1*m2/(r**2) #gravitational force\n", - "print(\"Coulomb force in nt is\",F1)\n", - "print(\"Gravitational force in nt is\",F2)" - ] - }, - { - "cell_type": "markdown", - "metadata": { - "collapsed": true - }, - "source": [ - "# Example 26.5 Repulsive force between two protons in a nucleus of iron" - ] - }, - { - "cell_type": "code", - "execution_count": 2, - "metadata": { - "collapsed": false - }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "Repulsive coulomb force F 14.4 nt\n" - ] - } - ], - "source": [ - "#Example 5\n", - "\n", - "r=4*10**-15 #separation between proton annd nucleus in iron in meters\n", - "q=1.6*10**-19 #charge in coul\n", - "F=(9*10**9)*(q**2)/(r**2) #coulomb's law\n", - "print(\"Repulsive coulomb force F \",F,'nt')" - ] - } - ], - "metadata": { - "kernelspec": { - "display_name": "Python 3", - "language": "python", - "name": "python3" - }, - "language_info": { - "codemirror_mode": { - "name": "ipython", - "version": 3 - }, - "file_extension": ".py", - "mimetype": "text/x-python", - "name": "python", - "nbconvert_exporter": "python", - "pygments_lexer": "ipython3", - "version": "3.5.1" - }, - "widgets": { - "state": {}, - "version": "1.1.2" - } - }, - "nbformat": 4, - "nbformat_minor": 0 -} diff --git a/Physics-_For_Students_Of_Science_And_Engineering(Part_2)_by_D._Halliday_and_R._Resnick/Chapter27.ipynb b/Physics-_For_Students_Of_Science_And_Engineering(Part_2)_by_D._Halliday_and_R._Resnick/Chapter27.ipynb deleted file mode 100755 index aa87126e..00000000 --- a/Physics-_For_Students_Of_Science_And_Engineering(Part_2)_by_D._Halliday_and_R._Resnick/Chapter27.ipynb +++ /dev/null @@ -1,183 +0,0 @@ -{ - "cells": [ - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "# Chapter 27 THE ELECTRIC FIELD" - ] - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "# Example 27.1 Electric field strength" - ] - }, - { - "cell_type": "code", - "execution_count": 1, - "metadata": { - "collapsed": false - }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "Electric field strength E=F/q where F=mg\n", - "electric field strength in nt/coul is 5.574e-11\n" - ] - } - ], - "source": [ - "m=9.1*10**-31 #mass of electron in kg\n", - "g=9.8 #acceleration due to gravity in m/s\n", - "q=1.6*10**-19 #charge of electron in coul\n", - "print(\"Electric field strength E=F/q where F=mg\")\n", - "E=m*g/q\n", - "print(\"electric field strength in nt/coul is %.3e\"%E)\n" - ] - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "# Example 27.4 The point on the line joining two charges for the electric field strength to be zero" - ] - }, - { - "cell_type": "code", - "execution_count": 2, - "metadata": { - "collapsed": false - }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "For the electric field strength to be zero the point should lie between the charges where E1=E2\n", - "E1=E2 which implies q1/4πϵx2 = q2/4πϵ(l-x)2\n", - "Electric field strength is zero at x=4.142 cm\n" - ] - } - ], - "source": [ - "import math\n", - "\n", - "q1=1.0*10**-6 #in coul\n", - "q2=2.0*10**-6 #in coul\n", - "l=10 #sepearation b/w q1 and q2 in cm\n", - "print(\"For the electric field strength to be zero the point should lie between the charges where E1=E2\")\n", - "#\"Refer to the fig 27.9\"\n", - "#E1=electric fied strength due to q1\n", - "#E2=electric fied strength due to q2\n", - "print(\"E1=E2 which implies q1/4πϵx2 = q2/4πϵ(l-x)2\")\n", - "x=l/(1+math.sqrt(q2/q1))\n", - "print(\"Electric field strength is zero at x=%.3f cm\"%x)" - ] - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "# Example 27.9 Deflection of electron" - ] - }, - { - "cell_type": "code", - "execution_count": 3, - "metadata": { - "collapsed": false - }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "Corresponding deflection in meters is 0.000337\n" - ] - } - ], - "source": [ - "e=1.6*10**-19 #charge in coul\n", - "E=1.2*10**4 #electric field in nt/coul\n", - "x=1.5*10**-2 #length of deflecting assembly in m\n", - "K0=3.2*10**-16 #kinetic energy of electron in joule\n", - "#calculation\n", - "y=e*E*x**2/(4*K0)\n", - "print(\"Corresponding deflection in meters is %.6f\"%y)" - ] - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "# Example 27.11 Torque and work done by external agent on electric dipole" - ] - }, - { - "cell_type": "code", - "execution_count": 4, - "metadata": { - "collapsed": false - }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "(a)Maximum torque exerted by the fied in nt-m is\n", - "0.002\n", - "(b) Work done by the external agent to turn dipole end for end in joule is \n", - "0.004\n" - ] - } - ], - "source": [ - "import math\n", - "q=1.0*10**-6 #magnitude of two opposite charges of a electric dipole in coul\n", - "d=2.0*10**-2 #seperation b/w charges in m\n", - "E=1.0*10**5 #external field in nt/coul\n", - "#calculations\n", - "#(a)Max torque if found when theta=90 degrees\n", - "#Torque =pEsin(theta)\n", - "p=q*d #electric dipole moment\n", - "T=p*E*math.sin(math.pi/2)\n", - "print(\"(a)Maximum torque exerted by the fied in nt-m is\")\n", - "print(T)\n", - "#(b)work done by the external agent is the potential energy b/w the positions theta=180 and 0 degree\n", - "W=(-p*E*math.cos(math.pi))-(-p*E*math.cos(0))\n", - "print(\"(b) Work done by the external agent to turn dipole end for end in joule is \")\n", - "print(W)" - ] - } - ], - "metadata": { - "anaconda-cloud": {}, - "kernelspec": { - "display_name": "Python 3", - "language": "python", - "name": "python3" - }, - "language_info": { - "codemirror_mode": { - "name": "ipython", - "version": 3 - }, - "file_extension": ".py", - "mimetype": "text/x-python", - "name": "python", - "nbconvert_exporter": "python", - "pygments_lexer": "ipython3", - "version": "3.5.1" - }, - "widgets": { - "state": {}, - "version": "1.1.2" - } - }, - "nbformat": 4, - "nbformat_minor": 0 -} diff --git a/Physics-_For_Students_Of_Science_And_Engineering(Part_2)_by_D._Halliday_and_R._Resnick/Chapter28.ipynb b/Physics-_For_Students_Of_Science_And_Engineering(Part_2)_by_D._Halliday_and_R._Resnick/Chapter28.ipynb deleted file mode 100755 index b8c0f0da..00000000 --- a/Physics-_For_Students_Of_Science_And_Engineering(Part_2)_by_D._Halliday_and_R._Resnick/Chapter28.ipynb +++ /dev/null @@ -1,98 +0,0 @@ -{ - "cells": [ - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "# Chapter 28 GAUSS'S LAW" - ] - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "# Example 28.3 Electric field strength" - ] - }, - { - "cell_type": "code", - "execution_count": 1, - "metadata": { - "collapsed": false - }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "Electric field strength at the surface of the gold atom in nt/coul is 1.138e+13\n" - ] - } - ], - "source": [ - "r=1*10**-10 #radius of the atom in meter\n", - "Z=79 #gold atomic number\n", - "e=1.6*10**-19 #charge in coul\n", - "q=Z*e #total positive charge in coul\n", - "E=(9.0*10**9)*q/r**2\n", - "print(\"Electric field strength at the surface of the gold atom in nt/coul is %.3e\"%E)" - ] - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "# Example 28.4 Electric field strength at the nuclear surface" - ] - }, - { - "cell_type": "code", - "execution_count": 2, - "metadata": { - "collapsed": false - }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "Electric field strength at the surface of the gold atom in nt/coul is 2.389e+21\n" - ] - } - ], - "source": [ - "r=6.9*10**-15 #radius of the gold nucleus in meter\n", - "Z=79 #gold atomic number\n", - "e=1.6*10**-19 #charge in coul\n", - "q=Z*e #total positive charge in coul\n", - "E=(9.0*10**9)*q/r**2\n", - "print(\"Electric field strength at the surface of the gold atom in nt/coul is %.3e\"%E)" - ] - } - ], - "metadata": { - "kernelspec": { - "display_name": "Python 3", - "language": "python", - "name": "python3" - }, - "language_info": { - "codemirror_mode": { - "name": "ipython", - "version": 3 - }, - "file_extension": ".py", - "mimetype": "text/x-python", - "name": "python", - "nbconvert_exporter": "python", - "pygments_lexer": "ipython3", - "version": "3.5.1" - }, - "widgets": { - "state": {}, - "version": "1.1.2" - } - }, - "nbformat": 4, - "nbformat_minor": 0 -} diff --git a/Physics-_For_Students_Of_Science_And_Engineering(Part_2)_by_D._Halliday_and_R._Resnick/Chapter29.ipynb b/Physics-_For_Students_Of_Science_And_Engineering(Part_2)_by_D._Halliday_and_R._Resnick/Chapter29.ipynb deleted file mode 100755 index 439a6f56..00000000 --- a/Physics-_For_Students_Of_Science_And_Engineering(Part_2)_by_D._Halliday_and_R._Resnick/Chapter29.ipynb +++ /dev/null @@ -1,209 +0,0 @@ -{ - "cells": [ - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "# Chapter 29 ELECTRIC POTENTIAL" - ] - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "# Example 29.3 Magnitude of an isolated positive point charge" - ] - }, - { - "cell_type": "code", - "execution_count": 1, - "metadata": { - "collapsed": false - }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "Potential due to a point charge is V=q/4*pi*epislon0*r\n", - "Magnitude of positive point charge in coul is 1.112e-09\n" - ] - } - ], - "source": [ - "import math\n", - "V=100 #electric potential in volts\n", - "r=10*10**-2 #in meters\n", - "epsilon0=8.85*10**-12 #coul2/nt-m2\n", - "print(\"Potential due to a point charge is V=q/4*pi*epislon0*r\")\n", - "q=V*4*math.pi*epsilon0*r\n", - "print(\"Magnitude of positive point charge in coul is %.3e\"%q)" - ] - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "# Exa 29.4 Electric potential at the surface of a gold nucleus" - ] - }, - { - "cell_type": "code", - "execution_count": 2, - "metadata": { - "collapsed": false - }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "Electric potential at the surface of the nucleus in volts is 17220668\n" - ] - } - ], - "source": [ - "import math\n", - "r=6.6*10**-15 #radius of the gold nucleus in meter\n", - "Z=79 #gold atomic number\n", - "e=1.6*10**-19 #charge in coul\n", - "q=Z*e #total positive charge in coul\n", - "epsilon0=8.85*10**-12 #coul2/nt-m2\n", - "V=q/(4*math.pi*epsilon0*r)\n", - "print(\"Electric potential at the surface of the nucleus in volts is %d\"%V)" - ] - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "# Exa 29.5 Potential at the center of the square" - ] - }, - { - "cell_type": "code", - "execution_count": 3, - "metadata": { - "collapsed": false - }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "Potential at the center of the square in volts is 508.65\n" - ] - } - ], - "source": [ - "import math\n", - "q1=1.0*10**-8 #in coul\n", - "q2=-2.0*10**-8 #in coul\n", - "q3=3.0*10**-8 #in coul\n", - "q4=2.0*10**-8 #in coul\n", - "a=1 #side of square in meter\n", - "epsilon0=8.85*10**-12 #coul2/nt-m2\n", - "#refer to the fig 29.7\n", - "r=a/math.sqrt(2) #distance of charges from centre in meter\n", - "V=(q1+q2+q3+q4)/(4*math.pi*epsilon0*r)\n", - "print(\"Potential at the center of the square in volts is %.2f\"%V)" - ] - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "# Exa 29.8 Mutual potential energy" - ] - }, - { - "cell_type": "code", - "execution_count": 4, - "metadata": { - "collapsed": false - }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "Mutual electric potential energy of two proton in joules is 3.837e-14\n", - "Mutual electric potential energy of two proton in ev is 239781.46\n" - ] - } - ], - "source": [ - "import math\n", - "q1=1.6*10**-19 #charge in coul\n", - "q2=1.6*10**-19 #charge in coul\n", - "r=6.0*10**-15 #seperation b/w two protons in meter\n", - "epsilon0=8.85*10**-12 #coul2/nt-m2\n", - "U=(q1*q2)/(4*math.pi*epsilon0*r)\n", - "print(\"Mutual electric potential energy of two proton in joules is %.3e\"%U)\n", - "V=U/q1\n", - "print(\"Mutual electric potential energy of two proton in ev is %.2f\"%V)" - ] - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "# Exa 29.9 Mutual potential energy" - ] - }, - { - "cell_type": "code", - "execution_count": 5, - "metadata": { - "collapsed": false - }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "Total energy is the sum of each pair of particles \n", - "Mutual potential energy of the particles in joules is -0.008991804694457362\n" - ] - } - ], - "source": [ - "import math\n", - "q=1.0*10**-7 #charge in coul\n", - "a=10*10**-2 #side of triangle in meter\n", - "q1=q\n", - "q2=-4*q\n", - "q3=2*q\n", - "epsilon0=8.85*10**-12 #coul2/nt-m2\n", - "print(\"Total energy is the sum of each pair of particles \")\n", - "U=(1/(4*math.pi*epsilon0))*(((q1*q2)/a)+((q1*q3)/a)+((q2*q3)/a))\n", - "print(\"Mutual potential energy of the particles in joules is\",U)" - ] - } - ], - "metadata": { - "kernelspec": { - "display_name": "Python 3", - "language": "python", - "name": "python3" - }, - "language_info": { - "codemirror_mode": { - "name": "ipython", - "version": 3 - }, - "file_extension": ".py", - "mimetype": "text/x-python", - "name": "python", - "nbconvert_exporter": "python", - "pygments_lexer": "ipython3", - "version": "3.5.1" - }, - "widgets": { - "state": {}, - "version": "1.1.2" - } - }, - "nbformat": 4, - "nbformat_minor": 0 -} diff --git a/Physics-_For_Students_Of_Science_And_Engineering(Part_2)_by_D._Halliday_and_R._Resnick/Chapter30.ipynb b/Physics-_For_Students_Of_Science_And_Engineering(Part_2)_by_D._Halliday_and_R._Resnick/Chapter30.ipynb deleted file mode 100755 index 6c475796..00000000 --- a/Physics-_For_Students_Of_Science_And_Engineering(Part_2)_by_D._Halliday_and_R._Resnick/Chapter30.ipynb +++ /dev/null @@ -1,167 +0,0 @@ -{ - "cells": [ - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "# Chapter 30 CAPACITORS AND DIELECTRICS" - ] - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "# Example 30.1 Plate area" - ] - }, - { - "cell_type": "code", - "execution_count": 1, - "metadata": { - "collapsed": false - }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "Plate area in square meter is 1.130e+08\n" - ] - } - ], - "source": [ - "C=1.0 #capacitance in farad\n", - "d=1.0*10**-3 #separation b/w plates in meter\n", - "epsilon0=8.85*10**-12 #coul2/nt-m2\n", - "A=d*C/epsilon0\n", - "print(\"Plate area in square meter is %.3e\"%A)" - ] - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "# Example 30.5 To calculate Capacitance Free charge Electric field strength Potential diffrence between plates" - ] - }, - { - "cell_type": "code", - "execution_count": 2, - "metadata": { - "collapsed": false - }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "(a)Capacitance before the slab is inserted in farad is 8.850e-12\n", - "(b)Free charge in coul is 8.850e-10\n", - "(c)Electric field strength in the gap in volts/meter is 10000\n", - "(d)Electric field strength in the dielectric in volts/meter is 1428.5714\n", - "(e)Potential difference between the plates in volts is 57.1429\n", - "(f)Capacitance with the slab in place in farads is 1.549e-11\n" - ] - } - ], - "source": [ - "epsilon0=8.85*10**-12 #coul2/nt-m2\n", - "A=100*10**-4#area of the plate in square meter\n", - "d=1*10**-2 #separation b/w plates in meter\n", - "b=5*10**-3 #thickness of dielectric lab in meter\n", - "V0=100#in volts\n", - "k=7\n", - "#(a)\n", - "C0=epsilon0*A/d\n", - "print(\"(a)Capacitance before the slab is inserted in farad is %.3e\"%C0)\n", - "#(b)\n", - "q=C0*V0\n", - "print(\"(b)Free charge in coul is %.3e\"%q)\n", - "#(c)\n", - "E0=q/(epsilon0*A)\n", - "print(\"(c)Electric field strength in the gap in volts/meter is %d\"%E0)\n", - "#(d)\n", - "E=q/(k*epsilon0*A)\n", - "print(\"(d)Electric field strength in the dielectric in volts/meter is %.4f\"%E)\n", - "#(e)\n", - "#Refer to fig30-12\n", - "V=E0*(d-b)+E*b\n", - "print(\"(e)Potential difference between the plates in volts is %.4f\"%V)\n", - "#(f)\n", - "C=q/V\n", - "print(\"(f)Capacitance with the slab in place in farads is %.3e\"%C)" - ] - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "# Example 30.6 To calculate Electric displacement and Electric polarisation in dielectric and air gap" - ] - }, - { - "cell_type": "code", - "execution_count": 3, - "metadata": { - "collapsed": false - }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "(a)Electric displacement in dielectric in coul/square metre is 8.859e-08\n", - "Electric polarisation in dielectric in coul/square meter is 7.593e-08\n", - "(b)Electric displacement in air gap in coul/square metre is 8.850e-08\n", - "Electric polarisation in air gap in coul/square meter is 0.0\n" - ] - } - ], - "source": [ - "epsilon0=8.85*10**-12 #coul2/nt-m2\n", - "A=100*10**-4#area of the plate in square meter\n", - "d=1*10**-2 #separation b/w plates in meter\n", - "V0=100#in volts\n", - "E0=1*10**4 #Electric field in the air gap in volts/meter\n", - "k=7\n", - "k0=1\n", - "E=1.43*10**3 #in volts/metre\n", - "D=k*E*epsilon0\n", - "P=epsilon0*(k-1)*E\n", - "#(a)\n", - "print(\"(a)Electric displacement in dielectric in coul/square metre is %.3e\"%D)\n", - "print(\"Electric polarisation in dielectric in coul/square meter is %.3e\"%P)\n", - "#(b)\n", - "D0=k0*epsilon0*E0\n", - "print(\"(b)Electric displacement in air gap in coul/square metre is %.3e\"%D0)\n", - "P0=epsilon0*(k0-1)*E0\n", - "print(\"Electric polarisation in air gap in coul/square meter is\",P0)" - ] - } - ], - "metadata": { - "kernelspec": { - "display_name": "Python 3", - "language": "python", - "name": "python3" - }, - "language_info": { - "codemirror_mode": { - "name": "ipython", - "version": 3 - }, - "file_extension": ".py", - "mimetype": "text/x-python", - "name": "python", - "nbconvert_exporter": "python", - "pygments_lexer": "ipython3", - "version": "3.5.1" - }, - "widgets": { - "state": {}, - "version": "1.1.2" - } - }, - "nbformat": 4, - "nbformat_minor": 0 -} diff --git a/Physics-_For_Students_Of_Science_And_Engineering(Part_2)_by_D._Halliday_and_R._Resnick/Chapter31.ipynb b/Physics-_For_Students_Of_Science_And_Engineering(Part_2)_by_D._Halliday_and_R._Resnick/Chapter31.ipynb deleted file mode 100755 index 3f58961b..00000000 --- a/Physics-_For_Students_Of_Science_And_Engineering(Part_2)_by_D._Halliday_and_R._Resnick/Chapter31.ipynb +++ /dev/null @@ -1,219 +0,0 @@ -{ - "cells": [ - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "# Chapter 31 CURRENT AND RESISTANCE" - ] - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "# Example 31.1 Current density" - ] - }, - { - "cell_type": "code", - "execution_count": 1, - "metadata": { - "collapsed": false - }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "Current density in Aluminium wire in amp/square inches 1273.240\n", - "Current density in copper wire in amp/square inches 3108.495\n" - ] - } - ], - "source": [ - "import math\n", - "\n", - "d1=0.10 #diameter of aluminium wire in inches\n", - "d2=0.064 #diameter of copper wire in inches\n", - "i=10 #current carried by composite wire in amperes\n", - "A1=math.pi*(d1/2)**2 #crosssectional area of aluminium wire in square inches\n", - "A2=math.pi*(d2/2)**2 #crosssectional area of copper wire in square inches\n", - "j1=i/A1\n", - "j2=i/A2\n", - "print(\"Current density in Aluminium wire in amp/square inches %.3f\"%j1)\n", - "print(\"Current density in copper wire in amp/square inches %.3f\"%j2)" - ] - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "# Example 31.2 Drift speed" - ] - }, - { - "cell_type": "code", - "execution_count": 2, - "metadata": { - "collapsed": false - }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "No.of free electrons per unit volume in atoms/mole 8.438e+22\n", - "Drift speed of electron in cm/sec is 0.03556\n" - ] - } - ], - "source": [ - "j=480 #current density for copper wire in amp/cm2\n", - "N0=6*10**23 #avagadro number in atoms/mole\n", - "M=64 #molecular wt in gm/mole\n", - "d=9.0 #density in gm/cm3\n", - "e=1.6*10**-19 #elecron charge in coul\n", - "n=d*N0/M \n", - "print(\"No.of free electrons per unit volume in atoms/mole %.3e\"%n)\n", - "Vd=j/(n*e)\n", - "print(\"Drift speed of electron in cm/sec is %.5f\"%Vd)" - ] - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "# Example 31.3 Resistance and resistivity" - ] - }, - { - "cell_type": "code", - "execution_count": 5, - "metadata": { - "collapsed": false - }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "Dimensions of rectangular carbon block are 1.0cm*1.0cm*50cm\n", - "(a) Resistance measured b/w the two square ends in ohm is 0.175\n", - "(a) Resistance measured b/w the two opposite rectangular faces in ohm is 7.0e-05\n" - ] - } - ], - "source": [ - "\n", - "print(\"Dimensions of rectangular carbon block are 1.0cm*1.0cm*50cm\")\n", - "l=1.0*10**-2 #in meter\n", - "b=1.0*10**-2#in meter\n", - "h=50*10**-2 #in meter\n", - "p=3.5*10**-5 #resisivity of carbon in ohm-m\n", - "#(a)Resistance b/w two square ends\n", - "l1=h\n", - "A1=b*l\n", - "R1=p*l1/A1\n", - "print(\"(a) Resistance measured b/w the two square ends in ohm is %.3f\"%R1)\n", - "l2=l\n", - "A2=b*h\n", - "R2=p*l2/A2\n", - "print(\"(a) Resistance measured b/w the two opposite rectangular faces in ohm is %.1e\"%R2)" - ] - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "# Example 31.4 Mean time and Mean free path" - ] - }, - { - "cell_type": "code", - "execution_count": 7, - "metadata": { - "collapsed": false - }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "(a) Mean time b/w collisions in sec is 4.979e-14\n", - "(b) Mean free path in cm is 0.000008\n" - ] - } - ], - "source": [ - "m=9.1*10**-31 #in kg\n", - "n=8.4*10**28 #in m-1\n", - "e=1.6*10**-19 #in coul\n", - "p=1.7*10**-8 #in ohm-m\n", - "v=1.6*10**8 #in cm/sec\n", - "T=2*m/(n*p*e**2)\n", - "print(\"(a) Mean time b/w collisions in sec is %.3e\"%T)\n", - "Lambda=T*v\n", - "print(\"(b) Mean free path in cm is %f\"%Lambda)" - ] - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "# Example 31.5 Power" - ] - }, - { - "cell_type": "code", - "execution_count": 14, - "metadata": { - "collapsed": false - }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "(a)Power for the single coil in watts is 504.167\n", - "(b)Power for a coil of half the length in watts is 1008.333\n" - ] - } - ], - "source": [ - "from __future__ import division\n", - "\n", - "V=110 #in volt\n", - "R=24 #ohms\n", - "P1=V**2/R\n", - "print(\"(a)Power for the single coil in watts is %.3f\"%P1)\n", - "P2=V**2/(R/2)\n", - "print(\"(b)Power for a coil of half the length in watts is %.3f\"%P2)" - ] - } - ], - "metadata": { - "kernelspec": { - "display_name": "Python 3", - "language": "python", - "name": "python3" - }, - "language_info": { - "codemirror_mode": { - "name": "ipython", - "version": 3 - }, - "file_extension": ".py", - "mimetype": "text/x-python", - "name": "python", - "nbconvert_exporter": "python", - "pygments_lexer": "ipython3", - "version": "3.5.1" - }, - "widgets": { - "state": {}, - "version": "1.1.2" - } - }, - "nbformat": 4, - "nbformat_minor": 0 -} diff --git a/Physics-_For_Students_Of_Science_And_Engineering(Part_2)_by_D._Halliday_and_R._Resnick/Chapter33.ipynb b/Physics-_For_Students_Of_Science_And_Engineering(Part_2)_by_D._Halliday_and_R._Resnick/Chapter33.ipynb deleted file mode 100755 index f307c86e..00000000 --- a/Physics-_For_Students_Of_Science_And_Engineering(Part_2)_by_D._Halliday_and_R._Resnick/Chapter33.ipynb +++ /dev/null @@ -1,260 +0,0 @@ -{ - "cells": [ - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "# Chapter 33 THE MAGNETIC FIELD" - ] - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "# Example 33.1 Force acting on a proton" - ] - }, - { - "cell_type": "code", - "execution_count": 1, - "metadata": { - "collapsed": false - }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "Speed of the proton in meters/sec is 30678599.55\n", - "Force acting on proton in nt is 7.363e-12\n" - ] - } - ], - "source": [ - "import math\n", - "K=5*10**6 #ev\n", - "e=1.6*10**-19 #in coul\n", - "K1=K*e #in joules\n", - "m=1.7*10**-27 #in kg\n", - "B=1.5 #wb/m\n", - "theta=math.pi/2\n", - "v=math.sqrt(2*K1/m)\n", - "print(\"Speed of the proton in meters/sec is %.2f\"%v)\n", - "F=e*v*B*math.sin(theta)\n", - "print(\"Force acting on proton in nt is %.3e\"%F)" - ] - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "# Example 33.3 Torsional constant of the spring" - ] - }, - { - "cell_type": "code", - "execution_count": 2, - "metadata": { - "collapsed": false - }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "Torssional constant in nt-m/deg is 3.333e-08\n" - ] - } - ], - "source": [ - "N=250 #turns in coil\n", - "i=1.0*10**-4 #in amp\n", - "B=0.2 #wb/m2\n", - "h=2*10**-2 #coil height in m\n", - "w=1.0*10**-2 #width of coil in m\n", - "Q=30 #angular deflectin in degrees\n", - "theta=math.pi/2\n", - "A=h*w\n", - "k=N*i*A*B*math.sin(theta)/Q\n", - "print(\"Torssional constant in nt-m/deg is %.3e\"%k)" - ] - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "# Example 33.4 Work done" - ] - }, - { - "cell_type": "code", - "execution_count": 3, - "metadata": { - "collapsed": false - }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "Work required to turn current in an external magnetic field from theta=0 to theta=180 degree in joule is 0.23561944901923454\n" - ] - } - ], - "source": [ - "import math\n", - "N=100 #turns in circular coil\n", - "i=0.10 #in amp\n", - "B=1.5 #in wb/m2\n", - "a=5*10**-2 #radius of coil in meter\n", - "u=N*i*math.pi*(a**2) #u is dipole moment\n", - "U1=(-u*B*math.cos(0))\n", - "U2=-u*B*math.cos(math.pi)\n", - "W=U2-U1\n", - "print(\"Work required to turn current in an external magnetic field from theta=0 to theta=180 degree in joule is \",W)" - ] - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "# Example 33.5 Hall potential difference" - ] - }, - { - "cell_type": "code", - "execution_count": 4, - "metadata": { - "collapsed": false - }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "Hall potential difference aross strip in volt is 2.232142857142857e-05 or 0.0000223\n" - ] - } - ], - "source": [ - "i=200 #current in the strip in amp\n", - "B=1.5 #magnetic field in wb/m2\n", - "n=8.4*10**28 #in m-3\n", - "e=1.6*10**-19 #in coul\n", - "h=1.0*10**-3 #thickness of copper strip in metre\n", - "w=2*10**-2 #width of copper strip in meter\n", - "Vxy=i*B/(n*e*h)\n", - "print(\"Hall potential difference aross strip in volt is\",Vxy,\"or\",\"%.7f\"%Vxy)" - ] - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "# Example 33.6 Orbital radius Cyclotron frequency and Period of revolution" - ] - }, - { - "cell_type": "code", - "execution_count": 5, - "metadata": { - "collapsed": false - }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "(A) Orbit radius in meter is 0.1080625\n", - "(B) Cyclotron frequency in rev/sec is 2798328.7\n", - "(C) Period of revolution in sec is 0.0000004\n" - ] - } - ], - "source": [ - "import math\n", - "\n", - "m=9.1*10**-31 # in kg\n", - "v=1.9*10**6 #in m/sec\n", - "q=1.6*10**-19 #charge in coul\n", - "B=1.0*10**-4 #in wb/m2\n", - "\n", - "#(A)\n", - "r=m*v/(q*B)\n", - "print(\"(A) Orbit radius in meter is %.7f\"%r)\n", - "#(B)\n", - "f=q*B/(2*math.pi*m)\n", - "print(\"(B) Cyclotron frequency in rev/sec is %.1f\"%f)\n", - "#(C)\n", - "T=1/f\n", - "print(\"(C) Period of revolution in sec is %.7f\"%T)" - ] - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "# Example 33.7 Magnetic induction and Deuteron energy" - ] - }, - { - "cell_type": "code", - "execution_count": 6, - "metadata": { - "collapsed": false - }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "(A) Magnetic induction needed to accelerate deuterons in wb/m2 is 1.5550883635269475\n", - "(B) Deuteron energy in joule is 2.669e-12\n", - " Deuteron energy in ev is 16679852\n" - ] - } - ], - "source": [ - "import math\n", - "f0=12*10**6 #cyclotron frequency in cycles/sec\n", - "r=21#dee radius in inches\n", - "R=r*0.0254 #dee radius in meter\n", - "q=1.6*10**-19 #charge in coul\n", - "m=3.3*10**-27 #in kg\n", - "#(A)\n", - "B=2*math.pi*f0*m/q\n", - "print(\"(A) Magnetic induction needed to accelerate deuterons in wb/m2 is\",B)\n", - "#(B)\n", - "K=((q**2*B**2*R**2)/(2*m))\n", - "print(\"(B) Deuteron energy in joule is %.3e\"%K)\n", - "K1=K*(1/(1.6*10**-19))\n", - "print(\" Deuteron energy in ev is %d\"%K1)" - ] - } - ], - "metadata": { - "kernelspec": { - "display_name": "Python 3", - "language": "python", - "name": "python3" - }, - "language_info": { - "codemirror_mode": { - "name": "ipython", - "version": 3 - }, - "file_extension": ".py", - "mimetype": "text/x-python", - "name": "python", - "nbconvert_exporter": "python", - "pygments_lexer": "ipython3", - "version": "3.5.1" - }, - "widgets": { - "state": {}, - "version": "1.1.2" - } - }, - "nbformat": 4, - "nbformat_minor": 0 -} diff --git a/Physics-_For_Students_Of_Science_And_Engineering(Part_2)_by_D._Halliday_and_R._Resnick/Chapter34.ipynb b/Physics-_For_Students_Of_Science_And_Engineering(Part_2)_by_D._Halliday_and_R._Resnick/Chapter34.ipynb deleted file mode 100755 index 37944813..00000000 --- a/Physics-_For_Students_Of_Science_And_Engineering(Part_2)_by_D._Halliday_and_R._Resnick/Chapter34.ipynb +++ /dev/null @@ -1,148 +0,0 @@ -{ - "cells": [ - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "# Chapter 34 AMPERES LAW" - ] - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "# Example 34.3 Distance" - ] - }, - { - "cell_type": "code", - "execution_count": 1, - "metadata": { - "collapsed": false - }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "Separation between two wires in metres 0.0054795\n" - ] - } - ], - "source": [ - "import math\n", - "i1=100 #in amp\n", - "i2=20 #in amp\n", - "W=0.073 #weight of second wire W=F/l in nt/m\n", - "u0=4*math.pi*10**-7 #in weber/amp-m\n", - "d=u0*i1*i2/(2*math.pi*W)\n", - "print(\"Separation between two wires in metres %.7f\"%d)" - ] - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "# Example 34.5 Magnetic field and Magnetic flux" - ] - }, - { - "cell_type": "code", - "execution_count": 2, - "metadata": { - "collapsed": false - }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "Magnetic field at center in wb/m2 is 0.0267035\n", - "Magnetic flux at the center of the solenoid in weber is 0.0000189\n" - ] - } - ], - "source": [ - "import math\n", - "l=1.0 #length of solenoid in meter\n", - "d=3*10**-2 #diameter of solenoid in meter\n", - "n=5*850 #number of layers and turns of wire\n", - "u0=4*math.pi*10**-7 #in weber/amp-m\n", - "i0=5.0 #current in amp\n", - "#(A)\n", - "B=u0*i0*n\n", - "print(\"Magnetic field at center in wb/m2 is %.7f\"%B)\n", - "#(B)\n", - "A=math.pi*(d/2)**2\n", - "Q=B*A\n", - "print(\"Magnetic flux at the center of the solenoid in weber is %.7f\"%Q)" - ] - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "# Example 34.9 Magnetic field and Magnetic dipole moment" - ] - }, - { - "cell_type": "code", - "execution_count": 3, - "metadata": { - "collapsed": false - }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "(A) Magnetic field at the center of the orbit in wb/m2 13.404\n", - "(B) Equivalent magnetic dipole moment in amp-m2 is 8.890e-24\n" - ] - } - ], - "source": [ - "import math\n", - "from __future__ import division\n", - "e=1.6*10**-19 #in coul\n", - "R=5.1*10**-11 #radius of th enucleus in meter\n", - "f=6.8*10**15 #frequency with which elecron circulates in rev/sec\n", - "u0=4*math.pi*10**-7 #in weber/amp-m\n", - "x=0 #x is any point on the orbit, since at center x=0\n", - "#(A)\n", - "i=e*f\n", - "B=u0*i*R**2*0.5/((R**2+x**2)**(3/2))\n", - "print(\"(A) Magnetic field at the center of the orbit in wb/m2 %.3f\"%B)\n", - "N=1 #no.of turns\n", - "A=math.pi*R**2\n", - "U=N*i*A\n", - "print(\"(B) Equivalent magnetic dipole moment in amp-m2 is %.3e\"%U)" - ] - } - ], - "metadata": { - "kernelspec": { - "display_name": "Python 3", - "language": "python", - "name": "python3" - }, - "language_info": { - "codemirror_mode": { - "name": "ipython", - "version": 3 - }, - "file_extension": ".py", - "mimetype": "text/x-python", - "name": "python", - "nbconvert_exporter": "python", - "pygments_lexer": "ipython3", - "version": "3.5.1" - }, - "widgets": { - "state": {}, - "version": "1.1.2" - } - }, - "nbformat": 4, - "nbformat_minor": 0 -} diff --git a/Physics-_For_Students_Of_Science_And_Engineering(Part_2)_by_D._Halliday_and_R._Resnick/Chapter35.ipynb b/Physics-_For_Students_Of_Science_And_Engineering(Part_2)_by_D._Halliday_and_R._Resnick/Chapter35.ipynb deleted file mode 100755 index 645f77da..00000000 --- a/Physics-_For_Students_Of_Science_And_Engineering(Part_2)_by_D._Halliday_and_R._Resnick/Chapter35.ipynb +++ /dev/null @@ -1,131 +0,0 @@ -{ - "cells": [ - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "# Chapter 35 FARADAYS LAW" - ] - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "# Example 35.1 Induced EMF" - ] - }, - { - "cell_type": "code", - "execution_count": 2, - "metadata": { - "collapsed": false - }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "Magnetic field at center in wb/m2 is 0.0376991\n", - "Magnetic flux at the center of the solenoid in weber is 0.0000118\n", - "Induced EMF in volts is -0.0473741\n" - ] - } - ], - "source": [ - "import math \n", - "l=1.0 #length of solenoid in meter\n", - "r=3*10**-2 #radius of solenoid in meter\n", - "n=200*10**2 #number of turns in solenoid per meter\n", - "u0=4*math.pi*10**-7 #in weber/amp-m\n", - "i=1.5 #current in amp\n", - "N=100 #no.of turns in a close packed coil placed at the center of solenoid\n", - "d=2*10**-2 #diameter of coil in meter\n", - "delta_T=0.050 #in sec\n", - "#(A)\n", - "B=u0*i*n\n", - "print(\"Magnetic field at center in wb/m2 is %.7f\"%B)\n", - "#(B)\n", - "A=math.pi*(d/2)**2\n", - "Q=B*A\n", - "print(\"Magnetic flux at the center of the solenoid in weber is %.7f\"%Q)\n", - "delta_Q=Q-(-Q)\n", - "E=-(N*delta_Q/delta_T)\n", - "print(\"Induced EMF in volts is %.7f\"%E)" - ] - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "# Example 35.7 Induced electric field and EMF" - ] - }, - { - "cell_type": "code", - "execution_count": 1, - "metadata": { - "collapsed": false - }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "Let S be the frame of reference fixed w.r.t the magnet and Z be the frame of reference w.r.t the loop\n", - "(A) Induced electric field in volt/m observed by Z 2.0\n", - "(B) Force acting on charge carrier in nt w.r.t S is 3.2e-19\n", - "Force acting on charge carrier in nt w.r.t Z is 3.2e-19\n", - "(C) Induced emf in volt observed by S is 0.2\n", - "Induced emf in volt observed by Z is 0.2\n" - ] - } - ], - "source": [ - "B=2 #magnetic field in wb/m2\n", - "l=10*10**-2 #in m\n", - "v=1.0 #in m/sec\n", - "q=1.6*10**-19 #charge in coul\n", - "print(\"Let S be the frame of reference fixed w.r.t the magnet and Z be the frame of reference w.r.t the loop\")\n", - "#(A)\n", - "E=v*B\n", - "print(\"(A) Induced electric field in volt/m observed by Z\",E)\n", - "#(B)\n", - "F=q*v*B\n", - "print(\"(B) Force acting on charge carrier in nt w.r.t S is %.1e\"%F)\n", - "F1=q*E\n", - "print(\"Force acting on charge carrier in nt w.r.t Z is %.1e\"%F1)\n", - "#(C)\n", - "emf1=B*l*v\n", - "print(\"(C) Induced emf in volt observed by S is\",emf1)\n", - "emf2=E*l\n", - "print(\"Induced emf in volt observed by Z is\",emf2)" - ] - } - ], - "metadata": { - "anaconda-cloud": {}, - "kernelspec": { - "display_name": "Python 3", - "language": "python", - "name": "python3" - }, - "language_info": { - "codemirror_mode": { - "name": "ipython", - "version": 3 - }, - "file_extension": ".py", - "mimetype": "text/x-python", - "name": "python", - "nbconvert_exporter": "python", - "pygments_lexer": "ipython3", - "version": "3.5.1" - }, - "widgets": { - "state": {}, - "version": "1.1.2" - } - }, - "nbformat": 4, - "nbformat_minor": 0 -} diff --git a/Physics-_For_Students_Of_Science_And_Engineering(Part_2)_by_D._Halliday_and_R._Resnick/Chapter36.ipynb b/Physics-_For_Students_Of_Science_And_Engineering(Part_2)_by_D._Halliday_and_R._Resnick/Chapter36.ipynb deleted file mode 100755 index c300ad25..00000000 --- a/Physics-_For_Students_Of_Science_And_Engineering(Part_2)_by_D._Halliday_and_R._Resnick/Chapter36.ipynb +++ /dev/null @@ -1,220 +0,0 @@ -{ - "cells": [ - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "# Chapter 36 INDUCTANCE" - ] - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "# Example 36.1 Inductance of a toroid" - ] - }, - { - "cell_type": "code", - "execution_count": 1, - "metadata": { - "collapsed": false - }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "Inductance of a toroid of recyangular cross section in henry is 0.0013863\n" - ] - } - ], - "source": [ - "import math\n", - "from __future__ import division\n", - "\n", - "u0=4*math.pi*10**-7 #in weber/amp-m Mu-not=u0\n", - "N=10**3 #no.of turns\n", - "a=5*10**-2 #im meter\n", - "b=10*10**-2 #in meter\n", - "h=1*10**-2 #in metre\n", - "L=(u0*N**2*h)/(2*math.pi)*math.log(b/a)\n", - "print(\"Inductance of a toroid of recyangular cross section in henry is %.7f\"%L)" - ] - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "# Example 36.2 Time" - ] - }, - { - "cell_type": "code", - "execution_count": 2, - "metadata": { - "collapsed": false - }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "Time taken for the current to reach one-half of its final equilibrium in sec is 1.1552453\n" - ] - } - ], - "source": [ - "import math\n", - "L=50 #inductance in henry\n", - "R=30 #resistance in ohms\n", - "t0=math.log(2)*(L/R)\n", - "print(\"Time taken for the current to reach one-half of its final equilibrium in sec is %.7f\"%t0)" - ] - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "# Example 36.3 Maximum Current and Energy stored" - ] - }, - { - "cell_type": "code", - "execution_count": 3, - "metadata": { - "collapsed": false - }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "Maximum current in amp is 5.0\n", - "Energy stored in the magnetic field in joules is 62.5\n" - ] - } - ], - "source": [ - "L=5 #inductance in henry\n", - "V=100 #emf in volts\n", - "R=20 #resistance in ohms\n", - "i=V/R\n", - "print(\"Maximum current in amp is\",i)\n", - "U=(L*i**2)/2\n", - "print(\"Energy stored in the magnetic field in joules is %.1f\"%U)" - ] - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "# Example 36.4 Rate at which energy is stored and delivered and appeared" - ] - }, - { - "cell_type": "code", - "execution_count": 4, - "metadata": { - "collapsed": false - }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "The rate at which energy is delivred by the battery in watt is 0.5689085\n", - "The rate at which energy appears as Joule heat in the resistor in watt is 0.3596188\n", - "Let D=di/dt\n", - "The desired rate at which energy is being stored in the magnetic field in watt is 0.2092897\n" - ] - } - ], - "source": [ - "L=3 #inductance in henry\n", - "R=10 #resistance in ohm\n", - "V=3 #emf in volts\n", - "t=0.30 #in sec\n", - "T=0.30 #inductive time constant in sec\n", - "#(a)\n", - "i=(V/R)*(1-math.exp(-t/T))\n", - "P1=V*i\n", - "print(\"The rate at which energy is delivred by the battery in watt is %.7f\"%P1)\n", - "#(b)\n", - "P2=i**2*R\n", - "print(\"The rate at which energy appears as Joule heat in the resistor in watt is %.7f\"%P2)\n", - "#(c)\n", - "print(\"Let D=di/dt\")\n", - "D=(V/L)*math.exp(-t/T) #in amp/sec\n", - "P3=L*i*D\n", - "print(\"The desired rate at which energy is being stored in the magnetic field in watt is %.7f\"%P3)" - ] - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "# Example 36.6 Energy" - ] - }, - { - "cell_type": "code", - "execution_count": 5, - "metadata": { - "collapsed": false - }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "(a)Energy required to set up in the given cube on edge in electric field in joules is 0.0000445\n", - "(b)Energy required to set up in the given cube on edge in magnetic field in joules is 397.887\n" - ] - } - ], - "source": [ - "from __future__ import division\n", - "import math\n", - "\n", - "epsilon0=8.9*10**-12 #in coul2/nt-m2\n", - "E=10**5 #elelctric field in volts/meter\n", - "B=1 #magnetic field in weber/meter2\n", - "u0=4*math.pi*10**-7 #in weber/amp-m Mu-not=u0\n", - "a=0.1 #side of the cube in meter\n", - "V0=a**3 #volume of the cube in meter3\n", - "#(a)\n", - "U1=epsilon0*E**2*V0/2 #in elelctric field\n", - "print(\"(a)Energy required to set up in the given cube on edge in electric field in joules is %.7f\"%U1)\n", - "#(b)\n", - "U2=(B**2/(2*u0))*V0\n", - "print(\"(b)Energy required to set up in the given cube on edge in magnetic field in joules is %.3f\"%U2)" - ] - } - ], - "metadata": { - "kernelspec": { - "display_name": "Python 3", - "language": "python", - "name": "python3" - }, - "language_info": { - "codemirror_mode": { - "name": "ipython", - "version": 3 - }, - "file_extension": ".py", - "mimetype": "text/x-python", - "name": "python", - "nbconvert_exporter": "python", - "pygments_lexer": "ipython3", - "version": "3.5.1" - }, - "widgets": { - "state": {}, - "version": "1.1.2" - } - }, - "nbformat": 4, - "nbformat_minor": 0 -} diff --git a/Physics-_For_Students_Of_Science_And_Engineering(Part_2)_by_D._Halliday_and_R._Resnick/Chapter37.ipynb b/Physics-_For_Students_Of_Science_And_Engineering(Part_2)_by_D._Halliday_and_R._Resnick/Chapter37.ipynb deleted file mode 100755 index 034da3ed..00000000 --- a/Physics-_For_Students_Of_Science_And_Engineering(Part_2)_by_D._Halliday_and_R._Resnick/Chapter37.ipynb +++ /dev/null @@ -1,181 +0,0 @@ -{ - "cells": [ - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "# Chapter 37 MAGNETIC PROPERTIES OF MATTER" - ] - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "# Example 37.2 Orbital dipole moment" - ] - }, - { - "cell_type": "code", - "execution_count": 1, - "metadata": { - "collapsed": false - }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "Orbital dipole moment in amp-m2 is 9.061e-24\n" - ] - } - ], - "source": [ - "import math\n", - "e=1.6*10**-19 #in coul\n", - "r=5.1*10**-11 #radius of hydrogen atom in meter\n", - "m=9.1*10**-31 #mass of electron in kg\n", - "epsilon0=8.9*10**-12 #in coul2/nt-m2\n", - "p=((e**2)/4)*math.sqrt(r/(math.pi*epsilon0*m))\n", - "print(\"Orbital dipole moment in amp-m2 is %.3e\"%p)" - ] - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "# Example 37.4 Change in magnetic moment" - ] - }, - { - "cell_type": "code", - "execution_count": 2, - "metadata": { - "collapsed": false - }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "Change in Orbital dipole moment in amp-m2 is + 0r - 3.659e-29\n" - ] - } - ], - "source": [ - "e=1.6*10**-19 #in coul\n", - "r=5.1*10**-11 #radius of hydrogen atom in meter\n", - "m=9.1*10**-31 #mass of electron in kg\n", - "epsilon0=8.9*10**-12 #in coul2/nt-m2\n", - "B=2 #in wb/m2\n", - "delta_p=(e**2*B*r**2)/(4*m)\n", - "print(\"Change in Orbital dipole moment in amp-m2 is + 0r - %.3e\"%delta_p)" - ] - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "# Example 37.5 Precession frequency" - ] - }, - { - "cell_type": "code", - "execution_count": 3, - "metadata": { - "collapsed": false - }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "Precession frequency of phoyon in given magnetic field in cps is 21020464.18\n" - ] - } - ], - "source": [ - "import math\n", - "u=1.4*10**-26 #in amp-m2\n", - "B=0.50 #wb/m2\n", - "Lp=0.53*10**-34 #in joule-sec\n", - "fp=u*B/(2*math.pi*Lp)\n", - "print(\"Precession frequency of phoyon in given magnetic field in cps is %.2f\"%fp)" - ] - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "# Example 37.6 Magnetic field strength Magnetisation Effective magnetising current and Permeability" - ] - }, - { - "cell_type": "code", - "execution_count": 4, - "metadata": { - "collapsed": false - }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "(A) Magnetic field strength in amp/m is 2000\n", - "(B) Magnetisation is Zero when core is removed\n", - " Magnetisation when the core is replaced in amp/m 793774.72\n", - "(C) Effective magnetizing current i=i(M,0)=M*(2*math.pi*r0/N0)=M/n\n", - " Effective magnetizing current in amp is 793.77472\n", - "(D) Permeability 397.88736\n" - ] - } - ], - "source": [ - "import math\n", - "n=10*10**2 #turns/m\n", - "i=2 #in amp\n", - "B=1.0 #in wb/m\n", - "u0=4*math.pi*10**-7 #in wb/amp-m\n", - "#(A)\n", - "H=n*i\n", - "print(\"(A) Magnetic field strength in amp/m is\",H)\n", - "#(B)\n", - "M=(B-u0*H)/u0\n", - "print(\"(B) Magnetisation is Zero when core is removed\")\n", - "print(\" Magnetisation when the core is replaced in amp/m %.2f\"%M)\n", - "#(C)\n", - "print(\"(C) Effective magnetizing current i=i(M,0)=M*(2*math.pi*r0/N0)=M/n\")\n", - "i=M/n\n", - "print(\" Effective magnetizing current in amp is %.5f\"%i)\n", - "#D\n", - "Km=B/(u0*H)\n", - "print(\"(D) Permeability %.5f\"%Km)" - ] - } - ], - "metadata": { - "anaconda-cloud": {}, - "kernelspec": { - "display_name": "Python 3", - "language": "python", - "name": "python3" - }, - "language_info": { - "codemirror_mode": { - "name": "ipython", - "version": 3 - }, - "file_extension": ".py", - "mimetype": "text/x-python", - "name": "python", - "nbconvert_exporter": "python", - "pygments_lexer": "ipython3", - "version": "3.5.1" - }, - "widgets": { - "state": {}, - "version": "1.1.2" - } - }, - "nbformat": 4, - "nbformat_minor": 0 -} diff --git a/Physics-_For_Students_Of_Science_And_Engineering(Part_2)_by_D._Halliday_and_R._Resnick/Chapter38.ipynb b/Physics-_For_Students_Of_Science_And_Engineering(Part_2)_by_D._Halliday_and_R._Resnick/Chapter38.ipynb deleted file mode 100755 index 8804dca7..00000000 --- a/Physics-_For_Students_Of_Science_And_Engineering(Part_2)_by_D._Halliday_and_R._Resnick/Chapter38.ipynb +++ /dev/null @@ -1,195 +0,0 @@ -{ - "cells": [ - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "# Chapter 38 ELECTROMAGNETIC OSCILLATIONS" - ] - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "# Example 38.1 Current" - ] - }, - { - "cell_type": "code", - "execution_count": 1, - "metadata": { - "collapsed": false - }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "Max current in amps 0.5\n" - ] - } - ], - "source": [ - "import math\n", - "V_o=50 #in volts\n", - "C=1*10**-6 #in farad\n", - "L=10*10**-3\n", - "i_m=V_o*(math.sqrt(C/L))\n", - "print(\"Max current in amps \",i_m)" - ] - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "# Example 38.2 Angular frequency" - ] - }, - { - "cell_type": "code", - "execution_count": 2, - "metadata": { - "collapsed": false - }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "Angular frequency in radians/sec= 10000.0\n" - ] - } - ], - "source": [ - "import math\n", - "L=10*(10**-3) #in henry\n", - "C=(10)**-6 #in farad\n", - "w=math.sqrt(1/(L*C))\n", - "print(\"Angular frequency in radians/sec=\",w)" - ] - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "# Example 38.3 Angular frequency and time" - ] - }, - { - "cell_type": "code", - "execution_count": 3, - "metadata": { - "collapsed": false - }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "Angular frequency in radians/sec= 10000.0\n", - "Time in sec= 0.13863\n" - ] - } - ], - "source": [ - "L=10*(10**-3) #in henry\n", - "C=10**-6 #in farad\n", - "R=0.1 #in ohm\n", - "w=math.sqrt(1/(L*C))\n", - "print(\"Angular frequency in radians/sec=\",w)\n", - "t=(2*L*math.log(2))/R\n", - "print(\"Time in sec= %.5f\"%t)" - ] - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "# Example 38.5 Magnetic field" - ] - }, - { - "cell_type": "code", - "execution_count": 4, - "metadata": { - "collapsed": false - }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "Magnetic field in weber/m**2= 0.0000003\n" - ] - } - ], - "source": [ - "import math\n", - "m_0=(4*math.pi*10**-7) #in weber\n", - "e_0=(8.9*10**-12)\n", - "R=5*10**-2 #meters\n", - "dEbydT=10**12\n", - "B=(0.5*m_0*e_0*R*dEbydT)\n", - "print(\"Magnetic field in weber/m**2= %.7f\"%B)" - ] - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "# Example 38.6 Calculation of current" - ] - }, - { - "cell_type": "code", - "execution_count": 5, - "metadata": { - "collapsed": false - }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "Current in amp= 0.0699004\n" - ] - } - ], - "source": [ - "import math\n", - "m_0=(4*math.pi*10**-7) #in weber\n", - "e_0=(8.9*10**-12)\n", - "R=5*10**-2 #meters\n", - "dEbydT=10**12\n", - "i_d=(e_0*math.pi*R*R*dEbydT)\n", - "print(\"Current in amp= %.7f\"%i_d)" - ] - } - ], - "metadata": { - "anaconda-cloud": {}, - "kernelspec": { - "display_name": "Python 3", - "language": "python", - "name": "python3" - }, - "language_info": { - "codemirror_mode": { - "name": "ipython", - "version": 3 - }, - "file_extension": ".py", - "mimetype": "text/x-python", - "name": "python", - "nbconvert_exporter": "python", - "pygments_lexer": "ipython3", - "version": "3.5.1" - }, - "widgets": { - "state": {}, - "version": "1.1.2" - } - }, - "nbformat": 4, - "nbformat_minor": 0 -} diff --git a/Physics-_For_Students_Of_Science_And_Engineering(Part_2)_by_D._Halliday_and_R._Resnick/Chapter39.ipynb b/Physics-_For_Students_Of_Science_And_Engineering(Part_2)_by_D._Halliday_and_R._Resnick/Chapter39.ipynb deleted file mode 100755 index 7f0dafec..00000000 --- a/Physics-_For_Students_Of_Science_And_Engineering(Part_2)_by_D._Halliday_and_R._Resnick/Chapter39.ipynb +++ /dev/null @@ -1,73 +0,0 @@ -{ - "cells": [ - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "# Chapter 39 ELECTROMAGNETIC WAVES" - ] - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "# Example 39.6 Magnitude of electric and magnetic field" - ] - }, - { - "cell_type": "code", - "execution_count": 5, - "metadata": { - "collapsed": false - }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "The value of E in volts/meter= 244.94897\n", - "B in weber/meter^2= 0.00000082\n" - ] - } - ], - "source": [ - "import math\n", - "r=1 #in m\n", - "p=10**3 \n", - "m=4*math.pi*10**-7 #weber/amp-m\n", - "c=3*10**8 #speed of light\n", - "x=2*math.pi\n", - "E_m=(1/r)*(math.sqrt((p*m*c)/x))\n", - "print(\"The value of E in volts/meter= %.5f\"%E_m)\n", - "B=E_m/c\n", - "print(\"B in weber/meter^2= %.8f\"%B)" - ] - } - ], - "metadata": { - "anaconda-cloud": {}, - "kernelspec": { - "display_name": "Python 3", - "language": "python", - "name": "python3" - }, - "language_info": { - "codemirror_mode": { - "name": "ipython", - "version": 3 - }, - "file_extension": ".py", - "mimetype": "text/x-python", - "name": "python", - "nbconvert_exporter": "python", - "pygments_lexer": "ipython3", - "version": "3.5.1" - }, - "widgets": { - "state": {}, - "version": "1.1.2" - } - }, - "nbformat": 4, - "nbformat_minor": 0 -} diff --git a/Physics-_For_Students_Of_Science_And_Engineering(Part_2)_by_D._Halliday_and_R._Resnick/Chapter40.ipynb b/Physics-_For_Students_Of_Science_And_Engineering(Part_2)_by_D._Halliday_and_R._Resnick/Chapter40.ipynb deleted file mode 100755 index 98931fb3..00000000 --- a/Physics-_For_Students_Of_Science_And_Engineering(Part_2)_by_D._Halliday_and_R._Resnick/Chapter40.ipynb +++ /dev/null @@ -1,166 +0,0 @@ -{ - "cells": [ - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "# Chapter 40 NATURE AND PROPOGATION OF LIGHT" - ] - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "# Example 40.1 Force and energy reflected" - ] - }, - { - "cell_type": "code", - "execution_count": 1, - "metadata": { - "collapsed": false - }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "(A) Energy reflected from mirror in joule= 36000.0\n", - "Momentum after 1 hr illumination in kg-m/sec= 0.00024\n", - "(B) Force in newton= 6.667e-08\n" - ] - } - ], - "source": [ - "u=(10)*(1.0)*3600 #in Joules\n", - "c=3*10**8 #in m/sec\n", - "t=3600 #in sec\n", - "print(\"(A) Energy reflected from mirror in joule=\",u)\n", - "p=(2*u)/c\n", - "print(\"Momentum after 1 hr illumination in kg-m/sec= %.5f\"%p)\n", - "f=p/t\n", - "print(\"(B) Force in newton= %.3e\"%f)" - ] - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "# Example 40.2 Angular speed" - ] - }, - { - "cell_type": "code", - "execution_count": 2, - "metadata": { - "collapsed": false - }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "Angular speed in rev/sec= 12.07030\n" - ] - } - ], - "source": [ - "theta=1/1440\n", - "c=3*10**8 #in m/sec\n", - "l=8630 #in m\n", - "w=(c*theta)/(2*l)\n", - "print(\"Angular speed in rev/sec= %.5f\"%w)" - ] - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "# Example 40.3 Calculation of c" - ] - }, - { - "cell_type": "code", - "execution_count": 3, - "metadata": { - "collapsed": false - }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "Lambda_g in cm= 3.9\n", - "Value of c in m/sec= 2.992e+10\n" - ] - } - ], - "source": [ - "l=15.6 #in cm\n", - "n=8\n", - "lambda_g=(2*l)/n\n", - "print(\"Lambda_g in cm=\",lambda_g)\n", - "lamda=3.15 #in cm\n", - "f=9.5*10**9 #cycles/sec\n", - "c=lamda*f\n", - "print(\"Value of c in m/sec= %.3e\"%c)" - ] - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "# Example 40.4 Percentage error" - ] - }, - { - "cell_type": "code", - "execution_count": 4, - "metadata": { - "collapsed": false - }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "Speed of light in miles/hour= 50000\n" - ] - } - ], - "source": [ - "v_1=25000 #miles/hr\n", - "u=25000 #miles/hr\n", - "c=6.7*10**8 #miles/hr\n", - "x=1+((v_1*u)/(c)**2)\n", - "v=(v_1+u)/x\n", - "print(\"Speed of light in miles/hour= %.0f\"%v)" - ] - } - ], - "metadata": { - "kernelspec": { - "display_name": "Python 3", - "language": "python", - "name": "python3" - }, - "language_info": { - "codemirror_mode": { - "name": "ipython", - "version": 3 - }, - "file_extension": ".py", - "mimetype": "text/x-python", - "name": "python", - "nbconvert_exporter": "python", - "pygments_lexer": "ipython3", - "version": "3.5.1" - }, - "widgets": { - "state": {}, - "version": "1.1.2" - } - }, - "nbformat": 4, - "nbformat_minor": 0 -} diff --git a/Physics-_For_Students_Of_Science_And_Engineering(Part_2)_by_D._Halliday_and_R._Resnick/Chapter41.ipynb b/Physics-_For_Students_Of_Science_And_Engineering(Part_2)_by_D._Halliday_and_R._Resnick/Chapter41.ipynb deleted file mode 100755 index 3ee8111a..00000000 --- a/Physics-_For_Students_Of_Science_And_Engineering(Part_2)_by_D._Halliday_and_R._Resnick/Chapter41.ipynb +++ /dev/null @@ -1,139 +0,0 @@ -{ - "cells": [ - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "# Chapter 41 REFLECTION AND REFRACTION OF PLANE WAVES AND PLANE SURFACES" - ] - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "# Example 41.1 Angle between two refracted beams" - ] - }, - { - "cell_type": "code", - "execution_count": 2, - "metadata": { - "collapsed": false - }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "For 4000 A beam, theta_2 in degree= 19.88234\n", - "For 5000 A beam, theta_2 in degree= 19.99290\n" - ] - } - ], - "source": [ - "import math\n", - "theta_1=30\n", - "n_qa=1.4702\n", - "theta2=math.degrees(math.asin(math.sin(theta_1*math.pi/180)/n_qa))\n", - "print(\"For 4000 A beam, theta_2 in degree= %.5f\"%theta2)\n", - "\n", - "theta_1=30\n", - "n_qa=1.4624\n", - "theta2=math.degrees(math.asin(math.sin(theta_1*math.pi/180)/n_qa))\n", - "print(\"For 5000 A beam, theta_2 in degree= %.5f\"%theta2)" - ] - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "# Example 41.4 Index of glass" - ] - }, - { - "cell_type": "code", - "execution_count": 3, - "metadata": { - "collapsed": false - }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "Index reflection= 1.41421\n" - ] - } - ], - "source": [ - "import math\n", - "n=1/math.sin(45*math.pi/180)\n", - "print(\"Index reflection= %.5f\"%n)" - ] - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "# Exa 41.5 Calculation of Angle" - ] - }, - { - "cell_type": "code", - "execution_count": 4, - "metadata": { - "collapsed": false - }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "Angle theta_c in degree= 62.45732\n", - "Actual angle of indices = 45 is less than theta_ c, so there is no internal angle reflection\n", - "Angle of refraction:\n", - "Theta_2 in degree= 52.89097\n" - ] - } - ], - "source": [ - "import math\n", - "n2=1.33\n", - "n1=1.50\n", - "theta_c=math.degrees(math.asin(n2/n1))\n", - "print(\"Angle theta_c in degree= %.5f\"%theta_c)\n", - "print(\"Actual angle of indices = 45 is less than theta_ c, so there is no internal angle reflection\")\n", - "print(\"Angle of refraction:\")\n", - "x=n1/n2\n", - "theta_2=(math.asin(x*math.sin(45*math.pi/180))*180/math.pi)\n", - "print(\"Theta_2 in degree= %.5f\"%theta_2)" - ] - } - ], - "metadata": { - "anaconda-cloud": {}, - "kernelspec": { - "display_name": "Python 3", - "language": "python", - "name": "python3" - }, - "language_info": { - "codemirror_mode": { - "name": "ipython", - "version": 3 - }, - "file_extension": ".py", - "mimetype": "text/x-python", - "name": "python", - "nbconvert_exporter": "python", - "pygments_lexer": "ipython3", - "version": "3.5.1" - }, - "widgets": { - "state": {}, - "version": "1.1.2" - } - }, - "nbformat": 4, - "nbformat_minor": 0 -} diff --git a/Physics-_For_Students_Of_Science_And_Engineering(Part_2)_by_D._Halliday_and_R._Resnick/Chapter42.ipynb b/Physics-_For_Students_Of_Science_And_Engineering(Part_2)_by_D._Halliday_and_R._Resnick/Chapter42.ipynb deleted file mode 100755 index 44b1556c..00000000 --- a/Physics-_For_Students_Of_Science_And_Engineering(Part_2)_by_D._Halliday_and_R._Resnick/Chapter42.ipynb +++ /dev/null @@ -1,183 +0,0 @@ -{ - "cells": [ - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "# Chapter 42 REFLECTION AND REFRACTION SPHERICAL WAVES AND SPHERICAL SURFACES" - ] - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "# Example 42.4 Location of image" - ] - }, - { - "cell_type": "code", - "execution_count": 1, - "metadata": { - "collapsed": false - }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "x=n2/i\n", - "x= 0.05\n", - "The value of i in cm= 40.0\n" - ] - } - ], - "source": [ - "from __future__ import division\n", - "n1=1\n", - "n2=2\n", - "o=20 #in cm\n", - "r=10 #in cm\n", - "print(\"x=n2/i\")\n", - "x=((n2-n1)/r)-(n1/o)\n", - "print(\"x=\",x)\n", - "i=n2/x\n", - "print(\"The value of i in cm=\",i)" - ] - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "# Example 42.5 Location of image" - ] - }, - { - "cell_type": "code", - "execution_count": 2, - "metadata": { - "collapsed": false - }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "x=n2/i\n", - "The value of i in cm= -0.03333\n", - "The value of i in cm= -30\n" - ] - } - ], - "source": [ - "from __future__ import division\n", - "n1=2\n", - "n2=1\n", - "o=15 #in cm\n", - "r=-10 #in cm\n", - "print(\"x=n2/i\")\n", - "x=((n2-n1)/r)-(n1/o)\n", - "print(\"The value of i in cm= %.5f\"%x)\n", - "i=n2/x\n", - "print(\"The value of i in cm= %d\"%i)" - ] - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "# Example 42.7 Location of image" - ] - }, - { - "cell_type": "code", - "execution_count": 3, - "metadata": { - "collapsed": false - }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "x=1/f in cm= 0.0325\n", - "f=1/x\n", - "f in cm= 30.76923\n" - ] - } - ], - "source": [ - "n=1.65\n", - "r_1=40 #in cm\n", - "r_2=-40 #in cm\n", - "x=(n-1)*((1/r_1)-(1/r_2))\n", - "print(\"x=1/f in cm= %.4f\"%x)\n", - "print(\"f=1/x\")\n", - "f=1/x\n", - "print(\"f in cm= %.5f\"%f)" - ] - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "# Example 42.8 Location of image" - ] - }, - { - "cell_type": "code", - "execution_count": 4, - "metadata": { - "collapsed": false - }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "x=1/i in cm= -0.06944\n", - "i in cm= -14.4\n", - "Lateral magnification =\n", - "m= 1.6\n" - ] - } - ], - "source": [ - "from __future__ import division\n", - "o=9 #in cm\n", - "f=24 #in cm\n", - "x=(1/f)-(1/o)\n", - "print(\"x=1/i in cm= %.5f\"%x)\n", - "i=1/x\n", - "print(\"i in cm= %.1f\"%i)\n", - "print(\"Lateral magnification =\")\n", - "m=-(i/o)\n", - "print('m= %.1f'%m)" - ] - } - ], - "metadata": { - "kernelspec": { - "display_name": "Python 3", - "language": "python", - "name": "python3" - }, - "language_info": { - "codemirror_mode": { - "name": "ipython", - "version": 3 - }, - "file_extension": ".py", - "mimetype": "text/x-python", - "name": "python", - "nbconvert_exporter": "python", - "pygments_lexer": "ipython3", - "version": "3.5.1" - }, - "widgets": { - "state": {}, - "version": "1.1.2" - } - }, - "nbformat": 4, - "nbformat_minor": 0 -} diff --git a/Physics-_For_Students_Of_Science_And_Engineering(Part_2)_by_D._Halliday_and_R._Resnick/Chapter43.ipynb b/Physics-_For_Students_Of_Science_And_Engineering(Part_2)_by_D._Halliday_and_R._Resnick/Chapter43.ipynb deleted file mode 100755 index 215e62df..00000000 --- a/Physics-_For_Students_Of_Science_And_Engineering(Part_2)_by_D._Halliday_and_R._Resnick/Chapter43.ipynb +++ /dev/null @@ -1,177 +0,0 @@ -{ - "cells": [ - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "# Chapter 43 INTERFERENCE" - ] - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "# Example 43.1 Angular position of first minimum" - ] - }, - { - "cell_type": "code", - "execution_count": 1, - "metadata": { - "collapsed": false - }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "Sin theta = 0.00273\n", - "Angle in degree= 0.15642\n" - ] - } - ], - "source": [ - "import math\n", - "m=1\n", - "lamda=546*10**-9\n", - "d=0.10*10**-3 #in m\n", - "sin_theta=((m-0.5)*lamda)/(d)\n", - "print(\"Sin theta = %.5f\"%sin_theta)\n", - "theta=math.degrees(math.asin(sin_theta))\n", - "print(\"Angle in degree= %.5f\"%theta)" - ] - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "# Example 43.2 Linear distance" - ] - }, - { - "cell_type": "code", - "execution_count": 2, - "metadata": { - "collapsed": false - }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "Linear distance in meter= 0.00109\n" - ] - } - ], - "source": [ - "delta=546*10**-9 #in meter\n", - "D=20*10**-2 #in meter\n", - "d=0.10*10**-3 #in meter\n", - "delta_y=(delta*D)/d\n", - "print(\"Linear distance in meter= %.5f\"%delta_y)" - ] - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "# Example 43.4 Refraction" - ] - }, - { - "cell_type": "code", - "execution_count": 3, - "metadata": { - "collapsed": false - }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "When m= 1\n", - "Lambda_max= 5674.666666666667\n", - "Lambda_min= 8500.0\n", - "When m= 2\n", - "Lambda_max= 3404.8\n", - "Lambda_min= 4250.0\n" - ] - } - ], - "source": [ - "d=3200 #in A\n", - "n=1.33\n", - "for m in range(1,3):\n", - " lambda_max=(2*d*n)/(m+0.5)\n", - " lambda_min=(8500/m)\n", - " print(\"When m=\",m)\n", - " print(\"Lambda_max=\",lambda_max)\n", - " print(\"Lambda_min=\",lambda_min)\n" - ] - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "# Example 43.5 Refraction" - ] - }, - { - "cell_type": "code", - "execution_count": 4, - "metadata": { - "collapsed": false - }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "When m= 0\n", - "d in A=905.797\n", - "When m= 1\n", - "d in A=2717.391\n", - "When m= 2\n", - "d in A=4528.986\n", - "When m= 3\n", - "d in A=6340.580\n" - ] - } - ], - "source": [ - "lamda=5000 #in A\n", - "n=1.38\n", - "for m in range(0,4):\n", - " print(\"When m=\",m)\n", - " d=((m+0.5)*lamda)/(2*n)\n", - " print(\"d in A=%.3f\"%d)" - ] - } - ], - "metadata": { - "anaconda-cloud": {}, - "kernelspec": { - "display_name": "Python 3", - "language": "python", - "name": "python3" - }, - "language_info": { - "codemirror_mode": { - "name": "ipython", - "version": 3 - }, - "file_extension": ".py", - "mimetype": "text/x-python", - "name": "python", - "nbconvert_exporter": "python", - "pygments_lexer": "ipython3", - "version": "3.5.1" - }, - "widgets": { - "state": {}, - "version": "1.1.2" - } - }, - "nbformat": 4, - "nbformat_minor": 0 -} diff --git a/Physics-_For_Students_Of_Science_And_Engineering(Part_2)_by_D._Halliday_and_R._Resnick/Chapter44.ipynb b/Physics-_For_Students_Of_Science_And_Engineering(Part_2)_by_D._Halliday_and_R._Resnick/Chapter44.ipynb deleted file mode 100755 index 22044c55..00000000 --- a/Physics-_For_Students_Of_Science_And_Engineering(Part_2)_by_D._Halliday_and_R._Resnick/Chapter44.ipynb +++ /dev/null @@ -1,157 +0,0 @@ -{ - "cells": [ - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "# Chapter 44 DIFFRACTION" - ] - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "# Example 44.1 Calculation of wavelength" - ] - }, - { - "cell_type": "code", - "execution_count": 1, - "metadata": { - "collapsed": false - }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "a in A=13000\n" - ] - } - ], - "source": [ - "import math\n", - "m=1\n", - "lamda=6500 #in A\n", - "a=(m*lamda)/math.sin(30*math.pi/180)\n", - "print(\"a in A=%d\"%a)" - ] - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "# Example 44.2 Calculation of wavelength" - ] - }, - { - "cell_type": "code", - "execution_count": 2, - "metadata": { - "collapsed": false - }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "Wavelength in A = 4333.333\n" - ] - } - ], - "source": [ - "lamda=6500\n", - "lambda_1=lamda/1.5\n", - "print(\"Wavelength in A = %.3f\"%lambda_1)" - ] - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "# Example 44.5 Current" - ] - }, - { - "cell_type": "code", - "execution_count": 3, - "metadata": { - "collapsed": false - }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "Current in amp= 0.06990\n" - ] - } - ], - "source": [ - "import math\n", - "m_0=(4*math.pi*10**-7) #in weber\n", - "e_0=(8.9*10**-12)\n", - "R=5*10**-2 #meters\n", - "byd=10**12\n", - "i_d=(e_0*math.pi*R*R*byd)\n", - "print(\"Current in amp= %.5f\"%i_d)" - ] - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "# Example 44.7 Delta Y" - ] - }, - { - "cell_type": "code", - "execution_count": 4, - "metadata": { - "collapsed": false - }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "(A) D in m= 0.00240\n" - ] - } - ], - "source": [ - "lamda=480*10**-9 #in m\n", - "d=0.10*10**-3 #in m\n", - "D=50*10**-2 #in m\n", - "a=0.02*10**-3\n", - "delta_y=(lamda*D)/d\n", - "print(\"(A) D in m= %.5f\"%delta_y)" - ] - } - ], - "metadata": { - "kernelspec": { - "display_name": "Python 3", - "language": "python", - "name": "python3" - }, - "language_info": { - "codemirror_mode": { - "name": "ipython", - "version": 3 - }, - "file_extension": ".py", - "mimetype": "text/x-python", - "name": "python", - "nbconvert_exporter": "python", - "pygments_lexer": "ipython3", - "version": "3.5.1" - }, - "widgets": { - "state": {}, - "version": "1.1.2" - } - }, - "nbformat": 4, - "nbformat_minor": 0 -} diff --git a/Physics-_For_Students_Of_Science_And_Engineering(Part_2)_by_D._Halliday_and_R._Resnick/Chapter45.ipynb b/Physics-_For_Students_Of_Science_And_Engineering(Part_2)_by_D._Halliday_and_R._Resnick/Chapter45.ipynb deleted file mode 100755 index 78856956..00000000 --- a/Physics-_For_Students_Of_Science_And_Engineering(Part_2)_by_D._Halliday_and_R._Resnick/Chapter45.ipynb +++ /dev/null @@ -1,227 +0,0 @@ -{ - "cells": [ - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "# Chapter 45 GRATING AND SPECTRA" - ] - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "# Example 45.1 Calculation of angle" - ] - }, - { - "cell_type": "code", - "execution_count": 1, - "metadata": { - "collapsed": false - }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "The first order diffraction pattern in degree= 7.249\n" - ] - } - ], - "source": [ - "from __future__ import division\n", - "import math\n", - "m=1\n", - "lamda=4000 #in A\n", - "d=31700 #in A\n", - "theta=math.degrees(math.asin((m*lamda)/d))\n", - "print(\"The first order diffraction pattern in degree= %.3f\"%theta)" - ] - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "# Example 45.2 Calculation of angle theta" - ] - }, - { - "cell_type": "code", - "execution_count": 2, - "metadata": { - "collapsed": false - }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "(A) The first order diffraction pattern in degree= 13.408\n", - "(B) Angle of seperation in degree= 0.0002388\n" - ] - } - ], - "source": [ - "from __future__ import division\n", - "import math\n", - "m=1\n", - "lamda=5890 #in A\n", - "d=25400 #in A\n", - "theta=math.degrees(math.asin((m*lamda)/d))\n", - "print(\"(A) The first order diffraction pattern in degree= %.3f\"%theta)\n", - "del_lambda=5.9 #in A\n", - "delta_theta=(m*(del_lambda))/(d*(math.cos(theta*math.pi/180)))\n", - "print(\"(B) Angle of seperation in degree= %.7f\"%delta_theta)" - ] - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "# Example 45.3 Calculation of Sodium Doublet" - ] - }, - { - "cell_type": "code", - "execution_count": 3, - "metadata": { - "collapsed": false - }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "Resolving power= 998.305\n", - "Number of rulings needed is= 332.768\n" - ] - } - ], - "source": [ - "lamda=5890 #A\n", - "lamda_1=5895.9 #A\n", - "m=3\n", - "delta_lambda=(lamda_1-lamda) #in A\n", - "R=lamda/(delta_lambda)\n", - "print(\"Resolving power= %.3f\"%R)\n", - "N=(R/m)\n", - "print(\"Number of rulings needed is= %.3f\"%N)" - ] - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "# Example 45.4 Calculation of Dispersion" - ] - }, - { - "cell_type": "code", - "execution_count": 4, - "metadata": { - "collapsed": false - }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "The first order diffraction pattern in degree= 31.11244\n", - "(A) The dispersion in radian/A= 0.0001105\n", - "(B) Wave length difference in A= 0.13650\n" - ] - } - ], - "source": [ - "import math\n", - "m=3\n", - "m1=5\n", - "lamda=5460 #in A\n", - "d=31700 #in A\n", - "theta=math.degrees(math.asin((m*lamda)/d))\n", - "print(\"The first order diffraction pattern in degree= %.5f\"%theta)\n", - "D=m/(d*math.cos(theta*math.pi/180))\n", - "print(\"(A) The dispersion in radian/A= %.7f\"%D)\n", - "N=8000\n", - "lamda=5460\n", - "R=N*m1\n", - "delta_lambda=lamda/R\n", - "print(\"(B) Wave length difference in A= %.5f\"%delta_lambda)" - ] - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "# Example 45.5 Calculation of Angles" - ] - }, - { - "cell_type": "code", - "execution_count": 5, - "metadata": { - "collapsed": false - }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "Interplanar spacing d in A= 2.51781\n", - "Diffracted beam occurs when m=1,m=2 and m=3\n", - "When m1=1, Theta in degree= 12.61763\n", - "When m1=2, Theta in degree= 25.90544\n", - "When m1=3, Theta in degree= 40.94473\n" - ] - } - ], - "source": [ - "import math\n", - "a_o=5.63 #A\n", - "d=a_o/math.sqrt(5)\n", - "lamda=1.10 #in A\n", - "print(\"Interplanar spacing d in A= %.5f\"%d)\n", - "print(\"Diffracted beam occurs when m=1,m=2 and m=3\")\n", - "m1=1\n", - "x=(m1*lamda)/(2*d)\n", - "theta_1=math.degrees(math.asin(x))\n", - "print(\"When m1=1, Theta in degree= %.5f\"%theta_1)\n", - "m2=2\n", - "x=(m2*lamda)/(2*d)\n", - "theta_2=math.degrees(math.asin(x))\n", - "print('When m1=2, Theta in degree= %.5f'%theta_2)\n", - "m3=3\n", - "x=(m3*lamda)/(2*d)\n", - "theta_3=math.degrees(math.asin(x))\n", - "print('When m1=3, Theta in degree= %.5f'%theta_3)" - ] - } - ], - "metadata": { - "anaconda-cloud": {}, - "kernelspec": { - "display_name": "Python 3", - "language": "python", - "name": "python3" - }, - "language_info": { - "codemirror_mode": { - "name": "ipython", - "version": 3 - }, - "file_extension": ".py", - "mimetype": "text/x-python", - "name": "python", - "nbconvert_exporter": "python", - "pygments_lexer": "ipython3", - "version": "3.5.1" - }, - "widgets": { - "state": {}, - "version": "1.1.2" - } - }, - "nbformat": 4, - "nbformat_minor": 0 -} diff --git a/Physics-_For_Students_Of_Science_And_Engineering(Part_2)_by_D._Halliday_and_R._Resnick/Chapter46.ipynb b/Physics-_For_Students_Of_Science_And_Engineering(Part_2)_by_D._Halliday_and_R._Resnick/Chapter46.ipynb deleted file mode 100755 index 2071ec54..00000000 --- a/Physics-_For_Students_Of_Science_And_Engineering(Part_2)_by_D._Halliday_and_R._Resnick/Chapter46.ipynb +++ /dev/null @@ -1,130 +0,0 @@ -{ - "cells": [ - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "# Chapter 46 POLARIZATION" - ] - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "# Example 46.1 Calculation of theta" - ] - }, - { - "cell_type": "code", - "execution_count": 1, - "metadata": { - "collapsed": false - }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "Polarization angle theta= 135.0\n" - ] - } - ], - "source": [ - "import math\n", - "theta=math.degrees(math.acos(1/math.sqrt(2)))\n", - "theta=180-theta\n", - "print(\"Polarization angle theta=\",theta)" - ] - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "# Example 46.2 Angle of refraction" - ] - }, - { - "cell_type": "code", - "execution_count": 2, - "metadata": { - "collapsed": false - }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "Theta_p in degrees=56.30993\n", - "Angle of refraction fron Snells law in degrees=33.69007\n" - ] - } - ], - "source": [ - "import math\n", - "theta_p= math.degrees(math.atan(1.5))\n", - "print(\"Theta_p in degrees=%.5f\"%theta_p)\n", - "sin_theta_r= (math.sin(theta_p*math.pi/180))/1.5\n", - "theta_r=math.degrees(math.asin(sin_theta_r))\n", - "print(\"Angle of refraction fron Snells law in degrees=%.5f\"%theta_r)" - ] - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "# Example 46.3 Thickness of slab" - ] - }, - { - "cell_type": "code", - "execution_count": 3, - "metadata": { - "collapsed": false - }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "The Value of x in m= 163611.111111113\n" - ] - } - ], - "source": [ - "lamda=5890 #A\n", - "n_e=1.553\n", - "n_o=1.544\n", - "s=(n_e)-(n_o)\n", - "x=(lamda)/(4*s)\n", - "\n", - "print(\"The Value of x in m=\",x)\n", - "#The answer provided in the textbook is wrong" - ] - } - ], - "metadata": { - "kernelspec": { - "display_name": "Python 3", - "language": "python", - "name": "python3" - }, - "language_info": { - "codemirror_mode": { - "name": "ipython", - "version": 3 - }, - "file_extension": ".py", - "mimetype": "text/x-python", - "name": "python", - "nbconvert_exporter": "python", - "pygments_lexer": "ipython3", - "version": "3.5.1" - }, - "widgets": { - "state": {}, - "version": "1.1.2" - } - }, - "nbformat": 4, - "nbformat_minor": 0 -} diff --git a/Physics-_For_Students_Of_Science_And_Engineering(Part_2)_by_D._Halliday_and_R._Resnick/Chapter47.ipynb b/Physics-_For_Students_Of_Science_And_Engineering(Part_2)_by_D._Halliday_and_R._Resnick/Chapter47.ipynb deleted file mode 100755 index f35669ae..00000000 --- a/Physics-_For_Students_Of_Science_And_Engineering(Part_2)_by_D._Halliday_and_R._Resnick/Chapter47.ipynb +++ /dev/null @@ -1,157 +0,0 @@ -{ - "cells": [ - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "# Chapter 47 LIGHT AND QUANTUM PHYSICS" - ] - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "# Example 47.1 Velocity" - ] - }, - { - "cell_type": "code", - "execution_count": 1, - "metadata": { - "collapsed": false - }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "Velocity in cycles/s 0.71176\n" - ] - } - ], - "source": [ - "import math\n", - "k=20 #in nt/m\n", - "m=1 #in kg\n", - "\n", - "v=(math.sqrt((k)/(m)))*(1/(2*math.pi))\n", - "print(\"Velocity in cycles/s %.5f\"%v)" - ] - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "# Example 47.2 Time calculation" - ] - }, - { - "cell_type": "code", - "execution_count": 2, - "metadata": { - "collapsed": false - }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "Power in j-sec 1.000000e-23\n", - "('Time reqired in sec =', 80000.0)\n", - "Time required in hour 22.22224\n" - ] - } - ], - "source": [ - "P=(10**(-3))*(3*10**(-18))/(300)\n", - "print(\"Power in j-sec %e\"%P)\n", - "s=1.6*(10**(-19))\n", - "t=(5*s)/P\n", - "print(\"Time reqired in sec =\",t)\n", - "one_sec=0.000277778 #hr\n", - "in_hour=one_sec*t\n", - "print(\"Time required in hour %.5f\"%in_hour)" - ] - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "# Example 47.3 Work function for sodium" - ] - }, - { - "cell_type": "code", - "execution_count": 3, - "metadata": { - "collapsed": false - }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "Energy in joule= 2.911e-19\n" - ] - } - ], - "source": [ - "h=6.63*10**(-34) #in joule/sec\n", - "v=4.39*10**(14) #cycles/sec\n", - "E_o=h*(v)\n", - "print(\"Energy in joule= %.3e\"%E_o)" - ] - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "# Example 47.4 Kinetic energy to be imparten on recoiling electron" - ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": { - "collapsed": true - }, - "outputs": [], - "source": [ - "h=(6.63)*10**-34\n", - "m=9.11*10**-31\n", - "c=3*10**8\n", - "delta_h=(h/(m*c))*(1-math.cos(90))\n", - "print(\"(A) Compton shift in meter %.3e\",delta_h)\n", - "delta=1*10**-10\n", - "k=(h*c*delta_h)/(delta*(delta+delta_h))\n", - "print(\"(B) Kinetic energy in joules\",k)" - ] - } - ], - "metadata": { - "anaconda-cloud": {}, - "kernelspec": { - "display_name": "Python 3", - "language": "python", - "name": "python3" - }, - "language_info": { - "codemirror_mode": { - "name": "ipython", - "version": 3 - }, - "file_extension": ".py", - "mimetype": "text/x-python", - "name": "python", - "nbconvert_exporter": "python", - "pygments_lexer": "ipython3", - "version": "3.5.1" - }, - "widgets": { - "state": {}, - "version": "1.1.2" - } - }, - "nbformat": 4, - "nbformat_minor": 0 -} diff --git a/Physics-_For_Students_Of_Science_And_Engineering(Part_2)_by_D._Halliday_and_R._Resnick/Chapter48.ipynb b/Physics-_For_Students_Of_Science_And_Engineering(Part_2)_by_D._Halliday_and_R._Resnick/Chapter48.ipynb deleted file mode 100755 index c5e90763..00000000 --- a/Physics-_For_Students_Of_Science_And_Engineering(Part_2)_by_D._Halliday_and_R._Resnick/Chapter48.ipynb +++ /dev/null @@ -1,205 +0,0 @@ -{ - "cells": [ - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "# Chapter 48 WAVES AND PROPOGATION" - ] - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "# Example 48.1 Velocity and Wavelength of particle" - ] - }, - { - "cell_type": "code", - "execution_count": 1, - "metadata": { - "collapsed": false - }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "Velocity in m/s 5929994.5\n", - "Wavelength in A 1.222\n" - ] - } - ], - "source": [ - "import math\n", - "k=100*(1.6*(10**-19))\n", - "m=9.1*(10**-31)\n", - "\n", - "v=math.sqrt(((2*k)/(m)))\n", - "print(\"Velocity in m/s %.1f\"%v)\n", - "h=6.6*(10**-34)\n", - "p=5.4*(10**-34)\n", - "lamda=h/p\n", - "print(\"Wavelength in A %.3f\"%lamda)" - ] - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "# Example 48.2 Quantized energy" - ] - }, - { - "cell_type": "code", - "execution_count": 2, - "metadata": { - "collapsed": false - }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "Energy in Joule= 5.984e-20\n" - ] - } - ], - "source": [ - "n=1\n", - "h=(6.6)*10**-34 #j/sec\n", - "m=9.1*(10**-31) #in kg\n", - "l=1*(10**-9) #in m\n", - "E=(n**2)*((h**2)/(8*m*(l**2)))\n", - "print(\"Energy in Joule= %.3e\"%E)" - ] - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "# Example 48.3 Quantum number" - ] - }, - { - "cell_type": "code", - "execution_count": 3, - "metadata": { - "collapsed": false - }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "Energy in joule= 5.000e-22\n", - "Quantum number= 3.030e+14\n" - ] - } - ], - "source": [ - "m=10**-9 #in kg\n", - "v=10**-6 #in m/s\n", - "l=10**-4 #in m\n", - "h=(6.6)*(10**-34) #j/s\n", - "E=(0.5)*m*(v**2)\n", - "print(\"Energy in joule= %.3e\"%E)\n", - "n=(l/h)*(math.sqrt(8*m*E))\n", - "print(\"Quantum number= %.3e\"%n)" - ] - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "# Example 48.5 Position of electron" - ] - }, - { - "cell_type": "code", - "execution_count": 4, - "metadata": { - "collapsed": false - }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "The electrom momentum in kg-m/s= 2.730e-28\n", - "Delta_p in kg-m/s= 2.730e-32\n", - "Minimum uncertainaity in m= 0.02418\n" - ] - } - ], - "source": [ - "m=9.1*(10**-31) #in kg\n", - "v=300 #in m/s\n", - "h=6.6*(10**-34) #in j-s\n", - "p=m*v\n", - "print(\"The electrom momentum in kg-m/s= %.3e\"%p)\n", - "delta_p=(0.0001)*p\n", - "print(\"Delta_p in kg-m/s= %.3e\"%delta_p)\n", - "delta_x=(h/delta_p)\n", - "print(\"Minimum uncertainaity in m= %.5f\"%delta_x)" - ] - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "# Example 48.6 Position of electron" - ] - }, - { - "cell_type": "code", - "execution_count": 5, - "metadata": { - "collapsed": false - }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "Momentum in kg-m/s= 15.0\n", - "Delta_x in meter= 4.400e-35\n" - ] - } - ], - "source": [ - "m=0.05 #in kg\n", - "v=300 #m/s\n", - "delta_p=m*v\n", - "print(\"Momentum in kg-m/s=\",delta_p)\n", - "delta_x=(6.6*10**-34)/delta_p\n", - "print(\"Delta_x in meter= %.3e\"%delta_x)" - ] - } - ], - "metadata": { - "kernelspec": { - "display_name": "Python 3", - "language": "python", - "name": "python3" - }, - "language_info": { - "codemirror_mode": { - "name": "ipython", - "version": 3 - }, - "file_extension": ".py", - "mimetype": "text/x-python", - "name": "python", - "nbconvert_exporter": "python", - "pygments_lexer": "ipython3", - "version": "3.5.1" - }, - "widgets": { - "state": {}, - "version": "1.1.2" - } - }, - "nbformat": 4, - "nbformat_minor": 0 -} diff --git a/Physics-_For_Students_Of_Science_And_Engineering(Part_2)_by_D._Halliday_and_R._Resnick/screenshots/Chapter_37.png b/Physics-_For_Students_Of_Science_And_Engineering(Part_2)_by_D._Halliday_and_R._Resnick/screenshots/Chapter_37.png deleted file mode 100755 index 727bff87..00000000 Binary files a/Physics-_For_Students_Of_Science_And_Engineering(Part_2)_by_D._Halliday_and_R._Resnick/screenshots/Chapter_37.png and /dev/null differ diff --git a/Physics-_For_Students_Of_Science_And_Engineering(Part_2)_by_D._Halliday_and_R._Resnick/screenshots/Chapter_38.png b/Physics-_For_Students_Of_Science_And_Engineering(Part_2)_by_D._Halliday_and_R._Resnick/screenshots/Chapter_38.png deleted file mode 100755 index 1ae30dfa..00000000 Binary files a/Physics-_For_Students_Of_Science_And_Engineering(Part_2)_by_D._Halliday_and_R._Resnick/screenshots/Chapter_38.png and /dev/null differ diff --git a/Physics-_For_Students_Of_Science_And_Engineering(Part_2)_by_D._Halliday_and_R._Resnick/screenshots/Chapter_39.png b/Physics-_For_Students_Of_Science_And_Engineering(Part_2)_by_D._Halliday_and_R._Resnick/screenshots/Chapter_39.png deleted file mode 100755 index e972670a..00000000 Binary files a/Physics-_For_Students_Of_Science_And_Engineering(Part_2)_by_D._Halliday_and_R._Resnick/screenshots/Chapter_39.png and /dev/null differ diff --git a/Physics_For_Students_Of_Science_And_Engineering_Part_2_by_D_Halliday_and_R_Resnick/Chapter26.ipynb b/Physics_For_Students_Of_Science_And_Engineering_Part_2_by_D_Halliday_and_R_Resnick/Chapter26.ipynb new file mode 100755 index 00000000..3dcd2a65 --- /dev/null +++ b/Physics_For_Students_Of_Science_And_Engineering_Part_2_by_D_Halliday_and_R_Resnick/Chapter26.ipynb @@ -0,0 +1,230 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Chapter 26:CHARGE AND MATTER" + ] + }, + { + "cell_type": "markdown", + "metadata": { + "collapsed": true + }, + "source": [ + "# Example 26.1 Magnitude of total charges in a copper penny" + ] + }, + { + "cell_type": "code", + "execution_count": 5, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + " Magnitude of the charges in coulombs is 133687.50000000003\n" + ] + } + ], + "source": [ + "#Example 1.1\n", + "\n", + "m =3.1 #mass of copper penny in grams\n", + "e =4.6*10** -18 #charge in coulombs\n", + "N0 =6*10**23 #avogadro’s number atoms / mole\n", + "M =64 #molecular weight of copper in gm/ mole\n", + "\n", + "#Calculation\n", + "N =( N0 * m ) / M #No. of copper atoms in penny\n", + "q = N * e # magnitude of the charges in coulombs\n", + "print (\" Magnitude of the charges in coulomb is \",q )" + ] + }, + { + "cell_type": "markdown", + "metadata": { + "collapsed": true + }, + "source": [ + "# Example 26.2 Separation between total positive and negative charges" + ] + }, + { + "cell_type": "code", + "execution_count": 1, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + " Separation between total positive and negative charges in meters is 5813776741.499454\n" + ] + } + ], + "source": [ + "#Example 2\n", + "\n", + "import math\n", + "\n", + "F =4.5 #Force of attraction in nt\n", + "q =1.3*10**5 #total charge in coulomb\n", + "r = q * math.sqrt ((9*10**9) / F ) ;\n", + "print(\" Separation between total positive and negative charges in meters is \",r )" + ] + }, + { + "cell_type": "markdown", + "metadata": { + "collapsed": true + }, + "source": [ + "# Example 26.3 Force acting on charge q1" + ] + }, + { + "cell_type": "code", + "execution_count": 8, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "X component of resultant force acting on q1 in nt is 2.0999999999999996\n", + "Y component of resultant force acting on q1 in nt is -1.5588457268119893\n" + ] + } + ], + "source": [ + "#Example 3\n", + "\n", + "import math\n", + "\n", + "#given three charges q1,q2,q3\n", + "q1=-1.0*10**-6 #charge in coul\n", + "q2=+3.0*10**-6 #charge in coul\n", + "q3=-2.0*10**-6 #charge in coul\n", + "r12=15*10**-2 #separation between q1 and q2 in m\n", + "r13=10*10**-2 # separation between q1 and q3 in m\n", + "angle=math.pi/6 #in degrees\n", + "F12=(9.0*10**9)*q1*q2/(r12**2) #in nt\n", + "F13=(9.0*10**9)*q1*q3/(r13**2) #in nt\n", + "F12x=-F12 #ignoring signs of charges\n", + "F13x=F13*math.sin(angle);\n", + "F1x=F12x+F13x\n", + "F12y=0 #from fig.263\n", + "F13y=-F13*math.cos(angle);\n", + "F1y=F12y+F13y #in nt\n", + "print(\"X component of resultant force acting on q1 in nt is\",F1x)\n", + "print(\"Y component of resultant force acting on q1 in nt is\",F1y)" + ] + }, + { + "cell_type": "markdown", + "metadata": { + "collapsed": true + }, + "source": [ + "# Example 26.4 Electrical and Gravitational force between two particles" + ] + }, + { + "cell_type": "code", + "execution_count": 9, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Coulomb force in nt is 8.202207191171238e-08\n", + "Gravitational force in nt is 3.689889640441438e-47\n" + ] + } + ], + "source": [ + "#Example 4\n", + "\n", + "r=5.3*10**-11 #distance between electron and proton in the hydrogen atom in meter\n", + "e=1.6*10**-19 #charge in coul\n", + "G=6.7*10**-11 #gravitatinal constant in nt-m2/kg2\n", + "m1=9.1*10**-31 #mass of electron in kg\n", + "m2=1.7*10**-27 #mass of proton in kg\n", + "F1=(9*10**9)*e*e/(r**2) #coulomb's law\n", + "F2=G*m1*m2/(r**2) #gravitational force\n", + "print(\"Coulomb force in nt is\",F1)\n", + "print(\"Gravitational force in nt is\",F2)" + ] + }, + { + "cell_type": "markdown", + "metadata": { + "collapsed": true + }, + "source": [ + "# Example 26.5 Repulsive force between two protons in a nucleus of iron" + ] + }, + { + "cell_type": "code", + "execution_count": 2, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Repulsive coulomb force F 14.4 nt\n" + ] + } + ], + "source": [ + "#Example 5\n", + "\n", + "r=4*10**-15 #separation between proton annd nucleus in iron in meters\n", + "q=1.6*10**-19 #charge in coul\n", + "F=(9*10**9)*(q**2)/(r**2) #coulomb's law\n", + "print(\"Repulsive coulomb force F \",F,'nt')" + ] + } + ], + "metadata": { + "kernelspec": { + "display_name": "Python 3", + "language": "python", + "name": "python3" + }, + "language_info": { + "codemirror_mode": { + "name": "ipython", + "version": 3 + }, + "file_extension": ".py", + "mimetype": "text/x-python", + "name": "python", + "nbconvert_exporter": "python", + "pygments_lexer": "ipython3", + "version": "3.5.1" + }, + "widgets": { + "state": {}, + "version": "1.1.2" + } + }, + "nbformat": 4, + "nbformat_minor": 0 +} diff --git a/Physics_For_Students_Of_Science_And_Engineering_Part_2_by_D_Halliday_and_R_Resnick/Chapter27.ipynb b/Physics_For_Students_Of_Science_And_Engineering_Part_2_by_D_Halliday_and_R_Resnick/Chapter27.ipynb new file mode 100755 index 00000000..aa87126e --- /dev/null +++ b/Physics_For_Students_Of_Science_And_Engineering_Part_2_by_D_Halliday_and_R_Resnick/Chapter27.ipynb @@ -0,0 +1,183 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Chapter 27 THE ELECTRIC FIELD" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Example 27.1 Electric field strength" + ] + }, + { + "cell_type": "code", + "execution_count": 1, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Electric field strength E=F/q where F=mg\n", + "electric field strength in nt/coul is 5.574e-11\n" + ] + } + ], + "source": [ + "m=9.1*10**-31 #mass of electron in kg\n", + "g=9.8 #acceleration due to gravity in m/s\n", + "q=1.6*10**-19 #charge of electron in coul\n", + "print(\"Electric field strength E=F/q where F=mg\")\n", + "E=m*g/q\n", + "print(\"electric field strength in nt/coul is %.3e\"%E)\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Example 27.4 The point on the line joining two charges for the electric field strength to be zero" + ] + }, + { + "cell_type": "code", + "execution_count": 2, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "For the electric field strength to be zero the point should lie between the charges where E1=E2\n", + "E1=E2 which implies q1/4πϵx2 = q2/4πϵ(l-x)2\n", + "Electric field strength is zero at x=4.142 cm\n" + ] + } + ], + "source": [ + "import math\n", + "\n", + "q1=1.0*10**-6 #in coul\n", + "q2=2.0*10**-6 #in coul\n", + "l=10 #sepearation b/w q1 and q2 in cm\n", + "print(\"For the electric field strength to be zero the point should lie between the charges where E1=E2\")\n", + "#\"Refer to the fig 27.9\"\n", + "#E1=electric fied strength due to q1\n", + "#E2=electric fied strength due to q2\n", + "print(\"E1=E2 which implies q1/4πϵx2 = q2/4πϵ(l-x)2\")\n", + "x=l/(1+math.sqrt(q2/q1))\n", + "print(\"Electric field strength is zero at x=%.3f cm\"%x)" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Example 27.9 Deflection of electron" + ] + }, + { + "cell_type": "code", + "execution_count": 3, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Corresponding deflection in meters is 0.000337\n" + ] + } + ], + "source": [ + "e=1.6*10**-19 #charge in coul\n", + "E=1.2*10**4 #electric field in nt/coul\n", + "x=1.5*10**-2 #length of deflecting assembly in m\n", + "K0=3.2*10**-16 #kinetic energy of electron in joule\n", + "#calculation\n", + "y=e*E*x**2/(4*K0)\n", + "print(\"Corresponding deflection in meters is %.6f\"%y)" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Example 27.11 Torque and work done by external agent on electric dipole" + ] + }, + { + "cell_type": "code", + "execution_count": 4, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "(a)Maximum torque exerted by the fied in nt-m is\n", + "0.002\n", + "(b) Work done by the external agent to turn dipole end for end in joule is \n", + "0.004\n" + ] + } + ], + "source": [ + "import math\n", + "q=1.0*10**-6 #magnitude of two opposite charges of a electric dipole in coul\n", + "d=2.0*10**-2 #seperation b/w charges in m\n", + "E=1.0*10**5 #external field in nt/coul\n", + "#calculations\n", + "#(a)Max torque if found when theta=90 degrees\n", + "#Torque =pEsin(theta)\n", + "p=q*d #electric dipole moment\n", + "T=p*E*math.sin(math.pi/2)\n", + "print(\"(a)Maximum torque exerted by the fied in nt-m is\")\n", + "print(T)\n", + "#(b)work done by the external agent is the potential energy b/w the positions theta=180 and 0 degree\n", + "W=(-p*E*math.cos(math.pi))-(-p*E*math.cos(0))\n", + "print(\"(b) Work done by the external agent to turn dipole end for end in joule is \")\n", + "print(W)" + ] + } + ], + "metadata": { + "anaconda-cloud": {}, + "kernelspec": { + "display_name": "Python 3", + "language": "python", + "name": "python3" + }, + "language_info": { + "codemirror_mode": { + "name": "ipython", + "version": 3 + }, + "file_extension": ".py", + "mimetype": "text/x-python", + "name": "python", + "nbconvert_exporter": "python", + "pygments_lexer": "ipython3", + "version": "3.5.1" + }, + "widgets": { + "state": {}, + "version": "1.1.2" + } + }, + "nbformat": 4, + "nbformat_minor": 0 +} diff --git a/Physics_For_Students_Of_Science_And_Engineering_Part_2_by_D_Halliday_and_R_Resnick/Chapter28.ipynb b/Physics_For_Students_Of_Science_And_Engineering_Part_2_by_D_Halliday_and_R_Resnick/Chapter28.ipynb new file mode 100755 index 00000000..b8c0f0da --- /dev/null +++ b/Physics_For_Students_Of_Science_And_Engineering_Part_2_by_D_Halliday_and_R_Resnick/Chapter28.ipynb @@ -0,0 +1,98 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Chapter 28 GAUSS'S LAW" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Example 28.3 Electric field strength" + ] + }, + { + "cell_type": "code", + "execution_count": 1, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Electric field strength at the surface of the gold atom in nt/coul is 1.138e+13\n" + ] + } + ], + "source": [ + "r=1*10**-10 #radius of the atom in meter\n", + "Z=79 #gold atomic number\n", + "e=1.6*10**-19 #charge in coul\n", + "q=Z*e #total positive charge in coul\n", + "E=(9.0*10**9)*q/r**2\n", + "print(\"Electric field strength at the surface of the gold atom in nt/coul is %.3e\"%E)" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Example 28.4 Electric field strength at the nuclear surface" + ] + }, + { + "cell_type": "code", + "execution_count": 2, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Electric field strength at the surface of the gold atom in nt/coul is 2.389e+21\n" + ] + } + ], + "source": [ + "r=6.9*10**-15 #radius of the gold nucleus in meter\n", + "Z=79 #gold atomic number\n", + "e=1.6*10**-19 #charge in coul\n", + "q=Z*e #total positive charge in coul\n", + "E=(9.0*10**9)*q/r**2\n", + "print(\"Electric field strength at the surface of the gold atom in nt/coul is %.3e\"%E)" + ] + } + ], + "metadata": { + "kernelspec": { + "display_name": "Python 3", + "language": "python", + "name": "python3" + }, + "language_info": { + "codemirror_mode": { + "name": "ipython", + "version": 3 + }, + "file_extension": ".py", + "mimetype": "text/x-python", + "name": "python", + "nbconvert_exporter": "python", + "pygments_lexer": "ipython3", + "version": "3.5.1" + }, + "widgets": { + "state": {}, + "version": "1.1.2" + } + }, + "nbformat": 4, + "nbformat_minor": 0 +} diff --git a/Physics_For_Students_Of_Science_And_Engineering_Part_2_by_D_Halliday_and_R_Resnick/Chapter29.ipynb b/Physics_For_Students_Of_Science_And_Engineering_Part_2_by_D_Halliday_and_R_Resnick/Chapter29.ipynb new file mode 100755 index 00000000..439a6f56 --- /dev/null +++ b/Physics_For_Students_Of_Science_And_Engineering_Part_2_by_D_Halliday_and_R_Resnick/Chapter29.ipynb @@ -0,0 +1,209 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Chapter 29 ELECTRIC POTENTIAL" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Example 29.3 Magnitude of an isolated positive point charge" + ] + }, + { + "cell_type": "code", + "execution_count": 1, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Potential due to a point charge is V=q/4*pi*epislon0*r\n", + "Magnitude of positive point charge in coul is 1.112e-09\n" + ] + } + ], + "source": [ + "import math\n", + "V=100 #electric potential in volts\n", + "r=10*10**-2 #in meters\n", + "epsilon0=8.85*10**-12 #coul2/nt-m2\n", + "print(\"Potential due to a point charge is V=q/4*pi*epislon0*r\")\n", + "q=V*4*math.pi*epsilon0*r\n", + "print(\"Magnitude of positive point charge in coul is %.3e\"%q)" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Exa 29.4 Electric potential at the surface of a gold nucleus" + ] + }, + { + "cell_type": "code", + "execution_count": 2, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Electric potential at the surface of the nucleus in volts is 17220668\n" + ] + } + ], + "source": [ + "import math\n", + "r=6.6*10**-15 #radius of the gold nucleus in meter\n", + "Z=79 #gold atomic number\n", + "e=1.6*10**-19 #charge in coul\n", + "q=Z*e #total positive charge in coul\n", + "epsilon0=8.85*10**-12 #coul2/nt-m2\n", + "V=q/(4*math.pi*epsilon0*r)\n", + "print(\"Electric potential at the surface of the nucleus in volts is %d\"%V)" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Exa 29.5 Potential at the center of the square" + ] + }, + { + "cell_type": "code", + "execution_count": 3, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Potential at the center of the square in volts is 508.65\n" + ] + } + ], + "source": [ + "import math\n", + "q1=1.0*10**-8 #in coul\n", + "q2=-2.0*10**-8 #in coul\n", + "q3=3.0*10**-8 #in coul\n", + "q4=2.0*10**-8 #in coul\n", + "a=1 #side of square in meter\n", + "epsilon0=8.85*10**-12 #coul2/nt-m2\n", + "#refer to the fig 29.7\n", + "r=a/math.sqrt(2) #distance of charges from centre in meter\n", + "V=(q1+q2+q3+q4)/(4*math.pi*epsilon0*r)\n", + "print(\"Potential at the center of the square in volts is %.2f\"%V)" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Exa 29.8 Mutual potential energy" + ] + }, + { + "cell_type": "code", + "execution_count": 4, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Mutual electric potential energy of two proton in joules is 3.837e-14\n", + "Mutual electric potential energy of two proton in ev is 239781.46\n" + ] + } + ], + "source": [ + "import math\n", + "q1=1.6*10**-19 #charge in coul\n", + "q2=1.6*10**-19 #charge in coul\n", + "r=6.0*10**-15 #seperation b/w two protons in meter\n", + "epsilon0=8.85*10**-12 #coul2/nt-m2\n", + "U=(q1*q2)/(4*math.pi*epsilon0*r)\n", + "print(\"Mutual electric potential energy of two proton in joules is %.3e\"%U)\n", + "V=U/q1\n", + "print(\"Mutual electric potential energy of two proton in ev is %.2f\"%V)" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Exa 29.9 Mutual potential energy" + ] + }, + { + "cell_type": "code", + "execution_count": 5, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Total energy is the sum of each pair of particles \n", + "Mutual potential energy of the particles in joules is -0.008991804694457362\n" + ] + } + ], + "source": [ + "import math\n", + "q=1.0*10**-7 #charge in coul\n", + "a=10*10**-2 #side of triangle in meter\n", + "q1=q\n", + "q2=-4*q\n", + "q3=2*q\n", + "epsilon0=8.85*10**-12 #coul2/nt-m2\n", + "print(\"Total energy is the sum of each pair of particles \")\n", + "U=(1/(4*math.pi*epsilon0))*(((q1*q2)/a)+((q1*q3)/a)+((q2*q3)/a))\n", + "print(\"Mutual potential energy of the particles in joules is\",U)" + ] + } + ], + "metadata": { + "kernelspec": { + "display_name": "Python 3", + "language": "python", + "name": "python3" + }, + "language_info": { + "codemirror_mode": { + "name": "ipython", + "version": 3 + }, + "file_extension": ".py", + "mimetype": "text/x-python", + "name": "python", + "nbconvert_exporter": "python", + "pygments_lexer": "ipython3", + "version": "3.5.1" + }, + "widgets": { + "state": {}, + "version": "1.1.2" + } + }, + "nbformat": 4, + "nbformat_minor": 0 +} diff --git a/Physics_For_Students_Of_Science_And_Engineering_Part_2_by_D_Halliday_and_R_Resnick/Chapter30.ipynb b/Physics_For_Students_Of_Science_And_Engineering_Part_2_by_D_Halliday_and_R_Resnick/Chapter30.ipynb new file mode 100755 index 00000000..6c475796 --- /dev/null +++ b/Physics_For_Students_Of_Science_And_Engineering_Part_2_by_D_Halliday_and_R_Resnick/Chapter30.ipynb @@ -0,0 +1,167 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Chapter 30 CAPACITORS AND DIELECTRICS" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Example 30.1 Plate area" + ] + }, + { + "cell_type": "code", + "execution_count": 1, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Plate area in square meter is 1.130e+08\n" + ] + } + ], + "source": [ + "C=1.0 #capacitance in farad\n", + "d=1.0*10**-3 #separation b/w plates in meter\n", + "epsilon0=8.85*10**-12 #coul2/nt-m2\n", + "A=d*C/epsilon0\n", + "print(\"Plate area in square meter is %.3e\"%A)" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Example 30.5 To calculate Capacitance Free charge Electric field strength Potential diffrence between plates" + ] + }, + { + "cell_type": "code", + "execution_count": 2, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "(a)Capacitance before the slab is inserted in farad is 8.850e-12\n", + "(b)Free charge in coul is 8.850e-10\n", + "(c)Electric field strength in the gap in volts/meter is 10000\n", + "(d)Electric field strength in the dielectric in volts/meter is 1428.5714\n", + "(e)Potential difference between the plates in volts is 57.1429\n", + "(f)Capacitance with the slab in place in farads is 1.549e-11\n" + ] + } + ], + "source": [ + "epsilon0=8.85*10**-12 #coul2/nt-m2\n", + "A=100*10**-4#area of the plate in square meter\n", + "d=1*10**-2 #separation b/w plates in meter\n", + "b=5*10**-3 #thickness of dielectric lab in meter\n", + "V0=100#in volts\n", + "k=7\n", + "#(a)\n", + "C0=epsilon0*A/d\n", + "print(\"(a)Capacitance before the slab is inserted in farad is %.3e\"%C0)\n", + "#(b)\n", + "q=C0*V0\n", + "print(\"(b)Free charge in coul is %.3e\"%q)\n", + "#(c)\n", + "E0=q/(epsilon0*A)\n", + "print(\"(c)Electric field strength in the gap in volts/meter is %d\"%E0)\n", + "#(d)\n", + "E=q/(k*epsilon0*A)\n", + "print(\"(d)Electric field strength in the dielectric in volts/meter is %.4f\"%E)\n", + "#(e)\n", + "#Refer to fig30-12\n", + "V=E0*(d-b)+E*b\n", + "print(\"(e)Potential difference between the plates in volts is %.4f\"%V)\n", + "#(f)\n", + "C=q/V\n", + "print(\"(f)Capacitance with the slab in place in farads is %.3e\"%C)" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Example 30.6 To calculate Electric displacement and Electric polarisation in dielectric and air gap" + ] + }, + { + "cell_type": "code", + "execution_count": 3, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "(a)Electric displacement in dielectric in coul/square metre is 8.859e-08\n", + "Electric polarisation in dielectric in coul/square meter is 7.593e-08\n", + "(b)Electric displacement in air gap in coul/square metre is 8.850e-08\n", + "Electric polarisation in air gap in coul/square meter is 0.0\n" + ] + } + ], + "source": [ + "epsilon0=8.85*10**-12 #coul2/nt-m2\n", + "A=100*10**-4#area of the plate in square meter\n", + "d=1*10**-2 #separation b/w plates in meter\n", + "V0=100#in volts\n", + "E0=1*10**4 #Electric field in the air gap in volts/meter\n", + "k=7\n", + "k0=1\n", + "E=1.43*10**3 #in volts/metre\n", + "D=k*E*epsilon0\n", + "P=epsilon0*(k-1)*E\n", + "#(a)\n", + "print(\"(a)Electric displacement in dielectric in coul/square metre is %.3e\"%D)\n", + "print(\"Electric polarisation in dielectric in coul/square meter is %.3e\"%P)\n", + "#(b)\n", + "D0=k0*epsilon0*E0\n", + "print(\"(b)Electric displacement in air gap in coul/square metre is %.3e\"%D0)\n", + "P0=epsilon0*(k0-1)*E0\n", + "print(\"Electric polarisation in air gap in coul/square meter is\",P0)" + ] + } + ], + "metadata": { + "kernelspec": { + "display_name": "Python 3", + "language": "python", + "name": "python3" + }, + "language_info": { + "codemirror_mode": { + "name": "ipython", + "version": 3 + }, + "file_extension": ".py", + "mimetype": "text/x-python", + "name": "python", + "nbconvert_exporter": "python", + "pygments_lexer": "ipython3", + "version": "3.5.1" + }, + "widgets": { + "state": {}, + "version": "1.1.2" + } + }, + "nbformat": 4, + "nbformat_minor": 0 +} diff --git a/Physics_For_Students_Of_Science_And_Engineering_Part_2_by_D_Halliday_and_R_Resnick/Chapter31.ipynb b/Physics_For_Students_Of_Science_And_Engineering_Part_2_by_D_Halliday_and_R_Resnick/Chapter31.ipynb new file mode 100755 index 00000000..3f58961b --- /dev/null +++ b/Physics_For_Students_Of_Science_And_Engineering_Part_2_by_D_Halliday_and_R_Resnick/Chapter31.ipynb @@ -0,0 +1,219 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Chapter 31 CURRENT AND RESISTANCE" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Example 31.1 Current density" + ] + }, + { + "cell_type": "code", + "execution_count": 1, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Current density in Aluminium wire in amp/square inches 1273.240\n", + "Current density in copper wire in amp/square inches 3108.495\n" + ] + } + ], + "source": [ + "import math\n", + "\n", + "d1=0.10 #diameter of aluminium wire in inches\n", + "d2=0.064 #diameter of copper wire in inches\n", + "i=10 #current carried by composite wire in amperes\n", + "A1=math.pi*(d1/2)**2 #crosssectional area of aluminium wire in square inches\n", + "A2=math.pi*(d2/2)**2 #crosssectional area of copper wire in square inches\n", + "j1=i/A1\n", + "j2=i/A2\n", + "print(\"Current density in Aluminium wire in amp/square inches %.3f\"%j1)\n", + "print(\"Current density in copper wire in amp/square inches %.3f\"%j2)" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Example 31.2 Drift speed" + ] + }, + { + "cell_type": "code", + "execution_count": 2, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "No.of free electrons per unit volume in atoms/mole 8.438e+22\n", + "Drift speed of electron in cm/sec is 0.03556\n" + ] + } + ], + "source": [ + "j=480 #current density for copper wire in amp/cm2\n", + "N0=6*10**23 #avagadro number in atoms/mole\n", + "M=64 #molecular wt in gm/mole\n", + "d=9.0 #density in gm/cm3\n", + "e=1.6*10**-19 #elecron charge in coul\n", + "n=d*N0/M \n", + "print(\"No.of free electrons per unit volume in atoms/mole %.3e\"%n)\n", + "Vd=j/(n*e)\n", + "print(\"Drift speed of electron in cm/sec is %.5f\"%Vd)" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Example 31.3 Resistance and resistivity" + ] + }, + { + "cell_type": "code", + "execution_count": 5, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Dimensions of rectangular carbon block are 1.0cm*1.0cm*50cm\n", + "(a) Resistance measured b/w the two square ends in ohm is 0.175\n", + "(a) Resistance measured b/w the two opposite rectangular faces in ohm is 7.0e-05\n" + ] + } + ], + "source": [ + "\n", + "print(\"Dimensions of rectangular carbon block are 1.0cm*1.0cm*50cm\")\n", + "l=1.0*10**-2 #in meter\n", + "b=1.0*10**-2#in meter\n", + "h=50*10**-2 #in meter\n", + "p=3.5*10**-5 #resisivity of carbon in ohm-m\n", + "#(a)Resistance b/w two square ends\n", + "l1=h\n", + "A1=b*l\n", + "R1=p*l1/A1\n", + "print(\"(a) Resistance measured b/w the two square ends in ohm is %.3f\"%R1)\n", + "l2=l\n", + "A2=b*h\n", + "R2=p*l2/A2\n", + "print(\"(a) Resistance measured b/w the two opposite rectangular faces in ohm is %.1e\"%R2)" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Example 31.4 Mean time and Mean free path" + ] + }, + { + "cell_type": "code", + "execution_count": 7, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "(a) Mean time b/w collisions in sec is 4.979e-14\n", + "(b) Mean free path in cm is 0.000008\n" + ] + } + ], + "source": [ + "m=9.1*10**-31 #in kg\n", + "n=8.4*10**28 #in m-1\n", + "e=1.6*10**-19 #in coul\n", + "p=1.7*10**-8 #in ohm-m\n", + "v=1.6*10**8 #in cm/sec\n", + "T=2*m/(n*p*e**2)\n", + "print(\"(a) Mean time b/w collisions in sec is %.3e\"%T)\n", + "Lambda=T*v\n", + "print(\"(b) Mean free path in cm is %f\"%Lambda)" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Example 31.5 Power" + ] + }, + { + "cell_type": "code", + "execution_count": 14, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "(a)Power for the single coil in watts is 504.167\n", + "(b)Power for a coil of half the length in watts is 1008.333\n" + ] + } + ], + "source": [ + "from __future__ import division\n", + "\n", + "V=110 #in volt\n", + "R=24 #ohms\n", + "P1=V**2/R\n", + "print(\"(a)Power for the single coil in watts is %.3f\"%P1)\n", + "P2=V**2/(R/2)\n", + "print(\"(b)Power for a coil of half the length in watts is %.3f\"%P2)" + ] + } + ], + "metadata": { + "kernelspec": { + "display_name": "Python 3", + "language": "python", + "name": "python3" + }, + "language_info": { + "codemirror_mode": { + "name": "ipython", + "version": 3 + }, + "file_extension": ".py", + "mimetype": "text/x-python", + "name": "python", + "nbconvert_exporter": "python", + "pygments_lexer": "ipython3", + "version": "3.5.1" + }, + "widgets": { + "state": {}, + "version": "1.1.2" + } + }, + "nbformat": 4, + "nbformat_minor": 0 +} diff --git a/Physics_For_Students_Of_Science_And_Engineering_Part_2_by_D_Halliday_and_R_Resnick/Chapter33.ipynb b/Physics_For_Students_Of_Science_And_Engineering_Part_2_by_D_Halliday_and_R_Resnick/Chapter33.ipynb new file mode 100755 index 00000000..f307c86e --- /dev/null +++ b/Physics_For_Students_Of_Science_And_Engineering_Part_2_by_D_Halliday_and_R_Resnick/Chapter33.ipynb @@ -0,0 +1,260 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Chapter 33 THE MAGNETIC FIELD" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Example 33.1 Force acting on a proton" + ] + }, + { + "cell_type": "code", + "execution_count": 1, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Speed of the proton in meters/sec is 30678599.55\n", + "Force acting on proton in nt is 7.363e-12\n" + ] + } + ], + "source": [ + "import math\n", + "K=5*10**6 #ev\n", + "e=1.6*10**-19 #in coul\n", + "K1=K*e #in joules\n", + "m=1.7*10**-27 #in kg\n", + "B=1.5 #wb/m\n", + "theta=math.pi/2\n", + "v=math.sqrt(2*K1/m)\n", + "print(\"Speed of the proton in meters/sec is %.2f\"%v)\n", + "F=e*v*B*math.sin(theta)\n", + "print(\"Force acting on proton in nt is %.3e\"%F)" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Example 33.3 Torsional constant of the spring" + ] + }, + { + "cell_type": "code", + "execution_count": 2, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Torssional constant in nt-m/deg is 3.333e-08\n" + ] + } + ], + "source": [ + "N=250 #turns in coil\n", + "i=1.0*10**-4 #in amp\n", + "B=0.2 #wb/m2\n", + "h=2*10**-2 #coil height in m\n", + "w=1.0*10**-2 #width of coil in m\n", + "Q=30 #angular deflectin in degrees\n", + "theta=math.pi/2\n", + "A=h*w\n", + "k=N*i*A*B*math.sin(theta)/Q\n", + "print(\"Torssional constant in nt-m/deg is %.3e\"%k)" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Example 33.4 Work done" + ] + }, + { + "cell_type": "code", + "execution_count": 3, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Work required to turn current in an external magnetic field from theta=0 to theta=180 degree in joule is 0.23561944901923454\n" + ] + } + ], + "source": [ + "import math\n", + "N=100 #turns in circular coil\n", + "i=0.10 #in amp\n", + "B=1.5 #in wb/m2\n", + "a=5*10**-2 #radius of coil in meter\n", + "u=N*i*math.pi*(a**2) #u is dipole moment\n", + "U1=(-u*B*math.cos(0))\n", + "U2=-u*B*math.cos(math.pi)\n", + "W=U2-U1\n", + "print(\"Work required to turn current in an external magnetic field from theta=0 to theta=180 degree in joule is \",W)" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Example 33.5 Hall potential difference" + ] + }, + { + "cell_type": "code", + "execution_count": 4, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Hall potential difference aross strip in volt is 2.232142857142857e-05 or 0.0000223\n" + ] + } + ], + "source": [ + "i=200 #current in the strip in amp\n", + "B=1.5 #magnetic field in wb/m2\n", + "n=8.4*10**28 #in m-3\n", + "e=1.6*10**-19 #in coul\n", + "h=1.0*10**-3 #thickness of copper strip in metre\n", + "w=2*10**-2 #width of copper strip in meter\n", + "Vxy=i*B/(n*e*h)\n", + "print(\"Hall potential difference aross strip in volt is\",Vxy,\"or\",\"%.7f\"%Vxy)" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Example 33.6 Orbital radius Cyclotron frequency and Period of revolution" + ] + }, + { + "cell_type": "code", + "execution_count": 5, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "(A) Orbit radius in meter is 0.1080625\n", + "(B) Cyclotron frequency in rev/sec is 2798328.7\n", + "(C) Period of revolution in sec is 0.0000004\n" + ] + } + ], + "source": [ + "import math\n", + "\n", + "m=9.1*10**-31 # in kg\n", + "v=1.9*10**6 #in m/sec\n", + "q=1.6*10**-19 #charge in coul\n", + "B=1.0*10**-4 #in wb/m2\n", + "\n", + "#(A)\n", + "r=m*v/(q*B)\n", + "print(\"(A) Orbit radius in meter is %.7f\"%r)\n", + "#(B)\n", + "f=q*B/(2*math.pi*m)\n", + "print(\"(B) Cyclotron frequency in rev/sec is %.1f\"%f)\n", + "#(C)\n", + "T=1/f\n", + "print(\"(C) Period of revolution in sec is %.7f\"%T)" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Example 33.7 Magnetic induction and Deuteron energy" + ] + }, + { + "cell_type": "code", + "execution_count": 6, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "(A) Magnetic induction needed to accelerate deuterons in wb/m2 is 1.5550883635269475\n", + "(B) Deuteron energy in joule is 2.669e-12\n", + " Deuteron energy in ev is 16679852\n" + ] + } + ], + "source": [ + "import math\n", + "f0=12*10**6 #cyclotron frequency in cycles/sec\n", + "r=21#dee radius in inches\n", + "R=r*0.0254 #dee radius in meter\n", + "q=1.6*10**-19 #charge in coul\n", + "m=3.3*10**-27 #in kg\n", + "#(A)\n", + "B=2*math.pi*f0*m/q\n", + "print(\"(A) Magnetic induction needed to accelerate deuterons in wb/m2 is\",B)\n", + "#(B)\n", + "K=((q**2*B**2*R**2)/(2*m))\n", + "print(\"(B) Deuteron energy in joule is %.3e\"%K)\n", + "K1=K*(1/(1.6*10**-19))\n", + "print(\" Deuteron energy in ev is %d\"%K1)" + ] + } + ], + "metadata": { + "kernelspec": { + "display_name": "Python 3", + "language": "python", + "name": "python3" + }, + "language_info": { + "codemirror_mode": { + "name": "ipython", + "version": 3 + }, + "file_extension": ".py", + "mimetype": "text/x-python", + "name": "python", + "nbconvert_exporter": "python", + "pygments_lexer": "ipython3", + "version": "3.5.1" + }, + "widgets": { + "state": {}, + "version": "1.1.2" + } + }, + "nbformat": 4, + "nbformat_minor": 0 +} diff --git a/Physics_For_Students_Of_Science_And_Engineering_Part_2_by_D_Halliday_and_R_Resnick/Chapter34.ipynb b/Physics_For_Students_Of_Science_And_Engineering_Part_2_by_D_Halliday_and_R_Resnick/Chapter34.ipynb new file mode 100755 index 00000000..37944813 --- /dev/null +++ b/Physics_For_Students_Of_Science_And_Engineering_Part_2_by_D_Halliday_and_R_Resnick/Chapter34.ipynb @@ -0,0 +1,148 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Chapter 34 AMPERES LAW" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Example 34.3 Distance" + ] + }, + { + "cell_type": "code", + "execution_count": 1, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Separation between two wires in metres 0.0054795\n" + ] + } + ], + "source": [ + "import math\n", + "i1=100 #in amp\n", + "i2=20 #in amp\n", + "W=0.073 #weight of second wire W=F/l in nt/m\n", + "u0=4*math.pi*10**-7 #in weber/amp-m\n", + "d=u0*i1*i2/(2*math.pi*W)\n", + "print(\"Separation between two wires in metres %.7f\"%d)" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Example 34.5 Magnetic field and Magnetic flux" + ] + }, + { + "cell_type": "code", + "execution_count": 2, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Magnetic field at center in wb/m2 is 0.0267035\n", + "Magnetic flux at the center of the solenoid in weber is 0.0000189\n" + ] + } + ], + "source": [ + "import math\n", + "l=1.0 #length of solenoid in meter\n", + "d=3*10**-2 #diameter of solenoid in meter\n", + "n=5*850 #number of layers and turns of wire\n", + "u0=4*math.pi*10**-7 #in weber/amp-m\n", + "i0=5.0 #current in amp\n", + "#(A)\n", + "B=u0*i0*n\n", + "print(\"Magnetic field at center in wb/m2 is %.7f\"%B)\n", + "#(B)\n", + "A=math.pi*(d/2)**2\n", + "Q=B*A\n", + "print(\"Magnetic flux at the center of the solenoid in weber is %.7f\"%Q)" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Example 34.9 Magnetic field and Magnetic dipole moment" + ] + }, + { + "cell_type": "code", + "execution_count": 3, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "(A) Magnetic field at the center of the orbit in wb/m2 13.404\n", + "(B) Equivalent magnetic dipole moment in amp-m2 is 8.890e-24\n" + ] + } + ], + "source": [ + "import math\n", + "from __future__ import division\n", + "e=1.6*10**-19 #in coul\n", + "R=5.1*10**-11 #radius of th enucleus in meter\n", + "f=6.8*10**15 #frequency with which elecron circulates in rev/sec\n", + "u0=4*math.pi*10**-7 #in weber/amp-m\n", + "x=0 #x is any point on the orbit, since at center x=0\n", + "#(A)\n", + "i=e*f\n", + "B=u0*i*R**2*0.5/((R**2+x**2)**(3/2))\n", + "print(\"(A) Magnetic field at the center of the orbit in wb/m2 %.3f\"%B)\n", + "N=1 #no.of turns\n", + "A=math.pi*R**2\n", + "U=N*i*A\n", + "print(\"(B) Equivalent magnetic dipole moment in amp-m2 is %.3e\"%U)" + ] + } + ], + "metadata": { + "kernelspec": { + "display_name": "Python 3", + "language": "python", + "name": "python3" + }, + "language_info": { + "codemirror_mode": { + "name": "ipython", + "version": 3 + }, + "file_extension": ".py", + "mimetype": "text/x-python", + "name": "python", + "nbconvert_exporter": "python", + "pygments_lexer": "ipython3", + "version": "3.5.1" + }, + "widgets": { + "state": {}, + "version": "1.1.2" + } + }, + "nbformat": 4, + "nbformat_minor": 0 +} diff --git a/Physics_For_Students_Of_Science_And_Engineering_Part_2_by_D_Halliday_and_R_Resnick/Chapter35.ipynb b/Physics_For_Students_Of_Science_And_Engineering_Part_2_by_D_Halliday_and_R_Resnick/Chapter35.ipynb new file mode 100755 index 00000000..645f77da --- /dev/null +++ b/Physics_For_Students_Of_Science_And_Engineering_Part_2_by_D_Halliday_and_R_Resnick/Chapter35.ipynb @@ -0,0 +1,131 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Chapter 35 FARADAYS LAW" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Example 35.1 Induced EMF" + ] + }, + { + "cell_type": "code", + "execution_count": 2, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Magnetic field at center in wb/m2 is 0.0376991\n", + "Magnetic flux at the center of the solenoid in weber is 0.0000118\n", + "Induced EMF in volts is -0.0473741\n" + ] + } + ], + "source": [ + "import math \n", + "l=1.0 #length of solenoid in meter\n", + "r=3*10**-2 #radius of solenoid in meter\n", + "n=200*10**2 #number of turns in solenoid per meter\n", + "u0=4*math.pi*10**-7 #in weber/amp-m\n", + "i=1.5 #current in amp\n", + "N=100 #no.of turns in a close packed coil placed at the center of solenoid\n", + "d=2*10**-2 #diameter of coil in meter\n", + "delta_T=0.050 #in sec\n", + "#(A)\n", + "B=u0*i*n\n", + "print(\"Magnetic field at center in wb/m2 is %.7f\"%B)\n", + "#(B)\n", + "A=math.pi*(d/2)**2\n", + "Q=B*A\n", + "print(\"Magnetic flux at the center of the solenoid in weber is %.7f\"%Q)\n", + "delta_Q=Q-(-Q)\n", + "E=-(N*delta_Q/delta_T)\n", + "print(\"Induced EMF in volts is %.7f\"%E)" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Example 35.7 Induced electric field and EMF" + ] + }, + { + "cell_type": "code", + "execution_count": 1, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Let S be the frame of reference fixed w.r.t the magnet and Z be the frame of reference w.r.t the loop\n", + "(A) Induced electric field in volt/m observed by Z 2.0\n", + "(B) Force acting on charge carrier in nt w.r.t S is 3.2e-19\n", + "Force acting on charge carrier in nt w.r.t Z is 3.2e-19\n", + "(C) Induced emf in volt observed by S is 0.2\n", + "Induced emf in volt observed by Z is 0.2\n" + ] + } + ], + "source": [ + "B=2 #magnetic field in wb/m2\n", + "l=10*10**-2 #in m\n", + "v=1.0 #in m/sec\n", + "q=1.6*10**-19 #charge in coul\n", + "print(\"Let S be the frame of reference fixed w.r.t the magnet and Z be the frame of reference w.r.t the loop\")\n", + "#(A)\n", + "E=v*B\n", + "print(\"(A) Induced electric field in volt/m observed by Z\",E)\n", + "#(B)\n", + "F=q*v*B\n", + "print(\"(B) Force acting on charge carrier in nt w.r.t S is %.1e\"%F)\n", + "F1=q*E\n", + "print(\"Force acting on charge carrier in nt w.r.t Z is %.1e\"%F1)\n", + "#(C)\n", + "emf1=B*l*v\n", + "print(\"(C) Induced emf in volt observed by S is\",emf1)\n", + "emf2=E*l\n", + "print(\"Induced emf in volt observed by Z is\",emf2)" + ] + } + ], + "metadata": { + "anaconda-cloud": {}, + "kernelspec": { + "display_name": "Python 3", + "language": "python", + "name": "python3" + }, + "language_info": { + "codemirror_mode": { + "name": "ipython", + "version": 3 + }, + "file_extension": ".py", + "mimetype": "text/x-python", + "name": "python", + "nbconvert_exporter": "python", + "pygments_lexer": "ipython3", + "version": "3.5.1" + }, + "widgets": { + "state": {}, + "version": "1.1.2" + } + }, + "nbformat": 4, + "nbformat_minor": 0 +} diff --git a/Physics_For_Students_Of_Science_And_Engineering_Part_2_by_D_Halliday_and_R_Resnick/Chapter36.ipynb b/Physics_For_Students_Of_Science_And_Engineering_Part_2_by_D_Halliday_and_R_Resnick/Chapter36.ipynb new file mode 100755 index 00000000..c300ad25 --- /dev/null +++ b/Physics_For_Students_Of_Science_And_Engineering_Part_2_by_D_Halliday_and_R_Resnick/Chapter36.ipynb @@ -0,0 +1,220 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Chapter 36 INDUCTANCE" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Example 36.1 Inductance of a toroid" + ] + }, + { + "cell_type": "code", + "execution_count": 1, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Inductance of a toroid of recyangular cross section in henry is 0.0013863\n" + ] + } + ], + "source": [ + "import math\n", + "from __future__ import division\n", + "\n", + "u0=4*math.pi*10**-7 #in weber/amp-m Mu-not=u0\n", + "N=10**3 #no.of turns\n", + "a=5*10**-2 #im meter\n", + "b=10*10**-2 #in meter\n", + "h=1*10**-2 #in metre\n", + "L=(u0*N**2*h)/(2*math.pi)*math.log(b/a)\n", + "print(\"Inductance of a toroid of recyangular cross section in henry is %.7f\"%L)" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Example 36.2 Time" + ] + }, + { + "cell_type": "code", + "execution_count": 2, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Time taken for the current to reach one-half of its final equilibrium in sec is 1.1552453\n" + ] + } + ], + "source": [ + "import math\n", + "L=50 #inductance in henry\n", + "R=30 #resistance in ohms\n", + "t0=math.log(2)*(L/R)\n", + "print(\"Time taken for the current to reach one-half of its final equilibrium in sec is %.7f\"%t0)" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Example 36.3 Maximum Current and Energy stored" + ] + }, + { + "cell_type": "code", + "execution_count": 3, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Maximum current in amp is 5.0\n", + "Energy stored in the magnetic field in joules is 62.5\n" + ] + } + ], + "source": [ + "L=5 #inductance in henry\n", + "V=100 #emf in volts\n", + "R=20 #resistance in ohms\n", + "i=V/R\n", + "print(\"Maximum current in amp is\",i)\n", + "U=(L*i**2)/2\n", + "print(\"Energy stored in the magnetic field in joules is %.1f\"%U)" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Example 36.4 Rate at which energy is stored and delivered and appeared" + ] + }, + { + "cell_type": "code", + "execution_count": 4, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The rate at which energy is delivred by the battery in watt is 0.5689085\n", + "The rate at which energy appears as Joule heat in the resistor in watt is 0.3596188\n", + "Let D=di/dt\n", + "The desired rate at which energy is being stored in the magnetic field in watt is 0.2092897\n" + ] + } + ], + "source": [ + "L=3 #inductance in henry\n", + "R=10 #resistance in ohm\n", + "V=3 #emf in volts\n", + "t=0.30 #in sec\n", + "T=0.30 #inductive time constant in sec\n", + "#(a)\n", + "i=(V/R)*(1-math.exp(-t/T))\n", + "P1=V*i\n", + "print(\"The rate at which energy is delivred by the battery in watt is %.7f\"%P1)\n", + "#(b)\n", + "P2=i**2*R\n", + "print(\"The rate at which energy appears as Joule heat in the resistor in watt is %.7f\"%P2)\n", + "#(c)\n", + "print(\"Let D=di/dt\")\n", + "D=(V/L)*math.exp(-t/T) #in amp/sec\n", + "P3=L*i*D\n", + "print(\"The desired rate at which energy is being stored in the magnetic field in watt is %.7f\"%P3)" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Example 36.6 Energy" + ] + }, + { + "cell_type": "code", + "execution_count": 5, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "(a)Energy required to set up in the given cube on edge in electric field in joules is 0.0000445\n", + "(b)Energy required to set up in the given cube on edge in magnetic field in joules is 397.887\n" + ] + } + ], + "source": [ + "from __future__ import division\n", + "import math\n", + "\n", + "epsilon0=8.9*10**-12 #in coul2/nt-m2\n", + "E=10**5 #elelctric field in volts/meter\n", + "B=1 #magnetic field in weber/meter2\n", + "u0=4*math.pi*10**-7 #in weber/amp-m Mu-not=u0\n", + "a=0.1 #side of the cube in meter\n", + "V0=a**3 #volume of the cube in meter3\n", + "#(a)\n", + "U1=epsilon0*E**2*V0/2 #in elelctric field\n", + "print(\"(a)Energy required to set up in the given cube on edge in electric field in joules is %.7f\"%U1)\n", + "#(b)\n", + "U2=(B**2/(2*u0))*V0\n", + "print(\"(b)Energy required to set up in the given cube on edge in magnetic field in joules is %.3f\"%U2)" + ] + } + ], + "metadata": { + "kernelspec": { + "display_name": "Python 3", + "language": "python", + "name": "python3" + }, + "language_info": { + "codemirror_mode": { + "name": "ipython", + "version": 3 + }, + "file_extension": ".py", + "mimetype": "text/x-python", + "name": "python", + "nbconvert_exporter": "python", + "pygments_lexer": "ipython3", + "version": "3.5.1" + }, + "widgets": { + "state": {}, + "version": "1.1.2" + } + }, + "nbformat": 4, + "nbformat_minor": 0 +} diff --git a/Physics_For_Students_Of_Science_And_Engineering_Part_2_by_D_Halliday_and_R_Resnick/Chapter37.ipynb b/Physics_For_Students_Of_Science_And_Engineering_Part_2_by_D_Halliday_and_R_Resnick/Chapter37.ipynb new file mode 100755 index 00000000..034da3ed --- /dev/null +++ b/Physics_For_Students_Of_Science_And_Engineering_Part_2_by_D_Halliday_and_R_Resnick/Chapter37.ipynb @@ -0,0 +1,181 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Chapter 37 MAGNETIC PROPERTIES OF MATTER" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Example 37.2 Orbital dipole moment" + ] + }, + { + "cell_type": "code", + "execution_count": 1, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Orbital dipole moment in amp-m2 is 9.061e-24\n" + ] + } + ], + "source": [ + "import math\n", + "e=1.6*10**-19 #in coul\n", + "r=5.1*10**-11 #radius of hydrogen atom in meter\n", + "m=9.1*10**-31 #mass of electron in kg\n", + "epsilon0=8.9*10**-12 #in coul2/nt-m2\n", + "p=((e**2)/4)*math.sqrt(r/(math.pi*epsilon0*m))\n", + "print(\"Orbital dipole moment in amp-m2 is %.3e\"%p)" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Example 37.4 Change in magnetic moment" + ] + }, + { + "cell_type": "code", + "execution_count": 2, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Change in Orbital dipole moment in amp-m2 is + 0r - 3.659e-29\n" + ] + } + ], + "source": [ + "e=1.6*10**-19 #in coul\n", + "r=5.1*10**-11 #radius of hydrogen atom in meter\n", + "m=9.1*10**-31 #mass of electron in kg\n", + "epsilon0=8.9*10**-12 #in coul2/nt-m2\n", + "B=2 #in wb/m2\n", + "delta_p=(e**2*B*r**2)/(4*m)\n", + "print(\"Change in Orbital dipole moment in amp-m2 is + 0r - %.3e\"%delta_p)" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Example 37.5 Precession frequency" + ] + }, + { + "cell_type": "code", + "execution_count": 3, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Precession frequency of phoyon in given magnetic field in cps is 21020464.18\n" + ] + } + ], + "source": [ + "import math\n", + "u=1.4*10**-26 #in amp-m2\n", + "B=0.50 #wb/m2\n", + "Lp=0.53*10**-34 #in joule-sec\n", + "fp=u*B/(2*math.pi*Lp)\n", + "print(\"Precession frequency of phoyon in given magnetic field in cps is %.2f\"%fp)" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Example 37.6 Magnetic field strength Magnetisation Effective magnetising current and Permeability" + ] + }, + { + "cell_type": "code", + "execution_count": 4, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "(A) Magnetic field strength in amp/m is 2000\n", + "(B) Magnetisation is Zero when core is removed\n", + " Magnetisation when the core is replaced in amp/m 793774.72\n", + "(C) Effective magnetizing current i=i(M,0)=M*(2*math.pi*r0/N0)=M/n\n", + " Effective magnetizing current in amp is 793.77472\n", + "(D) Permeability 397.88736\n" + ] + } + ], + "source": [ + "import math\n", + "n=10*10**2 #turns/m\n", + "i=2 #in amp\n", + "B=1.0 #in wb/m\n", + "u0=4*math.pi*10**-7 #in wb/amp-m\n", + "#(A)\n", + "H=n*i\n", + "print(\"(A) Magnetic field strength in amp/m is\",H)\n", + "#(B)\n", + "M=(B-u0*H)/u0\n", + "print(\"(B) Magnetisation is Zero when core is removed\")\n", + "print(\" Magnetisation when the core is replaced in amp/m %.2f\"%M)\n", + "#(C)\n", + "print(\"(C) Effective magnetizing current i=i(M,0)=M*(2*math.pi*r0/N0)=M/n\")\n", + "i=M/n\n", + "print(\" Effective magnetizing current in amp is %.5f\"%i)\n", + "#D\n", + "Km=B/(u0*H)\n", + "print(\"(D) Permeability %.5f\"%Km)" + ] + } + ], + "metadata": { + "anaconda-cloud": {}, + "kernelspec": { + "display_name": "Python 3", + "language": "python", + "name": "python3" + }, + "language_info": { + "codemirror_mode": { + "name": "ipython", + "version": 3 + }, + "file_extension": ".py", + "mimetype": "text/x-python", + "name": "python", + "nbconvert_exporter": "python", + "pygments_lexer": "ipython3", + "version": "3.5.1" + }, + "widgets": { + "state": {}, + "version": "1.1.2" + } + }, + "nbformat": 4, + "nbformat_minor": 0 +} diff --git a/Physics_For_Students_Of_Science_And_Engineering_Part_2_by_D_Halliday_and_R_Resnick/Chapter38.ipynb b/Physics_For_Students_Of_Science_And_Engineering_Part_2_by_D_Halliday_and_R_Resnick/Chapter38.ipynb new file mode 100755 index 00000000..8804dca7 --- /dev/null +++ b/Physics_For_Students_Of_Science_And_Engineering_Part_2_by_D_Halliday_and_R_Resnick/Chapter38.ipynb @@ -0,0 +1,195 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Chapter 38 ELECTROMAGNETIC OSCILLATIONS" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Example 38.1 Current" + ] + }, + { + "cell_type": "code", + "execution_count": 1, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Max current in amps 0.5\n" + ] + } + ], + "source": [ + "import math\n", + "V_o=50 #in volts\n", + "C=1*10**-6 #in farad\n", + "L=10*10**-3\n", + "i_m=V_o*(math.sqrt(C/L))\n", + "print(\"Max current in amps \",i_m)" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Example 38.2 Angular frequency" + ] + }, + { + "cell_type": "code", + "execution_count": 2, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Angular frequency in radians/sec= 10000.0\n" + ] + } + ], + "source": [ + "import math\n", + "L=10*(10**-3) #in henry\n", + "C=(10)**-6 #in farad\n", + "w=math.sqrt(1/(L*C))\n", + "print(\"Angular frequency in radians/sec=\",w)" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Example 38.3 Angular frequency and time" + ] + }, + { + "cell_type": "code", + "execution_count": 3, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Angular frequency in radians/sec= 10000.0\n", + "Time in sec= 0.13863\n" + ] + } + ], + "source": [ + "L=10*(10**-3) #in henry\n", + "C=10**-6 #in farad\n", + "R=0.1 #in ohm\n", + "w=math.sqrt(1/(L*C))\n", + "print(\"Angular frequency in radians/sec=\",w)\n", + "t=(2*L*math.log(2))/R\n", + "print(\"Time in sec= %.5f\"%t)" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Example 38.5 Magnetic field" + ] + }, + { + "cell_type": "code", + "execution_count": 4, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Magnetic field in weber/m**2= 0.0000003\n" + ] + } + ], + "source": [ + "import math\n", + "m_0=(4*math.pi*10**-7) #in weber\n", + "e_0=(8.9*10**-12)\n", + "R=5*10**-2 #meters\n", + "dEbydT=10**12\n", + "B=(0.5*m_0*e_0*R*dEbydT)\n", + "print(\"Magnetic field in weber/m**2= %.7f\"%B)" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Example 38.6 Calculation of current" + ] + }, + { + "cell_type": "code", + "execution_count": 5, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Current in amp= 0.0699004\n" + ] + } + ], + "source": [ + "import math\n", + "m_0=(4*math.pi*10**-7) #in weber\n", + "e_0=(8.9*10**-12)\n", + "R=5*10**-2 #meters\n", + "dEbydT=10**12\n", + "i_d=(e_0*math.pi*R*R*dEbydT)\n", + "print(\"Current in amp= %.7f\"%i_d)" + ] + } + ], + "metadata": { + "anaconda-cloud": {}, + "kernelspec": { + "display_name": "Python 3", + "language": "python", + "name": "python3" + }, + "language_info": { + "codemirror_mode": { + "name": "ipython", + "version": 3 + }, + "file_extension": ".py", + "mimetype": "text/x-python", + "name": "python", + "nbconvert_exporter": "python", + "pygments_lexer": "ipython3", + "version": "3.5.1" + }, + "widgets": { + "state": {}, + "version": "1.1.2" + } + }, + "nbformat": 4, + "nbformat_minor": 0 +} diff --git a/Physics_For_Students_Of_Science_And_Engineering_Part_2_by_D_Halliday_and_R_Resnick/Chapter39.ipynb b/Physics_For_Students_Of_Science_And_Engineering_Part_2_by_D_Halliday_and_R_Resnick/Chapter39.ipynb new file mode 100755 index 00000000..7f0dafec --- /dev/null +++ b/Physics_For_Students_Of_Science_And_Engineering_Part_2_by_D_Halliday_and_R_Resnick/Chapter39.ipynb @@ -0,0 +1,73 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Chapter 39 ELECTROMAGNETIC WAVES" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Example 39.6 Magnitude of electric and magnetic field" + ] + }, + { + "cell_type": "code", + "execution_count": 5, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The value of E in volts/meter= 244.94897\n", + "B in weber/meter^2= 0.00000082\n" + ] + } + ], + "source": [ + "import math\n", + "r=1 #in m\n", + "p=10**3 \n", + "m=4*math.pi*10**-7 #weber/amp-m\n", + "c=3*10**8 #speed of light\n", + "x=2*math.pi\n", + "E_m=(1/r)*(math.sqrt((p*m*c)/x))\n", + "print(\"The value of E in volts/meter= %.5f\"%E_m)\n", + "B=E_m/c\n", + "print(\"B in weber/meter^2= %.8f\"%B)" + ] + } + ], + "metadata": { + "anaconda-cloud": {}, + "kernelspec": { + "display_name": "Python 3", + "language": "python", + "name": "python3" + }, + "language_info": { + "codemirror_mode": { + "name": "ipython", + "version": 3 + }, + "file_extension": ".py", + "mimetype": "text/x-python", + "name": "python", + "nbconvert_exporter": "python", + "pygments_lexer": "ipython3", + "version": "3.5.1" + }, + "widgets": { + "state": {}, + "version": "1.1.2" + } + }, + "nbformat": 4, + "nbformat_minor": 0 +} diff --git a/Physics_For_Students_Of_Science_And_Engineering_Part_2_by_D_Halliday_and_R_Resnick/Chapter40.ipynb b/Physics_For_Students_Of_Science_And_Engineering_Part_2_by_D_Halliday_and_R_Resnick/Chapter40.ipynb new file mode 100755 index 00000000..98931fb3 --- /dev/null +++ b/Physics_For_Students_Of_Science_And_Engineering_Part_2_by_D_Halliday_and_R_Resnick/Chapter40.ipynb @@ -0,0 +1,166 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Chapter 40 NATURE AND PROPOGATION OF LIGHT" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Example 40.1 Force and energy reflected" + ] + }, + { + "cell_type": "code", + "execution_count": 1, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "(A) Energy reflected from mirror in joule= 36000.0\n", + "Momentum after 1 hr illumination in kg-m/sec= 0.00024\n", + "(B) Force in newton= 6.667e-08\n" + ] + } + ], + "source": [ + "u=(10)*(1.0)*3600 #in Joules\n", + "c=3*10**8 #in m/sec\n", + "t=3600 #in sec\n", + "print(\"(A) Energy reflected from mirror in joule=\",u)\n", + "p=(2*u)/c\n", + "print(\"Momentum after 1 hr illumination in kg-m/sec= %.5f\"%p)\n", + "f=p/t\n", + "print(\"(B) Force in newton= %.3e\"%f)" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Example 40.2 Angular speed" + ] + }, + { + "cell_type": "code", + "execution_count": 2, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Angular speed in rev/sec= 12.07030\n" + ] + } + ], + "source": [ + "theta=1/1440\n", + "c=3*10**8 #in m/sec\n", + "l=8630 #in m\n", + "w=(c*theta)/(2*l)\n", + "print(\"Angular speed in rev/sec= %.5f\"%w)" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Example 40.3 Calculation of c" + ] + }, + { + "cell_type": "code", + "execution_count": 3, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Lambda_g in cm= 3.9\n", + "Value of c in m/sec= 2.992e+10\n" + ] + } + ], + "source": [ + "l=15.6 #in cm\n", + "n=8\n", + "lambda_g=(2*l)/n\n", + "print(\"Lambda_g in cm=\",lambda_g)\n", + "lamda=3.15 #in cm\n", + "f=9.5*10**9 #cycles/sec\n", + "c=lamda*f\n", + "print(\"Value of c in m/sec= %.3e\"%c)" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Example 40.4 Percentage error" + ] + }, + { + "cell_type": "code", + "execution_count": 4, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Speed of light in miles/hour= 50000\n" + ] + } + ], + "source": [ + "v_1=25000 #miles/hr\n", + "u=25000 #miles/hr\n", + "c=6.7*10**8 #miles/hr\n", + "x=1+((v_1*u)/(c)**2)\n", + "v=(v_1+u)/x\n", + "print(\"Speed of light in miles/hour= %.0f\"%v)" + ] + } + ], + "metadata": { + "kernelspec": { + "display_name": "Python 3", + "language": "python", + "name": "python3" + }, + "language_info": { + "codemirror_mode": { + "name": "ipython", + "version": 3 + }, + "file_extension": ".py", + "mimetype": "text/x-python", + "name": "python", + "nbconvert_exporter": "python", + "pygments_lexer": "ipython3", + "version": "3.5.1" + }, + "widgets": { + "state": {}, + "version": "1.1.2" + } + }, + "nbformat": 4, + "nbformat_minor": 0 +} diff --git a/Physics_For_Students_Of_Science_And_Engineering_Part_2_by_D_Halliday_and_R_Resnick/Chapter41.ipynb b/Physics_For_Students_Of_Science_And_Engineering_Part_2_by_D_Halliday_and_R_Resnick/Chapter41.ipynb new file mode 100755 index 00000000..3ee8111a --- /dev/null +++ b/Physics_For_Students_Of_Science_And_Engineering_Part_2_by_D_Halliday_and_R_Resnick/Chapter41.ipynb @@ -0,0 +1,139 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Chapter 41 REFLECTION AND REFRACTION OF PLANE WAVES AND PLANE SURFACES" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Example 41.1 Angle between two refracted beams" + ] + }, + { + "cell_type": "code", + "execution_count": 2, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "For 4000 A beam, theta_2 in degree= 19.88234\n", + "For 5000 A beam, theta_2 in degree= 19.99290\n" + ] + } + ], + "source": [ + "import math\n", + "theta_1=30\n", + "n_qa=1.4702\n", + "theta2=math.degrees(math.asin(math.sin(theta_1*math.pi/180)/n_qa))\n", + "print(\"For 4000 A beam, theta_2 in degree= %.5f\"%theta2)\n", + "\n", + "theta_1=30\n", + "n_qa=1.4624\n", + "theta2=math.degrees(math.asin(math.sin(theta_1*math.pi/180)/n_qa))\n", + "print(\"For 5000 A beam, theta_2 in degree= %.5f\"%theta2)" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Example 41.4 Index of glass" + ] + }, + { + "cell_type": "code", + "execution_count": 3, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Index reflection= 1.41421\n" + ] + } + ], + "source": [ + "import math\n", + "n=1/math.sin(45*math.pi/180)\n", + "print(\"Index reflection= %.5f\"%n)" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Exa 41.5 Calculation of Angle" + ] + }, + { + "cell_type": "code", + "execution_count": 4, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Angle theta_c in degree= 62.45732\n", + "Actual angle of indices = 45 is less than theta_ c, so there is no internal angle reflection\n", + "Angle of refraction:\n", + "Theta_2 in degree= 52.89097\n" + ] + } + ], + "source": [ + "import math\n", + "n2=1.33\n", + "n1=1.50\n", + "theta_c=math.degrees(math.asin(n2/n1))\n", + "print(\"Angle theta_c in degree= %.5f\"%theta_c)\n", + "print(\"Actual angle of indices = 45 is less than theta_ c, so there is no internal angle reflection\")\n", + "print(\"Angle of refraction:\")\n", + "x=n1/n2\n", + "theta_2=(math.asin(x*math.sin(45*math.pi/180))*180/math.pi)\n", + "print(\"Theta_2 in degree= %.5f\"%theta_2)" + ] + } + ], + "metadata": { + "anaconda-cloud": {}, + "kernelspec": { + "display_name": "Python 3", + "language": "python", + "name": "python3" + }, + "language_info": { + "codemirror_mode": { + "name": "ipython", + "version": 3 + }, + "file_extension": ".py", + "mimetype": "text/x-python", + "name": "python", + "nbconvert_exporter": "python", + "pygments_lexer": "ipython3", + "version": "3.5.1" + }, + "widgets": { + "state": {}, + "version": "1.1.2" + } + }, + "nbformat": 4, + "nbformat_minor": 0 +} diff --git a/Physics_For_Students_Of_Science_And_Engineering_Part_2_by_D_Halliday_and_R_Resnick/Chapter42.ipynb b/Physics_For_Students_Of_Science_And_Engineering_Part_2_by_D_Halliday_and_R_Resnick/Chapter42.ipynb new file mode 100755 index 00000000..44b1556c --- /dev/null +++ b/Physics_For_Students_Of_Science_And_Engineering_Part_2_by_D_Halliday_and_R_Resnick/Chapter42.ipynb @@ -0,0 +1,183 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Chapter 42 REFLECTION AND REFRACTION SPHERICAL WAVES AND SPHERICAL SURFACES" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Example 42.4 Location of image" + ] + }, + { + "cell_type": "code", + "execution_count": 1, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "x=n2/i\n", + "x= 0.05\n", + "The value of i in cm= 40.0\n" + ] + } + ], + "source": [ + "from __future__ import division\n", + "n1=1\n", + "n2=2\n", + "o=20 #in cm\n", + "r=10 #in cm\n", + "print(\"x=n2/i\")\n", + "x=((n2-n1)/r)-(n1/o)\n", + "print(\"x=\",x)\n", + "i=n2/x\n", + "print(\"The value of i in cm=\",i)" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Example 42.5 Location of image" + ] + }, + { + "cell_type": "code", + "execution_count": 2, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "x=n2/i\n", + "The value of i in cm= -0.03333\n", + "The value of i in cm= -30\n" + ] + } + ], + "source": [ + "from __future__ import division\n", + "n1=2\n", + "n2=1\n", + "o=15 #in cm\n", + "r=-10 #in cm\n", + "print(\"x=n2/i\")\n", + "x=((n2-n1)/r)-(n1/o)\n", + "print(\"The value of i in cm= %.5f\"%x)\n", + "i=n2/x\n", + "print(\"The value of i in cm= %d\"%i)" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Example 42.7 Location of image" + ] + }, + { + "cell_type": "code", + "execution_count": 3, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "x=1/f in cm= 0.0325\n", + "f=1/x\n", + "f in cm= 30.76923\n" + ] + } + ], + "source": [ + "n=1.65\n", + "r_1=40 #in cm\n", + "r_2=-40 #in cm\n", + "x=(n-1)*((1/r_1)-(1/r_2))\n", + "print(\"x=1/f in cm= %.4f\"%x)\n", + "print(\"f=1/x\")\n", + "f=1/x\n", + "print(\"f in cm= %.5f\"%f)" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Example 42.8 Location of image" + ] + }, + { + "cell_type": "code", + "execution_count": 4, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "x=1/i in cm= -0.06944\n", + "i in cm= -14.4\n", + "Lateral magnification =\n", + "m= 1.6\n" + ] + } + ], + "source": [ + "from __future__ import division\n", + "o=9 #in cm\n", + "f=24 #in cm\n", + "x=(1/f)-(1/o)\n", + "print(\"x=1/i in cm= %.5f\"%x)\n", + "i=1/x\n", + "print(\"i in cm= %.1f\"%i)\n", + "print(\"Lateral magnification =\")\n", + "m=-(i/o)\n", + "print('m= %.1f'%m)" + ] + } + ], + "metadata": { + "kernelspec": { + "display_name": "Python 3", + "language": "python", + "name": "python3" + }, + "language_info": { + "codemirror_mode": { + "name": "ipython", + "version": 3 + }, + "file_extension": ".py", + "mimetype": "text/x-python", + "name": "python", + "nbconvert_exporter": "python", + "pygments_lexer": "ipython3", + "version": "3.5.1" + }, + "widgets": { + "state": {}, + "version": "1.1.2" + } + }, + "nbformat": 4, + "nbformat_minor": 0 +} diff --git a/Physics_For_Students_Of_Science_And_Engineering_Part_2_by_D_Halliday_and_R_Resnick/Chapter43.ipynb b/Physics_For_Students_Of_Science_And_Engineering_Part_2_by_D_Halliday_and_R_Resnick/Chapter43.ipynb new file mode 100755 index 00000000..215e62df --- /dev/null +++ b/Physics_For_Students_Of_Science_And_Engineering_Part_2_by_D_Halliday_and_R_Resnick/Chapter43.ipynb @@ -0,0 +1,177 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Chapter 43 INTERFERENCE" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Example 43.1 Angular position of first minimum" + ] + }, + { + "cell_type": "code", + "execution_count": 1, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Sin theta = 0.00273\n", + "Angle in degree= 0.15642\n" + ] + } + ], + "source": [ + "import math\n", + "m=1\n", + "lamda=546*10**-9\n", + "d=0.10*10**-3 #in m\n", + "sin_theta=((m-0.5)*lamda)/(d)\n", + "print(\"Sin theta = %.5f\"%sin_theta)\n", + "theta=math.degrees(math.asin(sin_theta))\n", + "print(\"Angle in degree= %.5f\"%theta)" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Example 43.2 Linear distance" + ] + }, + { + "cell_type": "code", + "execution_count": 2, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Linear distance in meter= 0.00109\n" + ] + } + ], + "source": [ + "delta=546*10**-9 #in meter\n", + "D=20*10**-2 #in meter\n", + "d=0.10*10**-3 #in meter\n", + "delta_y=(delta*D)/d\n", + "print(\"Linear distance in meter= %.5f\"%delta_y)" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Example 43.4 Refraction" + ] + }, + { + "cell_type": "code", + "execution_count": 3, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "When m= 1\n", + "Lambda_max= 5674.666666666667\n", + "Lambda_min= 8500.0\n", + "When m= 2\n", + "Lambda_max= 3404.8\n", + "Lambda_min= 4250.0\n" + ] + } + ], + "source": [ + "d=3200 #in A\n", + "n=1.33\n", + "for m in range(1,3):\n", + " lambda_max=(2*d*n)/(m+0.5)\n", + " lambda_min=(8500/m)\n", + " print(\"When m=\",m)\n", + " print(\"Lambda_max=\",lambda_max)\n", + " print(\"Lambda_min=\",lambda_min)\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Example 43.5 Refraction" + ] + }, + { + "cell_type": "code", + "execution_count": 4, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "When m= 0\n", + "d in A=905.797\n", + "When m= 1\n", + "d in A=2717.391\n", + "When m= 2\n", + "d in A=4528.986\n", + "When m= 3\n", + "d in A=6340.580\n" + ] + } + ], + "source": [ + "lamda=5000 #in A\n", + "n=1.38\n", + "for m in range(0,4):\n", + " print(\"When m=\",m)\n", + " d=((m+0.5)*lamda)/(2*n)\n", + " print(\"d in A=%.3f\"%d)" + ] + } + ], + "metadata": { + "anaconda-cloud": {}, + "kernelspec": { + "display_name": "Python 3", + "language": "python", + "name": "python3" + }, + "language_info": { + "codemirror_mode": { + "name": "ipython", + "version": 3 + }, + "file_extension": ".py", + "mimetype": "text/x-python", + "name": "python", + "nbconvert_exporter": "python", + "pygments_lexer": "ipython3", + "version": "3.5.1" + }, + "widgets": { + "state": {}, + "version": "1.1.2" + } + }, + "nbformat": 4, + "nbformat_minor": 0 +} diff --git a/Physics_For_Students_Of_Science_And_Engineering_Part_2_by_D_Halliday_and_R_Resnick/Chapter44.ipynb b/Physics_For_Students_Of_Science_And_Engineering_Part_2_by_D_Halliday_and_R_Resnick/Chapter44.ipynb new file mode 100755 index 00000000..22044c55 --- /dev/null +++ b/Physics_For_Students_Of_Science_And_Engineering_Part_2_by_D_Halliday_and_R_Resnick/Chapter44.ipynb @@ -0,0 +1,157 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Chapter 44 DIFFRACTION" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Example 44.1 Calculation of wavelength" + ] + }, + { + "cell_type": "code", + "execution_count": 1, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "a in A=13000\n" + ] + } + ], + "source": [ + "import math\n", + "m=1\n", + "lamda=6500 #in A\n", + "a=(m*lamda)/math.sin(30*math.pi/180)\n", + "print(\"a in A=%d\"%a)" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Example 44.2 Calculation of wavelength" + ] + }, + { + "cell_type": "code", + "execution_count": 2, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Wavelength in A = 4333.333\n" + ] + } + ], + "source": [ + "lamda=6500\n", + "lambda_1=lamda/1.5\n", + "print(\"Wavelength in A = %.3f\"%lambda_1)" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Example 44.5 Current" + ] + }, + { + "cell_type": "code", + "execution_count": 3, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Current in amp= 0.06990\n" + ] + } + ], + "source": [ + "import math\n", + "m_0=(4*math.pi*10**-7) #in weber\n", + "e_0=(8.9*10**-12)\n", + "R=5*10**-2 #meters\n", + "byd=10**12\n", + "i_d=(e_0*math.pi*R*R*byd)\n", + "print(\"Current in amp= %.5f\"%i_d)" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Example 44.7 Delta Y" + ] + }, + { + "cell_type": "code", + "execution_count": 4, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "(A) D in m= 0.00240\n" + ] + } + ], + "source": [ + "lamda=480*10**-9 #in m\n", + "d=0.10*10**-3 #in m\n", + "D=50*10**-2 #in m\n", + "a=0.02*10**-3\n", + "delta_y=(lamda*D)/d\n", + "print(\"(A) D in m= %.5f\"%delta_y)" + ] + } + ], + "metadata": { + "kernelspec": { + "display_name": "Python 3", + "language": "python", + "name": "python3" + }, + "language_info": { + "codemirror_mode": { + "name": "ipython", + "version": 3 + }, + "file_extension": ".py", + "mimetype": "text/x-python", + "name": "python", + "nbconvert_exporter": "python", + "pygments_lexer": "ipython3", + "version": "3.5.1" + }, + "widgets": { + "state": {}, + "version": "1.1.2" + } + }, + "nbformat": 4, + "nbformat_minor": 0 +} diff --git a/Physics_For_Students_Of_Science_And_Engineering_Part_2_by_D_Halliday_and_R_Resnick/Chapter45.ipynb b/Physics_For_Students_Of_Science_And_Engineering_Part_2_by_D_Halliday_and_R_Resnick/Chapter45.ipynb new file mode 100755 index 00000000..78856956 --- /dev/null +++ b/Physics_For_Students_Of_Science_And_Engineering_Part_2_by_D_Halliday_and_R_Resnick/Chapter45.ipynb @@ -0,0 +1,227 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Chapter 45 GRATING AND SPECTRA" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Example 45.1 Calculation of angle" + ] + }, + { + "cell_type": "code", + "execution_count": 1, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The first order diffraction pattern in degree= 7.249\n" + ] + } + ], + "source": [ + "from __future__ import division\n", + "import math\n", + "m=1\n", + "lamda=4000 #in A\n", + "d=31700 #in A\n", + "theta=math.degrees(math.asin((m*lamda)/d))\n", + "print(\"The first order diffraction pattern in degree= %.3f\"%theta)" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Example 45.2 Calculation of angle theta" + ] + }, + { + "cell_type": "code", + "execution_count": 2, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "(A) The first order diffraction pattern in degree= 13.408\n", + "(B) Angle of seperation in degree= 0.0002388\n" + ] + } + ], + "source": [ + "from __future__ import division\n", + "import math\n", + "m=1\n", + "lamda=5890 #in A\n", + "d=25400 #in A\n", + "theta=math.degrees(math.asin((m*lamda)/d))\n", + "print(\"(A) The first order diffraction pattern in degree= %.3f\"%theta)\n", + "del_lambda=5.9 #in A\n", + "delta_theta=(m*(del_lambda))/(d*(math.cos(theta*math.pi/180)))\n", + "print(\"(B) Angle of seperation in degree= %.7f\"%delta_theta)" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Example 45.3 Calculation of Sodium Doublet" + ] + }, + { + "cell_type": "code", + "execution_count": 3, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Resolving power= 998.305\n", + "Number of rulings needed is= 332.768\n" + ] + } + ], + "source": [ + "lamda=5890 #A\n", + "lamda_1=5895.9 #A\n", + "m=3\n", + "delta_lambda=(lamda_1-lamda) #in A\n", + "R=lamda/(delta_lambda)\n", + "print(\"Resolving power= %.3f\"%R)\n", + "N=(R/m)\n", + "print(\"Number of rulings needed is= %.3f\"%N)" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Example 45.4 Calculation of Dispersion" + ] + }, + { + "cell_type": "code", + "execution_count": 4, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The first order diffraction pattern in degree= 31.11244\n", + "(A) The dispersion in radian/A= 0.0001105\n", + "(B) Wave length difference in A= 0.13650\n" + ] + } + ], + "source": [ + "import math\n", + "m=3\n", + "m1=5\n", + "lamda=5460 #in A\n", + "d=31700 #in A\n", + "theta=math.degrees(math.asin((m*lamda)/d))\n", + "print(\"The first order diffraction pattern in degree= %.5f\"%theta)\n", + "D=m/(d*math.cos(theta*math.pi/180))\n", + "print(\"(A) The dispersion in radian/A= %.7f\"%D)\n", + "N=8000\n", + "lamda=5460\n", + "R=N*m1\n", + "delta_lambda=lamda/R\n", + "print(\"(B) Wave length difference in A= %.5f\"%delta_lambda)" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Example 45.5 Calculation of Angles" + ] + }, + { + "cell_type": "code", + "execution_count": 5, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Interplanar spacing d in A= 2.51781\n", + "Diffracted beam occurs when m=1,m=2 and m=3\n", + "When m1=1, Theta in degree= 12.61763\n", + "When m1=2, Theta in degree= 25.90544\n", + "When m1=3, Theta in degree= 40.94473\n" + ] + } + ], + "source": [ + "import math\n", + "a_o=5.63 #A\n", + "d=a_o/math.sqrt(5)\n", + "lamda=1.10 #in A\n", + "print(\"Interplanar spacing d in A= %.5f\"%d)\n", + "print(\"Diffracted beam occurs when m=1,m=2 and m=3\")\n", + "m1=1\n", + "x=(m1*lamda)/(2*d)\n", + "theta_1=math.degrees(math.asin(x))\n", + "print(\"When m1=1, Theta in degree= %.5f\"%theta_1)\n", + "m2=2\n", + "x=(m2*lamda)/(2*d)\n", + "theta_2=math.degrees(math.asin(x))\n", + "print('When m1=2, Theta in degree= %.5f'%theta_2)\n", + "m3=3\n", + "x=(m3*lamda)/(2*d)\n", + "theta_3=math.degrees(math.asin(x))\n", + "print('When m1=3, Theta in degree= %.5f'%theta_3)" + ] + } + ], + "metadata": { + "anaconda-cloud": {}, + "kernelspec": { + "display_name": "Python 3", + "language": "python", + "name": "python3" + }, + "language_info": { + "codemirror_mode": { + "name": "ipython", + "version": 3 + }, + "file_extension": ".py", + "mimetype": "text/x-python", + "name": "python", + "nbconvert_exporter": "python", + "pygments_lexer": "ipython3", + "version": "3.5.1" + }, + "widgets": { + "state": {}, + "version": "1.1.2" + } + }, + "nbformat": 4, + "nbformat_minor": 0 +} diff --git a/Physics_For_Students_Of_Science_And_Engineering_Part_2_by_D_Halliday_and_R_Resnick/Chapter46.ipynb b/Physics_For_Students_Of_Science_And_Engineering_Part_2_by_D_Halliday_and_R_Resnick/Chapter46.ipynb new file mode 100755 index 00000000..2071ec54 --- /dev/null +++ b/Physics_For_Students_Of_Science_And_Engineering_Part_2_by_D_Halliday_and_R_Resnick/Chapter46.ipynb @@ -0,0 +1,130 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Chapter 46 POLARIZATION" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Example 46.1 Calculation of theta" + ] + }, + { + "cell_type": "code", + "execution_count": 1, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Polarization angle theta= 135.0\n" + ] + } + ], + "source": [ + "import math\n", + "theta=math.degrees(math.acos(1/math.sqrt(2)))\n", + "theta=180-theta\n", + "print(\"Polarization angle theta=\",theta)" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Example 46.2 Angle of refraction" + ] + }, + { + "cell_type": "code", + "execution_count": 2, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Theta_p in degrees=56.30993\n", + "Angle of refraction fron Snells law in degrees=33.69007\n" + ] + } + ], + "source": [ + "import math\n", + "theta_p= math.degrees(math.atan(1.5))\n", + "print(\"Theta_p in degrees=%.5f\"%theta_p)\n", + "sin_theta_r= (math.sin(theta_p*math.pi/180))/1.5\n", + "theta_r=math.degrees(math.asin(sin_theta_r))\n", + "print(\"Angle of refraction fron Snells law in degrees=%.5f\"%theta_r)" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Example 46.3 Thickness of slab" + ] + }, + { + "cell_type": "code", + "execution_count": 3, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The Value of x in m= 163611.111111113\n" + ] + } + ], + "source": [ + "lamda=5890 #A\n", + "n_e=1.553\n", + "n_o=1.544\n", + "s=(n_e)-(n_o)\n", + "x=(lamda)/(4*s)\n", + "\n", + "print(\"The Value of x in m=\",x)\n", + "#The answer provided in the textbook is wrong" + ] + } + ], + "metadata": { + "kernelspec": { + "display_name": "Python 3", + "language": "python", + "name": "python3" + }, + "language_info": { + "codemirror_mode": { + "name": "ipython", + "version": 3 + }, + "file_extension": ".py", + "mimetype": "text/x-python", + "name": "python", + "nbconvert_exporter": "python", + "pygments_lexer": "ipython3", + "version": "3.5.1" + }, + "widgets": { + "state": {}, + "version": "1.1.2" + } + }, + "nbformat": 4, + "nbformat_minor": 0 +} diff --git a/Physics_For_Students_Of_Science_And_Engineering_Part_2_by_D_Halliday_and_R_Resnick/Chapter47.ipynb b/Physics_For_Students_Of_Science_And_Engineering_Part_2_by_D_Halliday_and_R_Resnick/Chapter47.ipynb new file mode 100755 index 00000000..f35669ae --- /dev/null +++ b/Physics_For_Students_Of_Science_And_Engineering_Part_2_by_D_Halliday_and_R_Resnick/Chapter47.ipynb @@ -0,0 +1,157 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Chapter 47 LIGHT AND QUANTUM PHYSICS" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Example 47.1 Velocity" + ] + }, + { + "cell_type": "code", + "execution_count": 1, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Velocity in cycles/s 0.71176\n" + ] + } + ], + "source": [ + "import math\n", + "k=20 #in nt/m\n", + "m=1 #in kg\n", + "\n", + "v=(math.sqrt((k)/(m)))*(1/(2*math.pi))\n", + "print(\"Velocity in cycles/s %.5f\"%v)" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Example 47.2 Time calculation" + ] + }, + { + "cell_type": "code", + "execution_count": 2, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Power in j-sec 1.000000e-23\n", + "('Time reqired in sec =', 80000.0)\n", + "Time required in hour 22.22224\n" + ] + } + ], + "source": [ + "P=(10**(-3))*(3*10**(-18))/(300)\n", + "print(\"Power in j-sec %e\"%P)\n", + "s=1.6*(10**(-19))\n", + "t=(5*s)/P\n", + "print(\"Time reqired in sec =\",t)\n", + "one_sec=0.000277778 #hr\n", + "in_hour=one_sec*t\n", + "print(\"Time required in hour %.5f\"%in_hour)" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Example 47.3 Work function for sodium" + ] + }, + { + "cell_type": "code", + "execution_count": 3, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Energy in joule= 2.911e-19\n" + ] + } + ], + "source": [ + "h=6.63*10**(-34) #in joule/sec\n", + "v=4.39*10**(14) #cycles/sec\n", + "E_o=h*(v)\n", + "print(\"Energy in joule= %.3e\"%E_o)" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Example 47.4 Kinetic energy to be imparten on recoiling electron" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], + "source": [ + "h=(6.63)*10**-34\n", + "m=9.11*10**-31\n", + "c=3*10**8\n", + "delta_h=(h/(m*c))*(1-math.cos(90))\n", + "print(\"(A) Compton shift in meter %.3e\",delta_h)\n", + "delta=1*10**-10\n", + "k=(h*c*delta_h)/(delta*(delta+delta_h))\n", + "print(\"(B) Kinetic energy in joules\",k)" + ] + } + ], + "metadata": { + "anaconda-cloud": {}, + "kernelspec": { + "display_name": "Python 3", + "language": "python", + "name": "python3" + }, + "language_info": { + "codemirror_mode": { + "name": "ipython", + "version": 3 + }, + "file_extension": ".py", + "mimetype": "text/x-python", + "name": "python", + "nbconvert_exporter": "python", + "pygments_lexer": "ipython3", + "version": "3.5.1" + }, + "widgets": { + "state": {}, + "version": "1.1.2" + } + }, + "nbformat": 4, + "nbformat_minor": 0 +} diff --git a/Physics_For_Students_Of_Science_And_Engineering_Part_2_by_D_Halliday_and_R_Resnick/Chapter48.ipynb b/Physics_For_Students_Of_Science_And_Engineering_Part_2_by_D_Halliday_and_R_Resnick/Chapter48.ipynb new file mode 100755 index 00000000..c5e90763 --- /dev/null +++ b/Physics_For_Students_Of_Science_And_Engineering_Part_2_by_D_Halliday_and_R_Resnick/Chapter48.ipynb @@ -0,0 +1,205 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Chapter 48 WAVES AND PROPOGATION" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Example 48.1 Velocity and Wavelength of particle" + ] + }, + { + "cell_type": "code", + "execution_count": 1, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Velocity in m/s 5929994.5\n", + "Wavelength in A 1.222\n" + ] + } + ], + "source": [ + "import math\n", + "k=100*(1.6*(10**-19))\n", + "m=9.1*(10**-31)\n", + "\n", + "v=math.sqrt(((2*k)/(m)))\n", + "print(\"Velocity in m/s %.1f\"%v)\n", + "h=6.6*(10**-34)\n", + "p=5.4*(10**-34)\n", + "lamda=h/p\n", + "print(\"Wavelength in A %.3f\"%lamda)" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Example 48.2 Quantized energy" + ] + }, + { + "cell_type": "code", + "execution_count": 2, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Energy in Joule= 5.984e-20\n" + ] + } + ], + "source": [ + "n=1\n", + "h=(6.6)*10**-34 #j/sec\n", + "m=9.1*(10**-31) #in kg\n", + "l=1*(10**-9) #in m\n", + "E=(n**2)*((h**2)/(8*m*(l**2)))\n", + "print(\"Energy in Joule= %.3e\"%E)" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Example 48.3 Quantum number" + ] + }, + { + "cell_type": "code", + "execution_count": 3, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Energy in joule= 5.000e-22\n", + "Quantum number= 3.030e+14\n" + ] + } + ], + "source": [ + "m=10**-9 #in kg\n", + "v=10**-6 #in m/s\n", + "l=10**-4 #in m\n", + "h=(6.6)*(10**-34) #j/s\n", + "E=(0.5)*m*(v**2)\n", + "print(\"Energy in joule= %.3e\"%E)\n", + "n=(l/h)*(math.sqrt(8*m*E))\n", + "print(\"Quantum number= %.3e\"%n)" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Example 48.5 Position of electron" + ] + }, + { + "cell_type": "code", + "execution_count": 4, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The electrom momentum in kg-m/s= 2.730e-28\n", + "Delta_p in kg-m/s= 2.730e-32\n", + "Minimum uncertainaity in m= 0.02418\n" + ] + } + ], + "source": [ + "m=9.1*(10**-31) #in kg\n", + "v=300 #in m/s\n", + "h=6.6*(10**-34) #in j-s\n", + "p=m*v\n", + "print(\"The electrom momentum in kg-m/s= %.3e\"%p)\n", + "delta_p=(0.0001)*p\n", + "print(\"Delta_p in kg-m/s= %.3e\"%delta_p)\n", + "delta_x=(h/delta_p)\n", + "print(\"Minimum uncertainaity in m= %.5f\"%delta_x)" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Example 48.6 Position of electron" + ] + }, + { + "cell_type": "code", + "execution_count": 5, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Momentum in kg-m/s= 15.0\n", + "Delta_x in meter= 4.400e-35\n" + ] + } + ], + "source": [ + "m=0.05 #in kg\n", + "v=300 #m/s\n", + "delta_p=m*v\n", + "print(\"Momentum in kg-m/s=\",delta_p)\n", + "delta_x=(6.6*10**-34)/delta_p\n", + "print(\"Delta_x in meter= %.3e\"%delta_x)" + ] + } + ], + "metadata": { + "kernelspec": { + "display_name": "Python 3", + "language": "python", + "name": "python3" + }, + "language_info": { + "codemirror_mode": { + "name": "ipython", + "version": 3 + }, + "file_extension": ".py", + "mimetype": "text/x-python", + "name": "python", + "nbconvert_exporter": "python", + "pygments_lexer": "ipython3", + "version": "3.5.1" + }, + "widgets": { + "state": {}, + "version": "1.1.2" + } + }, + "nbformat": 4, + "nbformat_minor": 0 +} diff --git a/Physics_For_Students_Of_Science_And_Engineering_Part_2_by_D_Halliday_and_R_Resnick/screenshots/Chapter_37.png b/Physics_For_Students_Of_Science_And_Engineering_Part_2_by_D_Halliday_and_R_Resnick/screenshots/Chapter_37.png new file mode 100755 index 00000000..727bff87 Binary files /dev/null and b/Physics_For_Students_Of_Science_And_Engineering_Part_2_by_D_Halliday_and_R_Resnick/screenshots/Chapter_37.png differ diff --git a/Physics_For_Students_Of_Science_And_Engineering_Part_2_by_D_Halliday_and_R_Resnick/screenshots/Chapter_38.png b/Physics_For_Students_Of_Science_And_Engineering_Part_2_by_D_Halliday_and_R_Resnick/screenshots/Chapter_38.png new file mode 100755 index 00000000..1ae30dfa Binary files /dev/null and b/Physics_For_Students_Of_Science_And_Engineering_Part_2_by_D_Halliday_and_R_Resnick/screenshots/Chapter_38.png differ diff --git a/Physics_For_Students_Of_Science_And_Engineering_Part_2_by_D_Halliday_and_R_Resnick/screenshots/Chapter_39.png b/Physics_For_Students_Of_Science_And_Engineering_Part_2_by_D_Halliday_and_R_Resnick/screenshots/Chapter_39.png new file mode 100755 index 00000000..e972670a Binary files /dev/null and b/Physics_For_Students_Of_Science_And_Engineering_Part_2_by_D_Halliday_and_R_Resnick/screenshots/Chapter_39.png differ diff --git a/Thermodynamics_by_Gaggioli_and_Obert/README.txt b/Thermodynamics_by_Gaggioli_and_Obert/README.txt new file mode 100644 index 00000000..567a8a47 --- /dev/null +++ b/Thermodynamics_by_Gaggioli_and_Obert/README.txt @@ -0,0 +1,10 @@ +Contributed By: karan singh +Course: btech +College/Institute/Organization: Uttarakhand Technical University +Department/Designation: EEE +Book Title: Thermodynamics +Author: Gaggioli and Obert +Publisher: Tata McGraw-Hill, New Delhi +Year of publication: 1987 +Isbn: 9780070475960 +Edition: 3 \ No newline at end of file -- cgit