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 /215/CH13/EX13.2 | |
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 '215/CH13/EX13.2')
-rwxr-xr-x | 215/CH13/EX13.2/ex13_2.sce | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/215/CH13/EX13.2/ex13_2.sce b/215/CH13/EX13.2/ex13_2.sce new file mode 100755 index 000000000..ef2b56b7d --- /dev/null +++ b/215/CH13/EX13.2/ex13_2.sce @@ -0,0 +1,22 @@ +clc
+//Example 13.2
+disp('Given')
+disp('Input voltage is 10V')
+Viamp=10
+//From figure 13.7
+//Writing the left mesh equations
+disp('(1+10i)*I1-90i*I2=10')
+//Writing the right mesh equations
+disp('(400+1000i)*I2-90i*I1=0')
+i=%i
+A=[1+10*i -90*i;-90*i 400+1000*i]
+i2mat=[1+10*i 10; -90*i 0]
+//Find i2
+i2=det(i2mat)/det(A)
+[mag Theta]=polar(i2)
+Theta=(Theta*180)/%pi
+//The value of resistor is 400 ohm
+R=400;
+//Let V=V2/V1
+Vamp=R*mag/Viamp
+printf("Ratio of output voltage to input is %3.2f with angle %3.2f degrees",Vamp,Theta);
\ No newline at end of file |