From b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b Mon Sep 17 00:00:00 2001 From: priyanka Date: Wed, 24 Jun 2015 15:03:17 +0530 Subject: initial commit / add all books --- 215/CH13/EX13.2/ex13_2.sce | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100755 215/CH13/EX13.2/ex13_2.sce (limited to '215/CH13/EX13.2') 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 -- cgit