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 --- 2528/CH4/EX4.14/Ex4_14.sce | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100755 2528/CH4/EX4.14/Ex4_14.sce (limited to '2528/CH4/EX4.14') 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") -- cgit