From 8ac15bc5efafa2afc053c293152605b0e6ae60ff Mon Sep 17 00:00:00 2001 From: Siddharth Agarwal Date: Tue, 3 Sep 2019 18:27:40 +0530 Subject: Xcos examples from textbooks and for blocks --- Working_Examples/215/CH16/EX16.6/ex16_6.sce | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100755 Working_Examples/215/CH16/EX16.6/ex16_6.sce (limited to 'Working_Examples/215/CH16/EX16.6') diff --git a/Working_Examples/215/CH16/EX16.6/ex16_6.sce b/Working_Examples/215/CH16/EX16.6/ex16_6.sce new file mode 100755 index 0000000..26c1153 --- /dev/null +++ b/Working_Examples/215/CH16/EX16.6/ex16_6.sce @@ -0,0 +1,26 @@ +clc +//Example 16.6 +disp('Given') +disp('Km=20 Kf=50') +Km=20; Kf=50; +s=poly(0,'s') +//From figure 16.20(a) +C=0.05; L=0.5; +//Performing magnitude as well as frequency scaling simultaneously +Cscaled =C/(Km*Kf) +Lscaled = L*Km/Kf +printf("Scaled values are \n") +printf("Cscaled =%d uF \t Lscaled =%d mH \n",Cscaled*10^6,Lscaled*10^3) +//Converting the Laplace transform of the circuit +//From figure 16.20(c) +disp('Vin=V1+0.5s*(1-0.2*V1)') +disp('V1=20/s') +//On substituting V1 in equation of Vin + +Zin=(s^2-4*s+40)/(2*s) +disp(Zin,'Zin=') +//Now we need to scale Zin +//We will multiply Zin by Km and replace s by s/Kf +Zinscaled=horner(Km*Zin,s/Kf) +disp(Zinscaled,'Zinscaled') + -- cgit