summaryrefslogtreecommitdiff
path: root/929/CH3/EX3.11.b/Example3_11_b.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /929/CH3/EX3.11.b/Example3_11_b.sce
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 '929/CH3/EX3.11.b/Example3_11_b.sce')
-rwxr-xr-x929/CH3/EX3.11.b/Example3_11_b.sce47
1 files changed, 47 insertions, 0 deletions
diff --git a/929/CH3/EX3.11.b/Example3_11_b.sce b/929/CH3/EX3.11.b/Example3_11_b.sce
new file mode 100755
index 000000000..a7b635d27
--- /dev/null
+++ b/929/CH3/EX3.11.b/Example3_11_b.sce
@@ -0,0 +1,47 @@
+//Example 3.11(b)
+
+clear;
+
+clc;
+
+m=1;//Q is maximised at m=1
+
+n=2;//Order of filter
+
+f0=10*10^(3);
+
+Qnum=(m*n)^(1/2);
+
+Qden=m+1;
+
+Q=Qnum/Qden;
+
+C=1*10^(-9);//Assuming C=1 nF
+
+C2=C;
+
+C1=n*C;
+
+R=1/(Qnum*C*2*%pi*f0);
+
+R2=R;
+
+R1=m*R;
+
+w=4*%pi*10^4;
+
+f=2*10^4;
+
+Hw=1/(1-(w^(2)*R1*R2*C1*C2)+%i*w*((R1*C2)+(R2*C2)));
+
+Vom=10*abs(Hw);
+
+an=atan(imag(Hw)/real(Hw));
+
+theta=180-(an*(180/%pi));
+
+theta0=theta-90;
+
+printf("vo(t)=%.3f cos(4*pi*(10^4)*t+",Vom);
+
+printf("%.2f) V",theta0); \ No newline at end of file