summaryrefslogtreecommitdiff
path: root/1535/CH9/EX9.2/Ch09Ex2.sci
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /1535/CH9/EX9.2/Ch09Ex2.sci
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 '1535/CH9/EX9.2/Ch09Ex2.sci')
-rwxr-xr-x1535/CH9/EX9.2/Ch09Ex2.sci12
1 files changed, 12 insertions, 0 deletions
diff --git a/1535/CH9/EX9.2/Ch09Ex2.sci b/1535/CH9/EX9.2/Ch09Ex2.sci
new file mode 100755
index 000000000..97c5f5494
--- /dev/null
+++ b/1535/CH9/EX9.2/Ch09Ex2.sci
@@ -0,0 +1,12 @@
+// Scilab Code Ex9.2: De-broglie wavelength of an electron from kinetic energy : Page-203 (2010)
+e = 1.6e-019; // Energy equivalent of 1 eV, J/eV
+h = 6.626e-034; // Planck's constant, Js
+m = 9.1e-031; // Mass of the electron, kg
+Ek = 10; // Kinetic energy of electron, eV
+// Ek = p^2/(2*m), solving for p
+p = sqrt(2*m*Ek*e); // Momentum of the electron, kg-m/s
+lambda = h/p ; // de-Broglie wavelength of electron from De-Broglie relation, m
+printf("\nThe de-Broglie wavelength of electron = %4.2e nm", lambda/1e-009);
+
+// Result
+// The de-Broglie wavelength of electron = 3.88e-001 nm \ No newline at end of file