summaryrefslogtreecommitdiff
path: root/215/CH16/EX16.3/ex16_3.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /215/CH16/EX16.3/ex16_3.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 '215/CH16/EX16.3/ex16_3.sce')
-rwxr-xr-x215/CH16/EX16.3/ex16_3.sce24
1 files changed, 24 insertions, 0 deletions
diff --git a/215/CH16/EX16.3/ex16_3.sce b/215/CH16/EX16.3/ex16_3.sce
new file mode 100755
index 000000000..f81eeff07
--- /dev/null
+++ b/215/CH16/EX16.3/ex16_3.sce
@@ -0,0 +1,24 @@
+clc
+//Example 16.3
+disp('Given')
+disp('R=10 ohm L=2mH C=200 nF w=48 krad/s vs=100*cos(wt) mV')
+R=10; L=2*10^-3; C=200*10^-9; w=48*10^3;
+vsamp=100;
+w0=1/sqrt(L*C)
+printf("w0= %3.1f krad/s \n",w0*10^-3);
+Q0=w0*L/R
+printf("Q0=%d \n",Q0)
+B=w0/Q0
+printf("Bandwidth= %3.1f krad/s \n",B*10^-3);
+//Number of half bandwidths be N
+N=2*(w-w0)/B
+disp(N)
+//Impedance Z(s)=(1+i*N)*R
+//Finding the magnitude and angle
+magZ=sqrt(1+N^2)*R
+angZ=atan(N)*(180/%pi)
+disp(angZ,'angZ=')
+printf("Equivalent impedance value=%3.2f ohm \n",magZ)
+//Approx current magnitude is
+Iamp=vsamp/magZ
+printf("\n Approx current magnitude= %3.2f mA \n",Iamp); \ No newline at end of file