summaryrefslogtreecommitdiff
path: root/1271/CH14/EX14.38/example14_38.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /1271/CH14/EX14.38/example14_38.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 '1271/CH14/EX14.38/example14_38.sce')
-rwxr-xr-x1271/CH14/EX14.38/example14_38.sce17
1 files changed, 17 insertions, 0 deletions
diff --git a/1271/CH14/EX14.38/example14_38.sce b/1271/CH14/EX14.38/example14_38.sce
new file mode 100755
index 000000000..9bae2e9f7
--- /dev/null
+++ b/1271/CH14/EX14.38/example14_38.sce
@@ -0,0 +1,17 @@
+clc
+// Given that
+E1 = 500 // kinetic energy of electron in first case in eV
+E2 = 50 // kinetic energy of electron in second case in eV
+E3 = 1 // kinetic energy of electron in third case in eV
+h = 6.62e-34 // Planck constant in J-sec
+e = 1.6e-19 // charge on an electron in C
+m = 9.1e-31 // mass of electron in kg
+// Sample Problem 38 on page no. 14.36
+printf("\n # PROBLEM 38 # \n")
+printf("Standard formula used \n ")
+printf(" lambda = h/(2*m*E)^1/2.\n")
+lambda1 = h / sqrt(2 * m * E1 * e)
+lambda2 = h / sqrt(2 * m * E2 * e)
+lambda3 = h / sqrt(2 * m * E3 * e)
+printf("\n de-Broglie wavelength of electron - (1) In first case is %f A. \n (2) In second case is %f A. \n (3) In third is %f A.",lambda1*1e10,lambda2*1e10,lambda3*1e10)
+