summaryrefslogtreecommitdiff
path: root/2609/CH5
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /2609/CH5
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 '2609/CH5')
-rwxr-xr-x2609/CH5/EX5.1/ex_5_1.sce10
-rwxr-xr-x2609/CH5/EX5.11/ex_5_11.sce13
-rwxr-xr-x2609/CH5/EX5.13/Ex5_13.sce23
-rwxr-xr-x2609/CH5/EX5.14/ex_5_14.sce13
-rwxr-xr-x2609/CH5/EX5.16/Ex5_16.sce16
-rwxr-xr-x2609/CH5/EX5.17/Ex5_17.sce16
-rwxr-xr-x2609/CH5/EX5.18/Ex5_18.sce20
-rwxr-xr-x2609/CH5/EX5.19/Ex5_19.sce21
-rwxr-xr-x2609/CH5/EX5.2/ex_5_2.sce17
-rwxr-xr-x2609/CH5/EX5.20/Ex5_20.sce19
-rwxr-xr-x2609/CH5/EX5.3/ex_5_3.sce11
-rwxr-xr-x2609/CH5/EX5.4/ex_5_4.sce12
-rwxr-xr-x2609/CH5/EX5.5/ex_5_5.sce15
-rwxr-xr-x2609/CH5/EX5.6/ex_5_6.sce23
-rwxr-xr-x2609/CH5/EX5.8/ex_5_8.sce20
-rwxr-xr-x2609/CH5/EX5.9/ex_5_9.sce10
16 files changed, 259 insertions, 0 deletions
diff --git a/2609/CH5/EX5.1/ex_5_1.sce b/2609/CH5/EX5.1/ex_5_1.sce
new file mode 100755
index 000000000..214198dcb
--- /dev/null
+++ b/2609/CH5/EX5.1/ex_5_1.sce
@@ -0,0 +1,10 @@
+//Ex 5.1
+clc;
+clear;
+close;
+format('v',5);
+V1=2;V2=3;V3=4;V4=5;//V
+R1=10;R2=15;R3=22;R4=50;//kohm
+Rf=10;//kohm
+Vout=-Rf/R1*V1-Rf/R2*V2-Rf/R3*V3-Rf/R4*V4;//V
+disp(Vout,"Output voltage of the circuit(V)");;
diff --git a/2609/CH5/EX5.11/ex_5_11.sce b/2609/CH5/EX5.11/ex_5_11.sce
new file mode 100755
index 000000000..e46aeadd6
--- /dev/null
+++ b/2609/CH5/EX5.11/ex_5_11.sce
@@ -0,0 +1,13 @@
+//Ex 5.11
+clc;
+clear;
+close;
+format('v',4);
+G=20;//dB(Gain)
+f3dB=2;//kHz
+Cf=0.05;//micro F
+Rf=1/(f3dB*1000*2*%pi*Cf/1000000)/1000;//kohm
+G=10^(G/20);//Gain(unitless)
+Ri=Rf*1000/G;//ohm
+disp(Rf,"Resistance Rf(kohm)");
+disp(Ri,"Resistance Ri(ohm)");
diff --git a/2609/CH5/EX5.13/Ex5_13.sce b/2609/CH5/EX5.13/Ex5_13.sce
new file mode 100755
index 000000000..9c413f3ee
--- /dev/null
+++ b/2609/CH5/EX5.13/Ex5_13.sce
@@ -0,0 +1,23 @@
+//Ex 5.13
+clc;
+clear;
+close;
+format('v',4);
+t2=50;//ms(After open the switch)
+R=40;//kohm
+C=0.2;//micro F
+V2=3;//V
+Vin=5;//V
+//For Ideal op-amp V1=V2
+t1=0;//s
+Vout1=V2;//V
+V1=V2;//V
+t2=t2*10^-3;//s
+Vout2=-1/(R*10^3*C*10^-6)*integrate('Vin-V1','T',0,t2)+Vout1;//V
+//Here we have t=0 switch closed Vout=3V
+t=[t1*1000 t2*1000];//ms
+Vout=[Vout1 Vout2];//V
+plot(t,Vout);
+title('Vout Vs time after switch is opened');
+xlabel('t(ms)');
+ylabel('Vout(V)');
diff --git a/2609/CH5/EX5.14/ex_5_14.sce b/2609/CH5/EX5.14/ex_5_14.sce
new file mode 100755
index 000000000..2a70b2f03
--- /dev/null
+++ b/2609/CH5/EX5.14/ex_5_14.sce
@@ -0,0 +1,13 @@
+//Ex 5.14
+clc;
+clear;
+close;
+format('v',4);
+R1=1;//kohm
+R2=1;//kohm
+R3=1;//kohm
+Rf=R2+R3;//kohm
+Vin=1;//V
+//Capacitor remains open circuited for steady state in both cases.
+Vout=-Rf/R1*Vin;//V
+disp(Vout,"Output Voltage(V)");
diff --git a/2609/CH5/EX5.16/Ex5_16.sce b/2609/CH5/EX5.16/Ex5_16.sce
new file mode 100755
index 000000000..62d0e90af
--- /dev/null
+++ b/2609/CH5/EX5.16/Ex5_16.sce
@@ -0,0 +1,16 @@
+//Ex 5.16
+clc;
+clear;
+close;
+format('v',4);
+//From the given equationVout=-integrate('5*Vx+2*Vy+4*Vz','t',0,t) :
+R1Cf=1/5;R2Cf=1/2;R3Cf=1/4;
+disp("Various design parameters are : ");
+Cf=10;//micro F////Chosen for the design
+disp(Cf,"Capacitance(micro F)");
+R1=R1Cf/(Cf*10^-6)/1000;//kohm
+R2=R2Cf/(Cf*10^-6)/1000;//kohm
+R3=R3Cf/(Cf*10^-6)/1000;//kohm
+disp(R1,"Resistance R1(kohm)");
+disp(R2,"Resistance R1(kohm)");
+disp(R3,"Resistance R1(kohm)");
diff --git a/2609/CH5/EX5.17/Ex5_17.sce b/2609/CH5/EX5.17/Ex5_17.sce
new file mode 100755
index 000000000..dd1b80f5e
--- /dev/null
+++ b/2609/CH5/EX5.17/Ex5_17.sce
@@ -0,0 +1,16 @@
+//Ex 5.17
+clc;
+clear;
+close;
+format('v',4);
+f=10;//kHz
+Rf=3.2;//kohm
+Ci=0.001;//micro F
+dt=5;//micro seconds
+dVin=5-(-5);//V(When voltage changes from -5V to +5V)
+Vout=-Rf*1000*Ci*10^-6*dVin/(dt*10^-6);//V
+disp(Vout,"When voltage changes from -5V to +5V, The output Voltage(V)");
+dVin=-5-(+5);//V(When voltage changes from +5V to -5V)
+Vout=-Rf*1000*Ci*10^-6*dVin/(dt*10^-6);//V
+disp(Vout,"When voltage changes from +5V to -5V, The output Voltage(V)");
+
diff --git a/2609/CH5/EX5.18/Ex5_18.sce b/2609/CH5/EX5.18/Ex5_18.sce
new file mode 100755
index 000000000..d67d924ef
--- /dev/null
+++ b/2609/CH5/EX5.18/Ex5_18.sce
@@ -0,0 +1,20 @@
+//Ex 5.18
+clc;
+clear;
+close;
+format('v',5);
+fmin=200;//Hz
+fmax=1;//kHz
+fa=fmax;//kHz
+disp("Various design parameters are : ");
+Ci=0.05;//micro F////Chosen for the design
+disp(Ci,"Capacitance Ci(micro F)");
+format('v',4);
+fb=10*fa;//kHz
+Rf=1/(2*%pi*fa*10^3*Ci*10^-6)/1000;//kohm
+disp(Rf,"Resistance Rf(kohm)");
+Ri=1/(2*%pi*fb*10^3*Ci*10^-6);//ohm
+disp(Ri,"Resistance Ri(ohm)");
+format('v',6);
+Cf=Ri*Ci/(Rf*10^3);//micro F
+disp(Cf,"Capacitance Cf(micro F)");
diff --git a/2609/CH5/EX5.19/Ex5_19.sce b/2609/CH5/EX5.19/Ex5_19.sce
new file mode 100755
index 000000000..fe701762e
--- /dev/null
+++ b/2609/CH5/EX5.19/Ex5_19.sce
@@ -0,0 +1,21 @@
+//Ex 5.19
+clc;
+clear;
+close;
+format('v',5);
+fmax=100;//Hz
+fa=fmax;//Hz
+disp("Various design parameters are : ");
+Ci=0.1;//micro F////Chosen for the design
+disp(Ci,"Capacitance Ci(micro F)");
+Rf=1/(2*%pi*fa*Ci*10^-6)/1000;//kohm
+disp(Rf,"Resistance Rf(kohm)");
+disp("Use f=15 kohm");
+fb=15*fa;//kHz
+Ri=1/(2*%pi*fb*Ci*10^-6)/1000;//kohm
+disp(Ri,"Resistance Ri(kohm)");
+disp("Use Ri=1 kohm");
+format('v',6);
+Cf=Ri*Ci/Rf;//micro F
+disp(Cf,"Capacitance Cf(micro F)");
+//Answer in the book is not accurate for Cf.
diff --git a/2609/CH5/EX5.2/ex_5_2.sce b/2609/CH5/EX5.2/ex_5_2.sce
new file mode 100755
index 000000000..07b64eae7
--- /dev/null
+++ b/2609/CH5/EX5.2/ex_5_2.sce
@@ -0,0 +1,17 @@
+//Ex 5.1
+clc;
+clear;
+close;
+format('v',5);
+Rf=240;//kohm
+//Vout=-4*Vx+3*Vy;
+//case 1st
+Vy=0;//V(But Vx is not=0)
+//Vox=-Rf/R1*Vx=-4*Vx
+R1=Rf/4;//kohm
+//case 2nd
+Vx=0;//V(But Vy is not=0)
+//Voy=(1+Rf/R1)*R2*Vy/(R1+R2)=3*Vy
+R2=3/(1+Rf/R1)*R1/((1-3/(1+Rf/R1)))
+disp(R1,"Resistance R1(kohm)");
+disp(R2,"Resistance R2(kohm)");
diff --git a/2609/CH5/EX5.20/Ex5_20.sce b/2609/CH5/EX5.20/Ex5_20.sce
new file mode 100755
index 000000000..3b6dc2304
--- /dev/null
+++ b/2609/CH5/EX5.20/Ex5_20.sce
@@ -0,0 +1,19 @@
+//Ex 5.20
+clc;
+clear;
+close;
+format('v',5);
+f=50;//Hz
+T=1/f;//s(Period)
+Ci=0.05;//micro F
+RiCi=0.01*T;//Given
+Ri=RiCi/(Ci*10^-6)/1000;//kohm
+disp(Ri,"Resistance Ri(kohm)");
+//Vout=-.002*dVin/dt given
+//On comparing with Vout=-Rf*Ci*dVin/dt
+RfCi=0.002;//on comparing
+Rf=RfCi/(Ci*10^-6)/1000;//kohm
+disp(Rf,"Resistance Rf(kohm)");
+Cf=Ri*Ci/Rf;//micro F
+format('v',6);
+disp(Cf,"Capacitance Cf(micro F)");
diff --git a/2609/CH5/EX5.3/ex_5_3.sce b/2609/CH5/EX5.3/ex_5_3.sce
new file mode 100755
index 000000000..c0af1eeb8
--- /dev/null
+++ b/2609/CH5/EX5.3/ex_5_3.sce
@@ -0,0 +1,11 @@
+//Ex 5.3
+clc;
+clear;
+close;
+format('v',5);
+V1=-2;V2=3;//V
+R1=50;R2=100;//kohm
+Rf=250;//kohm
+//I1+I2=If with IB=0 & Vx=0
+Vout=-(V1/R1+V2/R2)*Rf;//V
+disp(Vout,"Output Voltage(V)");
diff --git a/2609/CH5/EX5.4/ex_5_4.sce b/2609/CH5/EX5.4/ex_5_4.sce
new file mode 100755
index 000000000..f29b9a690
--- /dev/null
+++ b/2609/CH5/EX5.4/ex_5_4.sce
@@ -0,0 +1,12 @@
+//Ex 5.4
+clc;
+clear;
+close;
+format('v',5);
+V1=-2;V2=3;//V
+R1=12;R2=12;R3=10//kohm
+Rf=12;Ri=12;//kohm
+Rt=2;//kohm
+Vyx=200*10^-6;//V
+Vout=Rf/Ri*(1+2*R3/Rt)*Vyx;//V
+disp(Vout*1000,"Output Voltage(mV)");
diff --git a/2609/CH5/EX5.5/ex_5_5.sce b/2609/CH5/EX5.5/ex_5_5.sce
new file mode 100755
index 000000000..c79431e9b
--- /dev/null
+++ b/2609/CH5/EX5.5/ex_5_5.sce
@@ -0,0 +1,15 @@
+//Ex 5.5
+clc;
+clear;
+close;
+format('v',4);
+Ad=5:200;//Gain
+R1max=50;//kohm(Potentiometer)
+R4=10;R3=10;//kohm
+//Case 1st : Ad=Admin &R1=R1max
+R1=R1max;//kohm
+R2=(min(Ad)-1)/2*R1max
+//Case 2nd : Ad=Admax &R1=R1min
+R1min=2*R2/(max(Ad)-1);//kohm
+disp(R2,"Resistance R2(kohm)");
+disp(R1min,"Minimum value of resistance R1(kohm)");
diff --git a/2609/CH5/EX5.6/ex_5_6.sce b/2609/CH5/EX5.6/ex_5_6.sce
new file mode 100755
index 000000000..ebc8f426a
--- /dev/null
+++ b/2609/CH5/EX5.6/ex_5_6.sce
@@ -0,0 +1,23 @@
+//Ex 5.6
+clc;
+clear;
+close;
+format('v',8);
+R3=1;//kohm
+Rt=5;//kohm
+Ri=1.8;R1=1.8;//kohm
+Rf=18;R2=18;//kohm
+Vs=15;//V
+AoL=2*10^5;//Gain(for 741C)
+Rio=2//Mohm
+Ro=75//Mohm
+fo=5;//Hz
+fBW=1;//MHz
+Ad=Rf/Ri*(1+2*R3/Rt);//differential gain
+disp(Ad,"Differential gain");
+Beta=(R3+Rt)/(2*R3+Rt);//unitless
+Rix=Rio*10^6*(1+AoL*Beta);//ohm
+disp(Rix,"Input impedence, Rix(ohm)");
+Rof=Ro/(1+AoL/Ad);//ohm
+disp(Rof,"Output impedence, Rof(ohm)");
+//Answer in the book is wron for Rix.
diff --git a/2609/CH5/EX5.8/ex_5_8.sce b/2609/CH5/EX5.8/ex_5_8.sce
new file mode 100755
index 000000000..d9fbdc226
--- /dev/null
+++ b/2609/CH5/EX5.8/ex_5_8.sce
@@ -0,0 +1,20 @@
+//Ex 5.8
+clc;
+clear;
+close;
+format('v',8);
+Ri=10;//kohm
+Rf=15;//kohm
+Vs=9;//V
+//Part (a)
+Ra=120;Rb=120;Rc=120;Rd=120;//ohm
+Vx=0;Vy=0//V(as Bridge is balanced)
+Vout=(Vy-Vx)*Rf/Ri;//V
+disp(Vout,"(a) Output Voltage(V)");
+//Part (b)
+Ra=120;Rb=120;Rc=120;Rd=150;//ohm
+Vx=Rb*Vs/(Ra+Rb);//V
+Vy=Rc*Vs/(Rc+Rd)//V
+Vyx=Vy-Vx;//V
+Vout=(Vy-Vx)*Rf/Ri;//V
+disp(Vout,"(b) Output Voltage(V)");
diff --git a/2609/CH5/EX5.9/ex_5_9.sce b/2609/CH5/EX5.9/ex_5_9.sce
new file mode 100755
index 000000000..969c8ebb8
--- /dev/null
+++ b/2609/CH5/EX5.9/ex_5_9.sce
@@ -0,0 +1,10 @@
+//Ex 5.9
+clc;
+clear;
+close;
+format('v',8);
+Vin=2;//V
+Rf=2*2/(2+2)+2;//kohm
+R1=1;//kohm
+Vout=-Rf/R1*Vin;//V
+disp(Vout,"Output Voltage(V)");