summaryrefslogtreecommitdiff
path: root/3717/CH2/EX2.1/Ex2_1.sce
diff options
context:
space:
mode:
Diffstat (limited to '3717/CH2/EX2.1/Ex2_1.sce')
-rw-r--r--3717/CH2/EX2.1/Ex2_1.sce11
1 files changed, 11 insertions, 0 deletions
diff --git a/3717/CH2/EX2.1/Ex2_1.sce b/3717/CH2/EX2.1/Ex2_1.sce
new file mode 100644
index 000000000..fc2b6bb74
--- /dev/null
+++ b/3717/CH2/EX2.1/Ex2_1.sce
@@ -0,0 +1,11 @@
+// Ex2_1 Page:28 (2014)
+clc; clear;
+h = 6.626e-034; // Planck's constant, Js
+nu = 100e+06; // Operational frequency of the source, Hz
+P = 100e+03; // Power radiated by the source, W
+E = h*nu; // Energy radiated by the source, J
+n = P/E; // Number of quanta of energy per second
+printf("\nThe number of photons emitted per second = %5.3e photons/s", n);
+
+// Result
+// The number of photons emitted per second = 1.509e+30 photons/s