summaryrefslogtreecommitdiff
path: root/3717/CH15/EX15.2/Ex15_2.sce
diff options
context:
space:
mode:
Diffstat (limited to '3717/CH15/EX15.2/Ex15_2.sce')
-rw-r--r--3717/CH15/EX15.2/Ex15_2.sce15
1 files changed, 15 insertions, 0 deletions
diff --git a/3717/CH15/EX15.2/Ex15_2.sce b/3717/CH15/EX15.2/Ex15_2.sce
new file mode 100644
index 000000000..34b9bdcda
--- /dev/null
+++ b/3717/CH15/EX15.2/Ex15_2.sce
@@ -0,0 +1,15 @@
+// Ex15_2 Page:298 (2014)
+clc;clear;
+h = 6.626e-034; // Planck's constant, Js
+c = 3e+008; // Speed of light in vacuum, m/s
+t = 30e-003; // Pulse width of laser, s
+P = 0.6; // Output power of laser per pulse, W
+lambda = 640e-009; // Wavelength of laser light, m
+E = P*t; // Energy deposited per laser pulse, J
+n = E*lambda/(h*c); // Number of photons in each laser pulse
+printf("\nThe energy deposited per laser pulse = %5.3f J", E);
+printf("\nThe number of photons in each pulse = %3.1e", n);
+
+// Result
+// The energy deposited per laser pulse = 0.018 J
+// The number of photons in each pulse = 5.8e+016 \ No newline at end of file