diff options
author | priyanka | 2015-06-24 15:03:17 +0530 |
---|---|---|
committer | priyanka | 2015-06-24 15:03:17 +0530 |
commit | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch) | |
tree | ab291cffc65280e58ac82470ba63fbcca7805165 /2825/CH7/EX7.6/Ex7_6.sce | |
download | Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2 Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip |
initial commit / add all books
Diffstat (limited to '2825/CH7/EX7.6/Ex7_6.sce')
-rwxr-xr-x | 2825/CH7/EX7.6/Ex7_6.sce | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/2825/CH7/EX7.6/Ex7_6.sce b/2825/CH7/EX7.6/Ex7_6.sce new file mode 100755 index 000000000..9c2caf113 --- /dev/null +++ b/2825/CH7/EX7.6/Ex7_6.sce @@ -0,0 +1,22 @@ +//Ex7_6 Pg-372
+clc
+
+Vout=5 //output voltage
+Vin=0.5 //input voltage
+Ri=10*10^(3) //input resistance in ohm
+Ro=10 //output resistance
+
+A=Vout/Vin //voltage gain
+printf("Voltage gain =%.0f \n",A)
+Pi=Vin^2/Ri //input power
+Po=Vout^2/Ro //output power
+Pow_gain=10*(log10(Po)-log10(Pi)) //power gain
+printf(" Power gain(in decibel) = %.0f dB \n\n",Pow_gain)
+
+disp("When Ri=Ro")
+Ri=Ro
+A=Vout/Vin //voltage gain
+Pi=Vin^2/Ri //input power
+Po=Vout^2/Ro //output power
+Pow_gain=10*(log10(Po)-log10(Pi)) //power gain
+printf(" Power gain(in decibel) = %.0f dB",Pow_gain)
|