diff options
author | priyanka | 2015-06-24 15:03:17 +0530 |
---|---|---|
committer | priyanka | 2015-06-24 15:03:17 +0530 |
commit | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch) | |
tree | ab291cffc65280e58ac82470ba63fbcca7805165 /2258/CH1 | |
download | Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2 Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip |
initial commit / add all books
Diffstat (limited to '2258/CH1')
-rwxr-xr-x | 2258/CH1/EX1.1/1_1.sce | 10 | ||||
-rwxr-xr-x | 2258/CH1/EX1.10/1_10.sce | 7 | ||||
-rwxr-xr-x | 2258/CH1/EX1.11/1_11.sce | 16 | ||||
-rwxr-xr-x | 2258/CH1/EX1.12/1_12.sce | 14 | ||||
-rwxr-xr-x | 2258/CH1/EX1.13/1_13.sce | 13 | ||||
-rwxr-xr-x | 2258/CH1/EX1.14/1_14.sce | 7 | ||||
-rwxr-xr-x | 2258/CH1/EX1.15/1_15.sce | 24 | ||||
-rwxr-xr-x | 2258/CH1/EX1.16/1_16.sce | 13 | ||||
-rwxr-xr-x | 2258/CH1/EX1.17/1_17.sce | 14 | ||||
-rwxr-xr-x | 2258/CH1/EX1.18/1_18.sce | 16 | ||||
-rwxr-xr-x | 2258/CH1/EX1.19/1_19.sce | 11 | ||||
-rwxr-xr-x | 2258/CH1/EX1.2/1_2.sce | 8 | ||||
-rwxr-xr-x | 2258/CH1/EX1.20/1_20.sce | 26 | ||||
-rwxr-xr-x | 2258/CH1/EX1.21/1_21.sce | 9 | ||||
-rwxr-xr-x | 2258/CH1/EX1.22/1_22.sce | 27 | ||||
-rwxr-xr-x | 2258/CH1/EX1.23/1_23.sce | 13 | ||||
-rwxr-xr-x | 2258/CH1/EX1.24/1_24.sce | 10 | ||||
-rwxr-xr-x | 2258/CH1/EX1.25/1_25.sce | 12 | ||||
-rwxr-xr-x | 2258/CH1/EX1.26/1_26.sce | 19 | ||||
-rwxr-xr-x | 2258/CH1/EX1.3/1_3.sce | 12 | ||||
-rwxr-xr-x | 2258/CH1/EX1.4/1_4.sce | 7 | ||||
-rwxr-xr-x | 2258/CH1/EX1.5/1_5.sce | 9 | ||||
-rwxr-xr-x | 2258/CH1/EX1.6/1_6.sce | 18 | ||||
-rwxr-xr-x | 2258/CH1/EX1.7/1_7.sce | 10 | ||||
-rwxr-xr-x | 2258/CH1/EX1.8/1_8.sce | 12 | ||||
-rwxr-xr-x | 2258/CH1/EX1.9/1_9.sce | 16 |
26 files changed, 353 insertions, 0 deletions
diff --git a/2258/CH1/EX1.1/1_1.sce b/2258/CH1/EX1.1/1_1.sce new file mode 100755 index 000000000..55062a169 --- /dev/null +++ b/2258/CH1/EX1.1/1_1.sce @@ -0,0 +1,10 @@ +clc();
+clear;
+// To calculate the de Broglie wavelength
+c=3*10^8; //velocity of light in m/s
+v=c/10; //velocity of proton in m/s
+m=1.67*10^(-27); //mass of proton in kg
+h=6.626*10^(-34);
+lamda=h/(m*v); //de Broglie wavelength
+printf("The de Broglie wavelength in metres is");
+disp(lamda);
diff --git a/2258/CH1/EX1.10/1_10.sce b/2258/CH1/EX1.10/1_10.sce new file mode 100755 index 000000000..ccc115b3c --- /dev/null +++ b/2258/CH1/EX1.10/1_10.sce @@ -0,0 +1,7 @@ +clc();
+clear;
+// To calculate the wavelength of an electron
+V=15; //potential in kV
+V=V*10^3; //potential in V
+lamda=12.26/sqrt(V); //de Broglie wavelength
+printf("The de Broglie wavelength is %f Armstrong",lamda);
diff --git a/2258/CH1/EX1.11/1_11.sce b/2258/CH1/EX1.11/1_11.sce new file mode 100755 index 000000000..672f1dce4 --- /dev/null +++ b/2258/CH1/EX1.11/1_11.sce @@ -0,0 +1,16 @@ +clc();
+clear;
+// To calculate the de Broglie wavelength of neutron
+m=1.675*10^(-27); //mass of neutron in kg
+h=6.626*10^(-34);
+E=10; //kinetic energy in keV
+EeV=E*10^3; //Energy in eV
+Ej=EeV*1.6*10^-19; //kinetic energy in J
+v=sqrt(2*Ej/m); //velocity in m/s
+printf("The velocity in m/sec is");
+disp(v);
+lamda=h/(m*v); //de broglie wavelength in m
+printf("The de Broglie wavelength in metres is");
+disp(lamda);
+lamda_A=lamda*10^10; //de broglie wavelength in armstrong
+printf("The de Broglie wavelength is %f Armstrong",lamda_A);
diff --git a/2258/CH1/EX1.12/1_12.sce b/2258/CH1/EX1.12/1_12.sce new file mode 100755 index 000000000..ca7cc3f95 --- /dev/null +++ b/2258/CH1/EX1.12/1_12.sce @@ -0,0 +1,14 @@ +clc();
+clear;
+// To calculate the de Broglie wavelength of electron
+m=9.1*10^-31; //mass of electron in kg
+h=6.6*10^(-34);
+E=2; //kinetic energy in keV
+EeV=E*10^3; //Energy in eV
+Ej=EeV*1.6*10^-19; //kinetic energy in J
+p=sqrt(2*m*Ej); //momentum
+lamda=h/p; //de broglie wavelength in m
+printf("The de Broglie wavelength in metres is");
+disp(lamda);
+lamda_A=lamda*10^10; //de broglie wavelength in armstrong
+printf("The de Broglie wavelength is %f Armstrong",lamda_A);
diff --git a/2258/CH1/EX1.13/1_13.sce b/2258/CH1/EX1.13/1_13.sce new file mode 100755 index 000000000..1236b90f6 --- /dev/null +++ b/2258/CH1/EX1.13/1_13.sce @@ -0,0 +1,13 @@ +clc();
+clear;
+// To calculate the wavelength of thermal neutron
+m=1.676*10^(-27); //mass of neutron in kg
+h=6.62*10^(-34);
+E=0.025; //kinetic energy in eV
+Ej=E*1.6*10^-19; //kinetic energy in J
+v=sqrt(2*Ej/m); //velocity in m/s
+lamda=h/(m*v); //wavelength in m
+printf("The neutrons wavelength in metres is");
+disp(lamda);
+lamda_A=lamda*10^10; //de broglie wavelength in armstrong
+printf("The wavelength is %f Armstrong",lamda_A);
diff --git a/2258/CH1/EX1.14/1_14.sce b/2258/CH1/EX1.14/1_14.sce new file mode 100755 index 000000000..6843936c9 --- /dev/null +++ b/2258/CH1/EX1.14/1_14.sce @@ -0,0 +1,7 @@ +clc();
+clear;
+// To calculate the wavelength of an electron
+V=10; //potential in kV
+V=V*10^3; //potential in V
+lamda=12.26/sqrt(V); //wavelength
+printf("The wavelength is %f Armstrong",lamda);
diff --git a/2258/CH1/EX1.15/1_15.sce b/2258/CH1/EX1.15/1_15.sce new file mode 100755 index 000000000..900ad61c3 --- /dev/null +++ b/2258/CH1/EX1.15/1_15.sce @@ -0,0 +1,24 @@ +clc();
+clear;
+// To calculate the first three permitted levels of electron
+h=6.626*10^(-34);
+m=9.1*10^-31; //mass in kg
+L=1; //width in armstrong
+L=L*10^-10; //width in m
+//permitted electron energies En=(n^2*h^2)/(8*m*L^2)
+//let X = h^2/(8*m*L^2)
+X = h^2/(8*m*L^2); //energy in J
+XeV=X/(1.6*10^-19); //energy in eV
+//in the 1st level n1=1
+n1=1;
+E1=(n1^2)*XeV; //energy in eV
+printf("minimum energy the electron can have is %f eV",E1);
+//in second level n2=2
+n2=2;
+E2=(n2^2)*XeV; //energy in eV
+//in third level n3=
+n3=3;
+E3=(n3^2)*XeV; //energy in eV
+printf("other values of energy are %f eV and %f eV",E2,E3);
+
+//answers given in the book are wrong
diff --git a/2258/CH1/EX1.16/1_16.sce b/2258/CH1/EX1.16/1_16.sce new file mode 100755 index 000000000..b12fc9eac --- /dev/null +++ b/2258/CH1/EX1.16/1_16.sce @@ -0,0 +1,13 @@ +clc();
+clear;
+// To calculate the probability of finding the particle
+n=1; //lowest state
+L=10; //width in armstrong
+L=L*10^-10; //width in m
+x=L/2;
+delta_x=1; //interval in armstrong
+delta_x=delta_x*10^-10; //interval in m
+psi1=(sqrt(2/L))*sin(%pi*x/L);
+A=psi1^2;
+P=A*delta_x;
+printf("probability of finding the particle is %f",P);
diff --git a/2258/CH1/EX1.17/1_17.sce b/2258/CH1/EX1.17/1_17.sce new file mode 100755 index 000000000..190372792 --- /dev/null +++ b/2258/CH1/EX1.17/1_17.sce @@ -0,0 +1,14 @@ +clc();
+clear;
+// To calculate the Fermi energy of the metal
+d=970; //density of Na in kg/m^3
+n=6.02*10^26;
+h=6.62*10^(-34);
+m=9.1*10^-31; //mass in kg
+w=23; //atomic weight
+N=(d*n)/w; //number of atoms per m^3
+A=(h^2)/(8*m);
+B=(3*N)/%pi;
+Ef=A*B^(2/3);
+EfeV=Ef/(1.6*10^-19);
+printf("fermi energy of Na is %f eV",EfeV);
diff --git a/2258/CH1/EX1.18/1_18.sce b/2258/CH1/EX1.18/1_18.sce new file mode 100755 index 000000000..16a230e5d --- /dev/null +++ b/2258/CH1/EX1.18/1_18.sce @@ -0,0 +1,16 @@ +clc();
+clear;
+// To calculate the lowest energy of electron
+n1=1;
+n2=1;
+n3=1; //values in lowest energy
+h=6.62*10^(-34);
+m=9.1*10^-31; //mass in kg
+L=0.1; //side in nm
+L=L*10^-9; //side in m
+n=(n1^2)+(n2^2)+(n3^2);
+E1=(n*h^2)/(8*m*L^2); //energy in j
+E1eV=E1/(1.6*10^-19); //energy in eV
+printf("lowest energy of electron in Joule is");
+disp(E1);
+printf("lowest energy of electron is %f eV",E1eV);
diff --git a/2258/CH1/EX1.19/1_19.sce b/2258/CH1/EX1.19/1_19.sce new file mode 100755 index 000000000..273f364a1 --- /dev/null +++ b/2258/CH1/EX1.19/1_19.sce @@ -0,0 +1,11 @@ +clc();
+clear;
+// To calculate the de broglie wavelength of neutron
+mn=1.676*10^-27; //mass of neutron in kg
+me=9.1*10^-31; //mass of electron in kg
+h=6.62*10^(-34);
+c=3*10^8; //velocity of light in m/sec
+En=2*me*c^2;
+lamda=h/sqrt(2*mn*En); //wavelength in m
+lamda_A=lamda*10^10; //converting lamda from m to A
+printf("The de broglie wavelength is %f Angstrom",lamda_A);
diff --git a/2258/CH1/EX1.2/1_2.sce b/2258/CH1/EX1.2/1_2.sce new file mode 100755 index 000000000..feec367e7 --- /dev/null +++ b/2258/CH1/EX1.2/1_2.sce @@ -0,0 +1,8 @@ +clc();
+clear;
+// To calculate the de Broglie wavelength of an electron
+V=400; //potential in Volts
+lamda=12.56/sqrt(V); //de Broglie wavelength
+printf("The de Broglie wavelength is %f Armstrong",lamda);
+
+//answer given in the book is wrong
diff --git a/2258/CH1/EX1.20/1_20.sce b/2258/CH1/EX1.20/1_20.sce new file mode 100755 index 000000000..678faefbf --- /dev/null +++ b/2258/CH1/EX1.20/1_20.sce @@ -0,0 +1,26 @@ +clc();
+clear;
+// To calculate the energies of electron
+n2=2; //second quantum state
+n4=4; //fourth quantum state
+h=6.626*10^-34;
+m=9.1*10^-31; //mass in kg
+a=2; //potential box length in armstrong
+a=a*10^-10; //length in m
+A=n2^2*h^2;
+B=8*m*a^2;
+E2=A/B; //energy in j
+E2eV=E2/(1.6*10^-19); //energy in eV
+C=n4^2*h^2;
+E4=C/B; //energy in j
+E4eV=E4/(1.6*10^-19); //energy in eV
+printf("energy corresponding to second quantum state in Joule is");
+disp(E2);
+printf("energy corresponding to second quantum state in eV is");
+disp(E2eV);
+printf("energy corresponding to fourth quantum state in Joule is");
+disp(E4);
+printf("energy corresponding to fourth quantum state in eV is");
+disp(E4eV);
+
+//answers given in the book are wrong
diff --git a/2258/CH1/EX1.21/1_21.sce b/2258/CH1/EX1.21/1_21.sce new file mode 100755 index 000000000..fe539cda3 --- /dev/null +++ b/2258/CH1/EX1.21/1_21.sce @@ -0,0 +1,9 @@ +clc();
+clear;
+// To calculate the spacing of the crystal
+V=344; //accelerated voltage in V
+n=1; //first reflection
+theta=60; //glancing angle in degrees
+lamda=12.27/sqrt(V);
+d=(n*lamda)/(2*sind(theta));
+printf("The spacing of the crystal is %f Angstrom",d);
diff --git a/2258/CH1/EX1.22/1_22.sce b/2258/CH1/EX1.22/1_22.sce new file mode 100755 index 000000000..d737e6a35 --- /dev/null +++ b/2258/CH1/EX1.22/1_22.sce @@ -0,0 +1,27 @@ +clc();
+clear;
+// To calculate the energies of electron
+n2=2; //second quantum state
+n3=3; //fourth quantum state
+h=6.626*10^-34;
+m=9.1*10^-31; //mass in kg
+a=1*10^-10; //width of potential well in m
+B=8*m*a^2;
+E1=h^2/B; //ground state energy
+E1eV=E1/(1.6*10^-19); //energy in eV
+A=n2^2*h^2;
+E2=A/B; //energy in j
+E2eV=E2/(1.6*10^-19); //energy in eV
+C=n3^2*h^2;
+E3=C/B; //energy in j
+E3eV=E3/(1.6*10^-19); //energy in eV
+printf("ground state energy in Joule is");
+disp(E1);
+printf("ground state energy in eV is");
+disp(E1eV);
+printf("first energy state in eV is");
+disp(E2eV);
+printf("second energy state in eV is");
+disp(E3eV);
+
+//answers given in the book are wrong by one decimal
diff --git a/2258/CH1/EX1.23/1_23.sce b/2258/CH1/EX1.23/1_23.sce new file mode 100755 index 000000000..488c066d1 --- /dev/null +++ b/2258/CH1/EX1.23/1_23.sce @@ -0,0 +1,13 @@ +clc();
+clear;
+// To calculate the energy required to jump an electron
+n3=3; //fourth quantum state
+h=6.626*10^-34;
+m=9.1*10^-31; //mass in kg
+//ground state energy E1 = h^2/(8*m*a^2)
+//second excited state E3 = (9*h^2)/(8*m*a^2)
+//required energy E = E3-E1
+//E = (9*h^2)/(8*m*a^2) - h^2/(8*m*a^2)
+//E = (h^2/(8*m*a^2))*(9-1)
+//therefore E = (8*h^2)/(8*m*a^2)
+//hence E = (h^2)/(m*a^2)
diff --git a/2258/CH1/EX1.24/1_24.sce b/2258/CH1/EX1.24/1_24.sce new file mode 100755 index 000000000..3e7b149bc --- /dev/null +++ b/2258/CH1/EX1.24/1_24.sce @@ -0,0 +1,10 @@ +clc();
+clear;
+// To calculate the minimum uncertainity in velocity
+delta_x=10^-8; //length of box in m
+h=6.626*10^-34;
+m=9.1*10^-31; //mass in kg
+delta_v=h/(m*delta_x); //uncertainity in m/sec
+delta_vk=delta_v*10^-3; //uncertainity in km/sec
+printf("minimum uncertainity in velocity is %f m/sec",delta_v);
+printf("minimum uncertainity in velocity is %f km/sec",delta_vk);
diff --git a/2258/CH1/EX1.25/1_25.sce b/2258/CH1/EX1.25/1_25.sce new file mode 100755 index 000000000..b3c41e65f --- /dev/null +++ b/2258/CH1/EX1.25/1_25.sce @@ -0,0 +1,12 @@ +clc();
+clear;
+// To calculate the de broglie wavelength of proton
+mp=1.6*10^-27; //mass of proton in kg
+me=9.1*10^-31; //mass of electron in kg
+h=6.626*10^(-34);
+c=3*10^10; //velocity of light in m/sec
+Ep=me*c^2;
+lamda=h/sqrt(2*mp*Ep); //wavelength in m
+lamda_A=lamda*10^10; //converting lamda from m to A
+printf("The de broglie wavelength in Angstrom is");
+disp(lamda_A);
diff --git a/2258/CH1/EX1.26/1_26.sce b/2258/CH1/EX1.26/1_26.sce new file mode 100755 index 000000000..ab975ced1 --- /dev/null +++ b/2258/CH1/EX1.26/1_26.sce @@ -0,0 +1,19 @@ +clc();
+clear;
+// To calculate the glancing angle
+m=1.675*10^(-27); //mass of neutron in kg
+h=6.626*10^(-34);
+n=1; //diffractive order
+d=0.314; //spacing in nm
+d=d*10^-9; //spacing in m
+E=0.04; //kinetic energy in eV
+Ej=E*1.6*10^-19; //kinetic energy in J
+lamda=h/sqrt(2*m*Ej); //de Broglie wavelength
+lamdaA=lamda*10^9; //converting wavelength from m to nm
+theta=asind((n*lamda)/(2*d));
+printf("The de Broglie wavelength in metres is");
+disp(lamda);
+printf("The de Broglie wavelength is %f nm",lamdaA);
+printf("glancing angle is %f degrees",theta);
+
+//answer given in the book is wrong
diff --git a/2258/CH1/EX1.3/1_3.sce b/2258/CH1/EX1.3/1_3.sce new file mode 100755 index 000000000..ebd5d71e5 --- /dev/null +++ b/2258/CH1/EX1.3/1_3.sce @@ -0,0 +1,12 @@ +clc();
+clear;
+// To calculate the de Broglie wavelength of neutron
+m=1.674*10^(-27); //mass of neutron in kg
+h=6.626*10^(-34);
+E=0.025; //kinetic energy in eV
+Ej=E*1.6*10^-19; //kinetic energy in J
+lamda=h/sqrt(2*m*Ej); //de Broglie wavelength
+printf("The de Broglie wavelength in metres is");
+disp(lamda);
+lamdaA=lamda*10^10; //converting wavelength from m to Armstrong
+printf("The de Broglie wavelength is %f Armstrong",lamdaA);
diff --git a/2258/CH1/EX1.4/1_4.sce b/2258/CH1/EX1.4/1_4.sce new file mode 100755 index 000000000..3a6b4deff --- /dev/null +++ b/2258/CH1/EX1.4/1_4.sce @@ -0,0 +1,7 @@ +
+clc();
+clear;
+// To calculate the wavelength of an electron
+V=1600; //potential in Volts
+lamda=12.26/sqrt(V); //de Broglie wavelength
+printf("The de Broglie wavelength is %3.1f Angstrom",lamda);
diff --git a/2258/CH1/EX1.5/1_5.sce b/2258/CH1/EX1.5/1_5.sce new file mode 100755 index 000000000..2ecd531b7 --- /dev/null +++ b/2258/CH1/EX1.5/1_5.sce @@ -0,0 +1,9 @@ +clc();
+clear;
+// To calculate the uncertainity in momentum
+deltax=0.2; //distance in armstrong
+delta_xm=deltax*10^-10; //distance in m
+h=6.626*10^(-34);
+delta_p=h/(2*%pi*delta_xm);
+printf("The uncertainity in momentum of electron in kg m/sec is");
+disp(delta_p);
diff --git a/2258/CH1/EX1.6/1_6.sce b/2258/CH1/EX1.6/1_6.sce new file mode 100755 index 000000000..fe0a774ed --- /dev/null +++ b/2258/CH1/EX1.6/1_6.sce @@ -0,0 +1,18 @@ +clc();
+clear;
+// To calculate the lowest energy of electron
+n1=1;
+n2=1;
+n3=1; //values in lowest energy
+h=6.62*10^(-34);
+M=9.1*10^-31; //mass in kg
+L=0.1; //side in nm
+L=L*10^-9; //side in m
+n=(n1^2)+(n2^2)+(n3^2);
+E1=(n*h^2)/(8*M*L^2); //energy in j
+E1eV=E1/(1.6*10^-19); //energy in eV
+printf("lowest energy of electron in Joule is");
+disp(E1);
+printf("lowest energy of electron is %f eV",E1eV);
+
+//answer for lowest energy in eV given in the book is wrong
diff --git a/2258/CH1/EX1.7/1_7.sce b/2258/CH1/EX1.7/1_7.sce new file mode 100755 index 000000000..0906354a9 --- /dev/null +++ b/2258/CH1/EX1.7/1_7.sce @@ -0,0 +1,10 @@ +clc();
+clear;
+// To calculate the wavelength associated with electron
+M=9.1*10^-31; //mass of electron in kg
+h=6.66*10^(-34);
+E=2000; //energy in eV
+Ej=E*1.6*10^-19; //energy in J
+lamda=h/sqrt(2*M*Ej); //wavelength in m
+lamda_nm=lamda*10^9; //converting lamda from m to nm
+printf("The wavelength associated with electron is %f nm",lamda_nm);
diff --git a/2258/CH1/EX1.8/1_8.sce b/2258/CH1/EX1.8/1_8.sce new file mode 100755 index 000000000..c8eacb32a --- /dev/null +++ b/2258/CH1/EX1.8/1_8.sce @@ -0,0 +1,12 @@ +clc();
+clear;
+// To calculate the minimum energy of electron
+n=1; //for minimum energy
+h=6.626*10^(-34);
+m=9.1*10^-31; //mass in kg
+L=4*10^-10; //size in m
+E1=(n*h^2)/(8*m*L^2); //energy in j
+printf("lowest energy of electron in Joule is");
+disp(E1);
+
+//answer given in the book is wrong
diff --git a/2258/CH1/EX1.9/1_9.sce b/2258/CH1/EX1.9/1_9.sce new file mode 100755 index 000000000..695437c56 --- /dev/null +++ b/2258/CH1/EX1.9/1_9.sce @@ -0,0 +1,16 @@ +clc();
+clear;
+// To calculate the velocity and kinetic energy of electron
+h=6.626*10^(-34);
+m=9.1*10^-31; //mass in kg
+lamda=1.66*10^-10; //wavelength in m
+v=h/(m*lamda); //velocity in m/sec
+printf("velocity of electron in m/sec is");
+disp(v);
+v_km=v*10^-3; //velocity in km/sec
+printf("velocity of electron is %f km/sec",v_km);
+E=(1/2)*m*v^2; //kinetic energy in joule
+EeV=E/(1.6*10^-19); //energy in eV
+printf("kinetic energy of electron in Joule is");
+disp(E);
+printf("kinetic energy of electron is %f eV",EeV);
|