summaryrefslogtreecommitdiff
path: root/1871/CH1/EX1.1
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /1871/CH1/EX1.1
downloadScilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip
initial commit / add all books
Diffstat (limited to '1871/CH1/EX1.1')
-rwxr-xr-x1871/CH1/EX1.1/Ch01Ex1.sce21
1 files changed, 21 insertions, 0 deletions
diff --git a/1871/CH1/EX1.1/Ch01Ex1.sce b/1871/CH1/EX1.1/Ch01Ex1.sce
new file mode 100755
index 000000000..6c96a7c46
--- /dev/null
+++ b/1871/CH1/EX1.1/Ch01Ex1.sce
@@ -0,0 +1,21 @@
+// Scilab code Ex1.1 : Pg:18 (2008)
+clc;clear;
+e = 1.6e-019; // Energy equivalent of 1 eV, J
+m = 0.05; // Mass of the golf ball, kg
+v = 20; // Velocity of golf ball, m/s
+h = 6.625e-034; // Planck's constant, joule-sec
+Lambda1 = h/(m*v); // de Broglie wavelength of a golf ball, m
+m = 1.67e-027; // mass of proton, kg
+v = 2200; // Velocity of proton, m/s
+Lambda2 = h/(m*v); // de Broglie wavelength of a proton, m
+E = 10*e; // Kinetic energy of an electron, eV
+m = 9.11e-031; // Mass of electron, kg
+Lambda3 = h/sqrt(2*m*E); // de Broglie wavelength of an electron, m
+printf("\nThe de-Broglie wavelength of a golf ball = %5.3e m", Lambda1);
+printf("\nThe de-Broglie wavelength of a proton = %4.2e m", Lambda2);
+printf("\nThe de-Broglie wavelength of a electron = %3.1f m", Lambda3/1e-010);
+
+// Result
+// The de-Broglie wavelength of a golf ball = 6.625e-034 m
+// The de-Broglie wavelength of a proton = 1.80e-010 m
+// The de-Broglie wavelength of a electron = 3.9 m \ No newline at end of file