summaryrefslogtreecommitdiff
path: root/1271/CH14/EX14.43/example14_43.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.43/example14_43.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.43/example14_43.sce')
-rwxr-xr-x1271/CH14/EX14.43/example14_43.sce17
1 files changed, 17 insertions, 0 deletions
diff --git a/1271/CH14/EX14.43/example14_43.sce b/1271/CH14/EX14.43/example14_43.sce
new file mode 100755
index 000000000..b5b353d21
--- /dev/null
+++ b/1271/CH14/EX14.43/example14_43.sce
@@ -0,0 +1,17 @@
+clc
+// Given that
+lambda = 5e-7 // wavelength in m
+c = 3e8 // velocity of light in m/sec
+h = 6.62e-34 // Planck constant in J-sec
+e = 1.6e-19 // charge on an electron in C
+m = 1.67e-27 // mass of proton in kg
+m_ = 9.1e-31 // mass of electron in kg
+// Sample Problem 43 on page no. 14.38
+printf("\n # PROBLEM 43 # \n")
+printf("Standard formula used \n ")
+printf(" lambda = h/(2*m*E)^1/2\n")
+E1 = h^2 / (2 * m * lambda^2)
+E2 = h^2 / (2 * m_ * lambda^2)
+disp(E1,'kinetic energy of proton(in J) =')
+disp(E2,'kinetic energy of electron(in J) =')
+