summaryrefslogtreecommitdiff
path: root/Working_Examples/215/CH16/EX16.6
diff options
context:
space:
mode:
authorSiddharth Agarwal2019-09-03 18:27:40 +0530
committerSiddharth Agarwal2019-09-03 18:27:40 +0530
commit8ac15bc5efafa2afc053c293152605b0e6ae60ff (patch)
treee1bc17aae137922b1ee990f17aae4a6cb15b7d87 /Working_Examples/215/CH16/EX16.6
parent52a477ec613900885e29c4a0b02806a415b4f83a (diff)
downloadXcos_block_examples-8ac15bc5efafa2afc053c293152605b0e6ae60ff.tar.gz
Xcos_block_examples-8ac15bc5efafa2afc053c293152605b0e6ae60ff.tar.bz2
Xcos_block_examples-8ac15bc5efafa2afc053c293152605b0e6ae60ff.zip
Xcos examples from textbooks and for blocksHEADmaster
Diffstat (limited to 'Working_Examples/215/CH16/EX16.6')
-rwxr-xr-xWorking_Examples/215/CH16/EX16.6/ex16_6.sce26
1 files changed, 26 insertions, 0 deletions
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')
+