summaryrefslogtreecommitdiff
path: root/Unified_Physics_by_S.L._Gupta,_Sanjeev_Gupta/Chapter1.ipynb
diff options
context:
space:
mode:
authorTrupti Kini2016-09-26 23:32:22 +0600
committerTrupti Kini2016-09-26 23:32:22 +0600
commit39c9bc3ad786fc6057e0011070ee2afd6f16c1c5 (patch)
tree9e24127eeb164639e8134129acea4fdac77e7f75 /Unified_Physics_by_S.L._Gupta,_Sanjeev_Gupta/Chapter1.ipynb
parentc0bcf4055a0cfaae9b91349b7fe5f3e7e96ca87d (diff)
downloadPython-Textbook-Companions-39c9bc3ad786fc6057e0011070ee2afd6f16c1c5.tar.gz
Python-Textbook-Companions-39c9bc3ad786fc6057e0011070ee2afd6f16c1c5.tar.bz2
Python-Textbook-Companions-39c9bc3ad786fc6057e0011070ee2afd6f16c1c5.zip
Added(A)/Deleted(D) following books
M Basic_Electronics_Electronics_Engineering_by_J_B_Gupta/README.txt M Modern_Digital_And_Analog_Communication_System_by_B._P._Lathi/Chapter10_1.ipynb M Modern_Digital_And_Analog_Communication_System_by_B._P._Lathi/Chapter11_1.ipynb M Modern_Digital_And_Analog_Communication_System_by_B._P._Lathi/Chapter12_1.ipynb M Modern_Digital_And_Analog_Communication_System_by_B._P._Lathi/Chapter13_1.ipynb M Modern_Digital_And_Analog_Communication_System_by_B._P._Lathi/Chapter14_1.ipynb M Modern_Digital_And_Analog_Communication_System_by_B._P._Lathi/Chapter15_1.ipynb M Modern_Digital_And_Analog_Communication_System_by_B._P._Lathi/Chapter16_1.ipynb M Modern_Digital_And_Analog_Communication_System_by_B._P._Lathi/Chapter2_1.ipynb M Modern_Digital_And_Analog_Communication_System_by_B._P._Lathi/Chapter3_1.ipynb M Modern_Digital_And_Analog_Communication_System_by_B._P._Lathi/Chapter4_1.ipynb M Modern_Digital_And_Analog_Communication_System_by_B._P._Lathi/Chapter5_1.ipynb M Modern_Digital_And_Analog_Communication_System_by_B._P._Lathi/Chapter6_1.ipynb M Modern_Digital_And_Analog_Communication_System_by_B._P._Lathi/Chapter7_1.ipynb M Modern_Digital_And_Analog_Communication_System_by_B._P._Lathi/Chapter8_1.ipynb M Modern_Digital_And_Analog_Communication_System_by_B._P._Lathi/screenshots/2correlationCoeff_1.png M Modern_Digital_And_Analog_Communication_System_by_B._P._Lathi/screenshots/2expansionofSignal_1.png M Modern_Digital_And_Analog_Communication_System_by_B._P._Lathi/screenshots/2timeInvertedsignal_1.png M Principle_of_Communication_Engineering_by_A._Singh_and_A._K._Chhabra/Chapter10_1.ipynb M Principle_of_Communication_Engineering_by_A._Singh_and_A._K._Chhabra/Chapter11_1.ipynb M Principle_of_Communication_Engineering_by_A._Singh_and_A._K._Chhabra/Chapter15_1.ipynb M Principle_of_Communication_Engineering_by_A._Singh_and_A._K._Chhabra/Chapter1_1.ipynb M Principle_of_Communication_Engineering_by_A._Singh_and_A._K._Chhabra/Chapter2_1.ipynb M Principle_of_Communication_Engineering_by_A._Singh_and_A._K._Chhabra/Chapter3_1.ipynb M Principle_of_Communication_Engineering_by_A._Singh_and_A._K._Chhabra/Chapter5_1.ipynb M Principle_of_Communication_Engineering_by_A._Singh_and_A._K._Chhabra/Chapter6_1.ipynb M Principle_of_Communication_Engineering_by_A._Singh_and_A._K._Chhabra/Chapter7_1.ipynb M Principle_of_Communication_Engineering_by_A._Singh_and_A._K._Chhabra/Chapter8_1.ipynb M Principle_of_Communication_Engineering_by_A._Singh_and_A._K._Chhabra/Chapter9_1.ipynb M Principle_of_Communication_Engineering_by_A._Singh_and_A._K._Chhabra/screenshots/ctftch1.png M Principle_of_Communication_Engineering_by_A._Singh_and_A._K._Chhabra/screenshots/fourierTransch1.png M Principle_of_Communication_Engineering_by_A._Singh_and_A._K._Chhabra/screenshots/modulatedWaveChap3_1.png M Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/README.txt M Solid_State_Electronic_Devices_by_D.K_Bhattacharya_,_Rajnish_Sharma/Chapter10_1.ipynb M Solid_State_Electronic_Devices_by_D.K_Bhattacharya_,_Rajnish_Sharma/Chapter11_1.ipynb M Solid_State_Electronic_Devices_by_D.K_Bhattacharya_,_Rajnish_Sharma/Chapter12_1.ipynb M Solid_State_Electronic_Devices_by_D.K_Bhattacharya_,_Rajnish_Sharma/Chapter1_1.ipynb M Solid_State_Electronic_Devices_by_D.K_Bhattacharya_,_Rajnish_Sharma/Chapter2_1.ipynb M Solid_State_Electronic_Devices_by_D.K_Bhattacharya_,_Rajnish_Sharma/Chapter3_1.ipynb M Solid_State_Electronic_Devices_by_D.K_Bhattacharya_,_Rajnish_Sharma/Chapter4_1.ipynb M Solid_State_Electronic_Devices_by_D.K_Bhattacharya_,_Rajnish_Sharma/Chapter5_1.ipynb M Solid_State_Electronic_Devices_by_D.K_Bhattacharya_,_Rajnish_Sharma/Chapter6_1.ipynb M Solid_State_Electronic_Devices_by_D.K_Bhattacharya_,_Rajnish_Sharma/Chapter7_1.ipynb M Solid_State_Electronic_Devices_by_D.K_Bhattacharya_,_Rajnish_Sharma/Chapter8_1.ipynb M Solid_State_Electronic_Devices_by_D.K_Bhattacharya_,_Rajnish_Sharma/Chapter9_1.ipynb M Solid_State_Electronic_Devices_by_D.K_Bhattacharya_,_Rajnish_Sharma/chapter13_1.ipynb M Solid_State_Electronic_Devices_by_D.K_Bhattacharya_,_Rajnish_Sharma/chapter14_1.ipynb M Solid_State_Electronic_Devices_by_D.K_Bhattacharya_,_Rajnish_Sharma/screenshots/Chapter10.png M Solid_State_Electronic_Devices_by_D.K_Bhattacharya_,_Rajnish_Sharma/screenshots/Chapter1_1.png M Solid_State_Electronic_Devices_by_D.K_Bhattacharya_,_Rajnish_Sharma/screenshots/Chapter5.png M Solutions_to_Problems_in_Applied_Mechanics_by_A._N._Gobby/README.txt M Theory_of_Alternating_Current_Machinery_by_A._S._Langsdorf/README.txt M Thermodynamics_by_Gaggioli_and_Obert/Ch18.ipynb M Thermodynamics_by_Gaggioli_and_Obert/Ch8.ipynb M Thermodynamics_by_Gaggioli_and_Obert/ch1.ipynb M Thermodynamics_by_Gaggioli_and_Obert/ch10.ipynb M Thermodynamics_by_Gaggioli_and_Obert/ch11.ipynb M Thermodynamics_by_Gaggioli_and_Obert/ch12.ipynb M Thermodynamics_by_Gaggioli_and_Obert/ch13.ipynb M Thermodynamics_by_Gaggioli_and_Obert/ch14.ipynb M Thermodynamics_by_Gaggioli_and_Obert/ch15.ipynb M Thermodynamics_by_Gaggioli_and_Obert/ch16.ipynb M Thermodynamics_by_Gaggioli_and_Obert/ch17.ipynb M Thermodynamics_by_Gaggioli_and_Obert/ch2.ipynb M Thermodynamics_by_Gaggioli_and_Obert/ch3.ipynb M Thermodynamics_by_Gaggioli_and_Obert/ch5.ipynb M Thermodynamics_by_Gaggioli_and_Obert/ch7.ipynb M Thermodynamics_by_Gaggioli_and_Obert/ch9.ipynb M Thermodynamics_by_Gaggioli_and_Obert/screenshots/changeInMoisture14.png M Thermodynamics_by_Gaggioli_and_Obert/screenshots/degreeOfSaturation14.png M Thermodynamics_by_Gaggioli_and_Obert/screenshots/humidityratio14.png A Unified_Physics_by_S.L._Gupta,_Sanjeev_Gupta/Chapter1.ipynb A Unified_Physics_by_S.L._Gupta,_Sanjeev_Gupta/Chapter10.ipynb A Unified_Physics_by_S.L._Gupta,_Sanjeev_Gupta/Chapter11.ipynb A Unified_Physics_by_S.L._Gupta,_Sanjeev_Gupta/Chapter12.ipynb A Unified_Physics_by_S.L._Gupta,_Sanjeev_Gupta/Chapter14.ipynb A Unified_Physics_by_S.L._Gupta,_Sanjeev_Gupta/Chapter15.ipynb A Unified_Physics_by_S.L._Gupta,_Sanjeev_Gupta/Chapter16.ipynb A Unified_Physics_by_S.L._Gupta,_Sanjeev_Gupta/Chapter2.ipynb A Unified_Physics_by_S.L._Gupta,_Sanjeev_Gupta/Chapter3.ipynb A Unified_Physics_by_S.L._Gupta,_Sanjeev_Gupta/Chapter4.ipynb A Unified_Physics_by_S.L._Gupta,_Sanjeev_Gupta/Chapter5.ipynb A Unified_Physics_by_S.L._Gupta,_Sanjeev_Gupta/Chapter6.ipynb A Unified_Physics_by_S.L._Gupta,_Sanjeev_Gupta/Chapter7.ipynb A Unified_Physics_by_S.L._Gupta,_Sanjeev_Gupta/Chapter9.ipynb A Unified_Physics_by_S.L._Gupta,_Sanjeev_Gupta/screenshots/1.png A Unified_Physics_by_S.L._Gupta,_Sanjeev_Gupta/screenshots/2.png A Unified_Physics_by_S.L._Gupta,_Sanjeev_Gupta/screenshots/3.png M f_by_134/1_An_overview_of_C++.ipynb A f_by_134/1_An_overview_of_C++_1.ipynb A f_by_134/screenshots/anshul.png A f_by_134/screenshots/anshul_1.png A f_by_134/screenshots/anshul_2.png M f_by_134/screenshots/chapter14_eg3.png M f_by_134/screenshots/chapter14_eg6.png M f_by_134/screenshots/chapter14_eg6_1.png M f_by_df/ashvani.ipynb M f_by_df/chapter03_16.ipynb M f_by_df/chapter03_16_1.ipynb M f_by_df/screenshots/1.png M f_by_df/screenshots/2.png M f_by_df/screenshots/3.png M f_by_df/screenshots/chapter14_eg10.png M f_by_df/screenshots/chapter14_eg3.png M f_by_df/screenshots/chapter14_eg6.png M f_by_df/screenshots/image.png M f_by_df/screenshots/image_1.png M f_by_df/screenshots/image_2.png M sample_notebooks/AditiMalik/Chapter6.ipynb M sample_notebooks/IshitaGupta/Chapter12.ipynb M sample_notebooks/MeenaChandrupatla/Chapter2_Gases_2.ipynb M sample_notebooks/RONAKBANSAL/chapter_1.ipynb M sample_notebooks/SufiyanSiddique/Chapter2.ipynb M sample_notebooks/asmitaasmita/1_An_overview_of_C++.ipynb M sample_notebooks/asmitaasmita/1_An_overview_of_C++_1.ipynb A sample_notebooks/asmitaasmita/1_An_overview_of_C++_2.ipynb M sample_notebooks/chayas/DimensionsSystemUnits.ipynb
Diffstat (limited to 'Unified_Physics_by_S.L._Gupta,_Sanjeev_Gupta/Chapter1.ipynb')
-rw-r--r--Unified_Physics_by_S.L._Gupta,_Sanjeev_Gupta/Chapter1.ipynb244
1 files changed, 244 insertions, 0 deletions
diff --git a/Unified_Physics_by_S.L._Gupta,_Sanjeev_Gupta/Chapter1.ipynb b/Unified_Physics_by_S.L._Gupta,_Sanjeev_Gupta/Chapter1.ipynb
new file mode 100644
index 00000000..5f994464
--- /dev/null
+++ b/Unified_Physics_by_S.L._Gupta,_Sanjeev_Gupta/Chapter1.ipynb
@@ -0,0 +1,244 @@
+{
+ "cells": [
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "# 1: Atomic Spectra"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## Example number 1, Page number 42"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 5,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "wavelength separation is 0.168 angstrom\n",
+ "answer in the book is wrong\n"
+ ]
+ }
+ ],
+ "source": [
+ "#importing modules\n",
+ "import math\n",
+ "from __future__ import division\n",
+ "\n",
+ "#Variable declaration \n",
+ "e=1.6*10**-19; #charge(coulomb)\n",
+ "B=1; #flux density(Wb/m**2)\n",
+ "lamda=6000*10**-10; #wavelength(m)\n",
+ "m0=9.1*10**-31; #mass(kg)\n",
+ "c=3*10**8; #velocity of light(m/sec)\n",
+ "\n",
+ "#Calculations\n",
+ "d_lamda=B*e*(lamda**2)/(4*math.pi*m0*c); #wavelength separation(m)\n",
+ "d_lamda=d_lamda*10**10; #wavelength separation(angstrom)\n",
+ "\n",
+ "#Result\n",
+ "print \"wavelength separation is\",round(d_lamda,3),\"angstrom\"\n",
+ "print \"answer in the book is wrong\""
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {
+ "collapsed": true
+ },
+ "source": [
+ "## Example number 2, Page number 42"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 11,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "magnetic field is 5.89 *10**-2 tesla\n"
+ ]
+ }
+ ],
+ "source": [
+ "#importing modules\n",
+ "import math\n",
+ "from __future__ import division\n",
+ "\n",
+ "#Variable declaration \n",
+ "h=6.6*10**-34; #planck's constant\n",
+ "delta_v=8.3*10**8; #frequency separation(Hz)\n",
+ "mewB=9.3*10**-24; #magnetic moment\n",
+ "\n",
+ "#Calculations\n",
+ "B=h*delta_v/mewB; #magnetic field(tesla)\n",
+ "\n",
+ "#Result\n",
+ "print \"magnetic field is\",round(B*10**2,2),\"*10**-2 tesla\""
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## Example number 3, Page number 42"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 14,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "ratio of charge to mass of electron is 1.753 *10**11 coulomb/kg\n",
+ "answer in the book varies due to rounding off errors\n"
+ ]
+ }
+ ],
+ "source": [
+ "#importing modules\n",
+ "import math\n",
+ "from __future__ import division\n",
+ "\n",
+ "#Variable declaration \n",
+ "dv=120*10**6; #frequency(Hz)\n",
+ "B=8.6*10**-3; #flux density(T)\n",
+ "\n",
+ "#Calculations\n",
+ "r=4*math.pi*dv/B; #ratio of charge to mass of electron(coulomb/kg)\n",
+ "\n",
+ "#Result\n",
+ "print \"ratio of charge to mass of electron is\",round(r/10**11,3),\"*10**11 coulomb/kg\"\n",
+ "print \"answer in the book varies due to rounding off errors\""
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## Example number 4, Page number 42"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 18,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "the three wavelengths are 4226.4 angstrom 4226.73 angstrom 4227.06 angstrom\n",
+ "answers for wavelengths given in the book are wrong\n"
+ ]
+ }
+ ],
+ "source": [
+ "#importing modules\n",
+ "import math\n",
+ "from __future__ import division\n",
+ "\n",
+ "#Variable declaration \n",
+ "e=1.6*10**-19; #charge(coulomb)\n",
+ "B=4; #flux density(Wb/m**2)\n",
+ "lamda=4226.73*10**-10; #wavelength(m)\n",
+ "m0=9.1*10**-31; #mass(kg)\n",
+ "c=3*10**8; #velocity of light(m/sec)\n",
+ "\n",
+ "#Calculations\n",
+ "d_lamda=B*e*(lamda**2)/(4*math.pi*m0*c); #wavelength separation(m)\n",
+ "d_lamda=round(d_lamda*10**10,2); #wavelength separation(angstrom)\n",
+ "l1=(lamda*10**10)-d_lamda;\n",
+ "l2=lamda*10**10;\n",
+ "l3=(lamda*10**10)+d_lamda; #three wavelengths\n",
+ "\n",
+ "#Result\n",
+ "print \"the three wavelengths are\",l1,\"angstrom\",l2,\"angstrom\",l3,\"angstrom\"\n",
+ "print \"answers for wavelengths given in the book are wrong\""
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## Example number 5, Page number 43"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 21,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "ratio of charge to mass of electron is 1.75 *10**11 C/kg\n"
+ ]
+ }
+ ],
+ "source": [
+ "#importing modules\n",
+ "import math\n",
+ "from __future__ import division\n",
+ "\n",
+ "#Variable declaration \n",
+ "dlamda=0.0116*10**-9; #frequency(m)\n",
+ "B=1; #flux density(T)\n",
+ "lamda=500*10**-9; #wavelength(m)\n",
+ "c=3*10**8; #velocity of light(m/sec)\n",
+ "\n",
+ "#Calculations\n",
+ "r=4*math.pi*c*dlamda/(B*lamda**2); #ratio of charge to mass of electron(coulomb/kg)\n",
+ "\n",
+ "#Result\n",
+ "print \"ratio of charge to mass of electron is\",round(r/10**11,2),\"*10**11 C/kg\""
+ ]
+ }
+ ],
+ "metadata": {
+ "kernelspec": {
+ "display_name": "Python 2",
+ "language": "python",
+ "name": "python2"
+ },
+ "language_info": {
+ "codemirror_mode": {
+ "name": "ipython",
+ "version": 2
+ },
+ "file_extension": ".py",
+ "mimetype": "text/x-python",
+ "name": "python",
+ "nbconvert_exporter": "python",
+ "pygments_lexer": "ipython2",
+ "version": "2.7.11"
+ }
+ },
+ "nbformat": 4,
+ "nbformat_minor": 0
+}