diff options
Diffstat (limited to '1655/CH9/EX9.16.1/Example_9_16_1.sce')
-rwxr-xr-x | 1655/CH9/EX9.16.1/Example_9_16_1.sce | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/1655/CH9/EX9.16.1/Example_9_16_1.sce b/1655/CH9/EX9.16.1/Example_9_16_1.sce new file mode 100755 index 000000000..dc849f88e --- /dev/null +++ b/1655/CH9/EX9.16.1/Example_9_16_1.sce @@ -0,0 +1,15 @@ +// Example 9.16.1 page 9.53
+
+clc;
+clear;
+
+Pin=2;
+Pout=27;
+
+gain_db= Pout-Pin;
+gain= 10^(Pout/10)/10^(Pin/10);
+min_pow = 10^(Pout/10) - 10^(Pin/10);
+
+printf("\nGain in dB is %d dB.\nGain is %.2f.\nMinimum pump power is %.1f mW.",gain_db,gain,min_pow);
+
+//answer in the book for gain is 317, deviation of 0.77 and for minimum pump power it is 499.4, deviation of 0.2
|