diff options
Diffstat (limited to '2438')
-rwxr-xr-x | 2438/CH1/EX1.13/Ex1_13.sce | 46 | ||||
-rwxr-xr-x | 2438/CH6/EX6.20/Ex6_20.sce | 90 |
2 files changed, 43 insertions, 93 deletions
diff --git a/2438/CH1/EX1.13/Ex1_13.sce b/2438/CH1/EX1.13/Ex1_13.sce index 8125e5247..4f1fc7232 100755 --- a/2438/CH1/EX1.13/Ex1_13.sce +++ b/2438/CH1/EX1.13/Ex1_13.sce @@ -1,23 +1,23 @@ -//======================================================================
-// chapter 1 example 13
-
-clc;
-clear;
-
-
-//input data
- lamda = 2; //wavelength in angstroms
- theta1 = 60; //angle in degrees
- n = 1;
-
-//formula
-//2*d*sin(theta)=n*lamda;
-
-//calculation
- d = (n*lamda)/(2*sin(theta1*%pi/180));
-
-//result
-
-mprintf('lattice constant=%3.4f Å\n',d);
-mprint('Note:calulation mistake in textbook)
-//======================================================================
+//====================================================================== +// chapter 1 example 13 + +clc; +clear; + + +//input data + lamda = 2; //wavelength in angstroms + theta1 = 60; //angle in degrees + n = 1; + +//formula +//2*d*sin(theta)=n*lamda; + +//calculation + d = (n*lamda)/(2*sin(theta1*%pi/180)); + +//result + +mprintf('lattice constant=%3.4f Å\n',d); +mprintf('Note: calculation mistake in textbook') +//======================================================================
\ No newline at end of file diff --git a/2438/CH6/EX6.20/Ex6_20.sce b/2438/CH6/EX6.20/Ex6_20.sce index 3768f1ed4..b430f3122 100755 --- a/2438/CH6/EX6.20/Ex6_20.sce +++ b/2438/CH6/EX6.20/Ex6_20.sce @@ -1,70 +1,20 @@ -// chapter 6 example 2o
-
-clc;
-clear;
-
-
-//input data
- n = 3.0*10^28; //number of electrons per m^3
- t = 3*10^-14; //time in s
- m = 9.1*10^-31; //mass of electron in kg
- L = 2.44*10^-8; //lorentz number in ohm W/K^2
- T = 330; //temperature in kelvin
- e = 1.6*10^-19; //charge of electron
-
-
-//calculation
- sigma = n*e^2*t/m; //electrical conductivity in (ohm-m)^-1
-
-//result
- mprintf('electrial conductivity=%3.2e.(ohm-m)^-1\n',sigma);
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-810
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-622
+// chapter 6 example 2o + +clc; +clear; + + +//input data + n = 3.0*10^28; //number of electrons per m^3 + t = 3*10^-14; //time in s + m = 9.1*10^-31; //mass of electron in kg + L = 2.44*10^-8; //lorentz number in ohm W/K^2 + T = 330; //temperature in kelvin + e = 1.6*10^-19; //charge of electron + + +//calculation + sigma = n*e^2*t/m; //electrical conductivity in (ohm-m)^-1 + +//result + mprintf('electrial conductivity=%3.2e.(ohm-m)^-1\n',sigma);
\ No newline at end of file |