summaryrefslogtreecommitdiff
path: root/1172/CH6/EX6.22/Example6_22.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /1172/CH6/EX6.22/Example6_22.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 '1172/CH6/EX6.22/Example6_22.sce')
-rwxr-xr-x1172/CH6/EX6.22/Example6_22.sce13
1 files changed, 13 insertions, 0 deletions
diff --git a/1172/CH6/EX6.22/Example6_22.sce b/1172/CH6/EX6.22/Example6_22.sce
new file mode 100755
index 000000000..d579b60af
--- /dev/null
+++ b/1172/CH6/EX6.22/Example6_22.sce
@@ -0,0 +1,13 @@
+clc
+//Given that
+h = 6.63e-34 // plank's constant
+c = 3e8 // speed of light in m/s
+lambda = 5e-4 // wavelength of photon in angstrom
+e_rest_mass = 0.511 // rest mass of electron in Mev/c^2
+p_rest_mass = 0.511 // rest mass of electron in Mev/c^2
+// sample problem 22 page No. 230
+printf("\n \n\n # Problem 22 # \n")
+printf("\n Standard formula used \n E_total = E_rest + E_kinetic")
+k = (((h * c / (lambda * 1.6e-23 )) - (e_rest_mass + p_rest_mass))) /2 // calculation of Energy of each particle
+printf( "\n Energy of each particle is %f MeV.", k )
+