summaryrefslogtreecommitdiff
path: root/2183/CH8/EX8.12
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /2183/CH8/EX8.12
downloadScilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip
initial commit / add all books
Diffstat (limited to '2183/CH8/EX8.12')
-rwxr-xr-x2183/CH8/EX8.12/Ex_8_12.sce24
1 files changed, 24 insertions, 0 deletions
diff --git a/2183/CH8/EX8.12/Ex_8_12.sce b/2183/CH8/EX8.12/Ex_8_12.sce
new file mode 100755
index 000000000..678050bd8
--- /dev/null
+++ b/2183/CH8/EX8.12/Ex_8_12.sce
@@ -0,0 +1,24 @@
+// Example 8.12 //optical power
+clc;
+clear;
+close;
+e=1.6*10^-19;//electron charge
+sndb=55;//signal to noise ration in dB
+sn=(10^(sndb/10));//
+bw=5;//Mhz
+r=0.5;//responsivity
+cs=0.7;//signal attenuation
+k=1.38*10^-23;//bolzman constant
+tc=20;//degree celsius
+tk=tc+273;//Kelvin
+fdb=1.5;//
+f=10^(fdb/10);//
+rl=1;//mega ohms
+x=((sn*4*k*tk*bw*10^6*f)/(rl*10^6));//
+y=((2*sn*e*bw*10^6*r));//
+ma=9/8;//
+z=(2*ma*r^2*cs^2);//
+s=poly(0,"s");//
+p=-x-y*s+z*s^2;//
+m=roots(p);//
+disp(m(1,1)*10^6,"average incident power in micro Watts is")