summaryrefslogtreecommitdiff
path: root/2528/CH4/EX4.14/Ex4_14.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /2528/CH4/EX4.14/Ex4_14.sce
downloadScilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip
initial commit / add all books
Diffstat (limited to '2528/CH4/EX4.14/Ex4_14.sce')
-rwxr-xr-x2528/CH4/EX4.14/Ex4_14.sce24
1 files changed, 24 insertions, 0 deletions
diff --git a/2528/CH4/EX4.14/Ex4_14.sce b/2528/CH4/EX4.14/Ex4_14.sce
new file mode 100755
index 000000000..02269dd5d
--- /dev/null
+++ b/2528/CH4/EX4.14/Ex4_14.sce
@@ -0,0 +1,24 @@
+clc;
+clear;
+close;
+//pagec no 116
+//Figure 4.22
+//Noninverting Amplifier
+V1=1; //In Volt
+V2=-0.2; //In Volt
+//to draw graph of V3
+step=0.5;
+t=0:step:10*%pi;
+
+V3=2*sin(100*t); //In Volt
+R1=20*10^3; //In ohm
+R2=20*10^3; //In ohm
+R3=20*10^3; //In ohm
+Rf=20*10^3; //In ohm
+Ri=5*10^3; //In ohm
+//Vout=(1+(Rf/Ri))*(V1+V2+V3)/3;
+Vout=(1+(Rf/Ri))*(V1+V2)/3; //for DC componet in Vin
+Voutac=(1+(Rf/Ri))*(V3)/3; //for ac componet in Vin
+disp("Output Voltage is 3.33 V peak sine wave riding on 1.33 V DC");
+plot(Voutac+Vout);
+xtitle("Output","t","V")