summaryrefslogtreecommitdiff
path: root/1271/CH14/EX14.11/example14_11.sce
diff options
context:
space:
mode:
Diffstat (limited to '1271/CH14/EX14.11/example14_11.sce')
-rwxr-xr-x1271/CH14/EX14.11/example14_11.sce15
1 files changed, 15 insertions, 0 deletions
diff --git a/1271/CH14/EX14.11/example14_11.sce b/1271/CH14/EX14.11/example14_11.sce
new file mode 100755
index 000000000..29c815c61
--- /dev/null
+++ b/1271/CH14/EX14.11/example14_11.sce
@@ -0,0 +1,15 @@
+clc
+// Given that
+lambda = 6.2e-7 // threshold wavelength of photoelectron in first case in meter
+lambda_ = 5e-7 // threshold wavelength of photoelectron in second case in meter
+h = 6.62e-34 // Planck constant in J-sec
+c = 3e8 // speed of light in m/sec
+e = 1.6e-19 // charge on an electron in C
+// Sample Problem 11 on page no. 14.23
+printf("\n # PROBLEM 11 # \n")
+printf("Standard formula used \n ")
+printf(" E = h*c/lambda \n")
+w = ((h * c) / lambda) * (1 / e)
+w_ = ((h * c) / lambda_) * (1 / e)
+printf("\n Work function for wavelength %e angstrom is %f eV.\n Work function for wavelength %e angstrom is %f eV",lambda,w,lambda_,w_)
+