diff options
Diffstat (limited to '1655/CH9/EX9.20.1/Example_9_20_1.sce')
-rwxr-xr-x | 1655/CH9/EX9.20.1/Example_9_20_1.sce | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/1655/CH9/EX9.20.1/Example_9_20_1.sce b/1655/CH9/EX9.20.1/Example_9_20_1.sce new file mode 100755 index 000000000..4303920c2 --- /dev/null +++ b/1655/CH9/EX9.20.1/Example_9_20_1.sce @@ -0,0 +1,20 @@ +// Example 9.20.1 page 9.65
+
+clc;
+clear;
+
+gain_db=25;
+lamdaP=980d-9;
+lamdaS=1550d-9;
+Pp=40d-3;
+
+gain=10^(gain_db/10); //computing gain
+Pin=(lamdaP/lamdaS)*Pp/(gain-1); //computing maximum input power
+Pout=Pin+(lamdaP/lamdaS)*Pp; //computing maximum output power
+Pout_db=10*log10(Pout/10^-3); //computing maximum output power in dB
+Pin=Pin*10^6;
+printf("\nGain is %.2f.\nMaximum input power is %.2f microWatt.\nMaximum output power is %.2f dbm.",gain,Pin,Pout_db);
+printf("\n\nNOTE - calculation error in max input power instead of G-1, G-100 is taken.");
+
+//answer in the book for Max output power is 14.03 dBm, deviation of 0.01
+//calculation error in max input power instead of G-1, G-100 is taken, answer given is 116 microWatt
|