diff options
Diffstat (limited to '3543/CH3/EX3.19/Ex3_19.sce')
-rw-r--r-- | 3543/CH3/EX3.19/Ex3_19.sce | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/3543/CH3/EX3.19/Ex3_19.sce b/3543/CH3/EX3.19/Ex3_19.sce new file mode 100644 index 000000000..aa7403114 --- /dev/null +++ b/3543/CH3/EX3.19/Ex3_19.sce @@ -0,0 +1,20 @@ +// Example 3.19
+// Computation of total energy
+// Page no 485
+
+clc;
+clear;
+close;
+
+//Given data
+h=6.63*10^-34; // Planck constant
+v=5*10^14; // Bandgap frequency of laser
+N=10^24; // Population inversion density
+V=10^-5; // Volume of laser medium
+
+// Total energy
+E=(1/2)*h*v*(N)*V;
+
+//Display result on command window
+printf("\n Total energy (J)= %0.1f ",E);
+
|