summaryrefslogtreecommitdiff
path: root/1172/CH3/EX3.8.1/Example3_8a.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /1172/CH3/EX3.8.1/Example3_8a.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/CH3/EX3.8.1/Example3_8a.sce')
-rwxr-xr-x1172/CH3/EX3.8.1/Example3_8a.sce17
1 files changed, 17 insertions, 0 deletions
diff --git a/1172/CH3/EX3.8.1/Example3_8a.sce b/1172/CH3/EX3.8.1/Example3_8a.sce
new file mode 100755
index 000000000..c9f0577ec
--- /dev/null
+++ b/1172/CH3/EX3.8.1/Example3_8a.sce
@@ -0,0 +1,17 @@
+clc
+//Given that
+lambda = 4.3e-7 // wavelength of light in meter
+phi_Ni = 5 // work function of nickel in eV
+h = 6.624e-34 // plank's constant
+c = 3e8 // speed of light
+m_e = 9.1e-31 // mass of electron in kg
+//Sample Problem 8a Page No. 138
+printf("\n\n\n # Problem 8a # \n")
+lambda_threshold = h * c / (phi_Ni*1e-19) //calculation of longest wavelength required
+if (lambda_threshold < lambda) then
+ printf("\n As the threshold wavelength is less than wavelength of incident radiation \n So electron will not be ejected \n")
+else
+ v = sqrt((2* h * c *(lambda - lambda_threshold)) / (m * lambda_threshold * lambda ))) //calculation of ejected velocity Electron
+ printf("\n As the threshold wavelength is greater than wavelength of incident radiation So electron will be ejected with velocity %e. ",v)
+end
+