diff options
Diffstat (limited to '3547/CH6/EX6.1/EX6_1.sce')
-rw-r--r-- | 3547/CH6/EX6.1/EX6_1.sce | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/3547/CH6/EX6.1/EX6_1.sce b/3547/CH6/EX6.1/EX6_1.sce new file mode 100644 index 000000000..125659261 --- /dev/null +++ b/3547/CH6/EX6.1/EX6_1.sce @@ -0,0 +1,29 @@ +// Example 6.1
+// Calculation of the gain
+// Page no 249
+
+clc;
+clear;
+close;
+
+//Given data
+
+n=1.5; // Refractive ondex of air
+lambda=1550*10^-9; // Wavelength
+c=3*10^8; // Velocity of light
+p=5.73*10^-17; // Power spectral density
+h=6.63*10^-34 // Planck constant
+
+
+// Gain
+f=c/lambda;
+
+G=(p/(2*n*h*f))+1;
+
+//Displaying results in the command window
+printf("\n Gain G = %0.0f ",G);
+
+
+
+
+
|