summaryrefslogtreecommitdiff
path: root/275/CH6/EX6.6.28/Ch6_6_28.sce
diff options
context:
space:
mode:
authorprashantsinalkar2017-10-10 12:38:01 +0530
committerprashantsinalkar2017-10-10 12:38:01 +0530
commitf35ea80659b6a49d1bb2ce1d7d002583f3f40947 (patch)
treeeb72842d800ac1233e9d890e020eac5fd41b0b1b /275/CH6/EX6.6.28/Ch6_6_28.sce
parent7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (diff)
downloadScilab-TBC-Uploads-f35ea80659b6a49d1bb2ce1d7d002583f3f40947.tar.gz
Scilab-TBC-Uploads-f35ea80659b6a49d1bb2ce1d7d002583f3f40947.tar.bz2
Scilab-TBC-Uploads-f35ea80659b6a49d1bb2ce1d7d002583f3f40947.zip
updated the code
Diffstat (limited to '275/CH6/EX6.6.28/Ch6_6_28.sce')
-rwxr-xr-x275/CH6/EX6.6.28/Ch6_6_28.sce30
1 files changed, 15 insertions, 15 deletions
diff --git a/275/CH6/EX6.6.28/Ch6_6_28.sce b/275/CH6/EX6.6.28/Ch6_6_28.sce
index f182a6bf6..43b7ade49 100755
--- a/275/CH6/EX6.6.28/Ch6_6_28.sce
+++ b/275/CH6/EX6.6.28/Ch6_6_28.sce
@@ -1,15 +1,15 @@
-clc
-disp("Example 6.27")
-printf("\n")
-disp("Calculate closed loop gain & input voltage to get output voltage 2v")
-print("given")
-disp("Rf=1M,R1=20K,output voltage=2V")
-Rf=10^6
-R1=20*10^3
-Vo=2
-//calculate closed loop gain
-Af=(-Rf/R1)
-//calculate input voltage
-Vi=Vo/Af
-printf("closed loop voltage gain=%f\n",Af)
-printf("Input voltage=%f",Vi)
+clc
+disp("Example 6.28")
+printf("\n")
+disp("Calculate closed loop gain & input voltage to get output voltage 2v")
+printf("given")
+disp("Rf=1M,R1=20K,output voltage=2V")
+Rf=10^6
+R1=20*10^3
+Vo=2
+//calculate closed loop gain
+Af=(-Rf/R1)
+//calculate input voltage
+Vi=Vo/Af
+printf("closed loop voltage gain=%f\n",Af)
+printf("Input voltage=%f",Vi) \ No newline at end of file