summaryrefslogtreecommitdiff
path: root/1847/CH1/EX1.18/Ch01Ex18.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /1847/CH1/EX1.18/Ch01Ex18.sce
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 '1847/CH1/EX1.18/Ch01Ex18.sce')
-rwxr-xr-x1847/CH1/EX1.18/Ch01Ex18.sce10
1 files changed, 10 insertions, 0 deletions
diff --git a/1847/CH1/EX1.18/Ch01Ex18.sce b/1847/CH1/EX1.18/Ch01Ex18.sce
new file mode 100755
index 000000000..8f96c0ddb
--- /dev/null
+++ b/1847/CH1/EX1.18/Ch01Ex18.sce
@@ -0,0 +1,10 @@
+// Scilab Code Ex1.18: Page-1.19 (2009)
+clc; clear;
+m = 9.1e-031; // Mass of the electron, kg
+Ek = 1.27e-017; // Kinetic energy of electron, J
+h = 6.6e-034; // Planck's constant
+lambda = h/sqrt(2*m*Ek); // de-Broglie wavelength of electron, m
+printf("\nThe wavelength associated with moving electron = %4.2f angstrom", lambda/1e-010);
+
+// Result
+// The wavelength associated with moving electron = 1.37 angstrom