summaryrefslogtreecommitdiff
path: root/199/CH6
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /199/CH6
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 '199/CH6')
-rwxr-xr-x199/CH6/EX6.1/Example_6_1.sce19
-rwxr-xr-x199/CH6/EX6.1/result_ex_6_1.txt3
-rwxr-xr-x199/CH6/EX6.10/Example_6_10.sce12
-rwxr-xr-x199/CH6/EX6.10/result_ex_6_10.txt2
-rwxr-xr-x199/CH6/EX6.11/Example_6_11.sce12
-rwxr-xr-x199/CH6/EX6.11/result_ex_6_11.txt2
-rwxr-xr-x199/CH6/EX6.12.a/Example_6_12_a.sce10
-rwxr-xr-x199/CH6/EX6.12.a/result_ex_6_12_a.txt1
-rwxr-xr-x199/CH6/EX6.12.b/Example_6_12_b.sce10
-rwxr-xr-x199/CH6/EX6.12.b/result_ex_6_12_b.txt1
-rwxr-xr-x199/CH6/EX6.13/Example_6_13.sce14
-rwxr-xr-x199/CH6/EX6.13/result_ex_6_13.txt2
-rwxr-xr-x199/CH6/EX6.14/Example_6_14.sce14
-rwxr-xr-x199/CH6/EX6.14/result_ex_6_14.txt2
-rwxr-xr-x199/CH6/EX6.15/Example_6_15.sce23
-rwxr-xr-x199/CH6/EX6.16.a/Example_6_16_a.sce18
-rwxr-xr-x199/CH6/EX6.16.a/result_ex_6_16_a.txt3
-rwxr-xr-x199/CH6/EX6.16.b/Example_6_16_b.sce14
-rwxr-xr-x199/CH6/EX6.2.a/Example_6_2_a.sce20
-rwxr-xr-x199/CH6/EX6.2.a/result_ex_6_2_a.txt3
-rwxr-xr-x199/CH6/EX6.2.b/Example_6_2_b.sce12
-rwxr-xr-x199/CH6/EX6.2.b/result_ex_6_2_b.txt1
-rwxr-xr-x199/CH6/EX6.3/Example_6_3.sce21
-rwxr-xr-x199/CH6/EX6.3/result_ex_6_3.txt4
-rwxr-xr-x199/CH6/EX6.4/Example_6_4.sce10
-rwxr-xr-x199/CH6/EX6.4/result_ex_6_4.txt1
-rwxr-xr-x199/CH6/EX6.5/Example_6_5.sce12
-rwxr-xr-x199/CH6/EX6.5/result_ex_6_5.txt2
-rwxr-xr-x199/CH6/EX6.6/Example_6_6.sce10
-rwxr-xr-x199/CH6/EX6.6/result_ex_6_6.txt1
-rwxr-xr-x199/CH6/EX6.7/Example_6_7.sce21
-rwxr-xr-x199/CH6/EX6.7/result_ex_6_7.txt2
-rwxr-xr-x199/CH6/EX6.8/Example_6_8.sce12
-rwxr-xr-x199/CH6/EX6.8/result_ex_6_8.txt1
-rwxr-xr-x199/CH6/EX6.9/Example_6_9.sce12
-rwxr-xr-x199/CH6/EX6.9/result_ex_6_9.txt2
36 files changed, 309 insertions, 0 deletions
diff --git a/199/CH6/EX6.1/Example_6_1.sce b/199/CH6/EX6.1/Example_6_1.sce
new file mode 100755
index 000000000..8221349a0
--- /dev/null
+++ b/199/CH6/EX6.1/Example_6_1.sce
@@ -0,0 +1,19 @@
+// Chapter6
+// Page.No-193, Figure.No-6.3(a)
+// Example_6_1
+// Bandwidth of the amplifier
+// Given
+clear;clc;
+R1=100;Rf=1*10^3;Rin=50;Rl=10*10^3;
+Ci=0.1*10^-6; // Capacitance b/w 2 stages being coupled
+RiF=R1; // ac input resistance of the second stage
+Ro=Rin; // ac output resistance of the 1st stage
+UGB=10^6; // Unity gain bandwidth
+fl=1/(2*%pi*Ci*(RiF+Ro)); // Low-freq cutoff
+printf("\n Low-freq cutoff is = %.1f Hz \n",fl) // Result
+K=Rf/(R1+Rf);
+Af=-Rf/R1; // closed loop voltage gain
+fh=UGB*K/abs(Af); // High-freq cutoff
+printf("\n High-freq cutoff is = %.1f Hz \n",fh) // Result
+BW=fh-fl; // Bandwidth
+printf("\n Bandwidth is = %.1f Hz \n",BW) // Result \ No newline at end of file
diff --git a/199/CH6/EX6.1/result_ex_6_1.txt b/199/CH6/EX6.1/result_ex_6_1.txt
new file mode 100755
index 000000000..f41acb94a
--- /dev/null
+++ b/199/CH6/EX6.1/result_ex_6_1.txt
@@ -0,0 +1,3 @@
+* Low-freq cutoff is = 10610.3 Hz
+* High-freq cutoff is = 90909.1 Hz
+* Bandwidth is = 80298.8 Hz \ No newline at end of file
diff --git a/199/CH6/EX6.10/Example_6_10.sce b/199/CH6/EX6.10/Example_6_10.sce
new file mode 100755
index 000000000..1100f8d38
--- /dev/null
+++ b/199/CH6/EX6.10/Example_6_10.sce
@@ -0,0 +1,12 @@
+// Chapter6
+// Page.No-220, Figure.No-6.17
+// Example_6_10
+// Range of input voltage
+// Given
+clear;clc;
+R1min=1*10^3;R1max=6.8*10^3;
+io=1*10^-3; // Meter current for full-wave rectification
+vin_min=1.1*R1min*io; // Minimum input voltage
+printf("\n Minimum input voltage is = %.1f V \n",vin_min)
+vin_max=1.1*R1max*io; // Maximum input voltage
+printf("\n Maximum input voltage is = %.2f V \n",vin_max) \ No newline at end of file
diff --git a/199/CH6/EX6.10/result_ex_6_10.txt b/199/CH6/EX6.10/result_ex_6_10.txt
new file mode 100755
index 000000000..d11529ccd
--- /dev/null
+++ b/199/CH6/EX6.10/result_ex_6_10.txt
@@ -0,0 +1,2 @@
+* Minimum input voltage is = 1.1 V
+* Maximum input voltage is = 7.48 V \ No newline at end of file
diff --git a/199/CH6/EX6.11/Example_6_11.sce b/199/CH6/EX6.11/Example_6_11.sce
new file mode 100755
index 000000000..a02d269f8
--- /dev/null
+++ b/199/CH6/EX6.11/Example_6_11.sce
@@ -0,0 +1,12 @@
+// Chapter6
+// Page.No-222, Figure.No-6.18
+// Example_6_11
+// Current and voltage drop
+// Given
+clear;clc;
+Vin=0.5;Vo=1.2;
+R1=100;
+Io=Vin/R1; // Current through diode
+printf("\n Current through diode is = %.4f A \n",Io)
+Vd=Vo-Vin; // Voltage drop across diode
+printf("\n Voltage drop across diode is = %.1f V \n",Vd) \ No newline at end of file
diff --git a/199/CH6/EX6.11/result_ex_6_11.txt b/199/CH6/EX6.11/result_ex_6_11.txt
new file mode 100755
index 000000000..0fbca50a5
--- /dev/null
+++ b/199/CH6/EX6.11/result_ex_6_11.txt
@@ -0,0 +1,2 @@
+* Current through diode is = 0.0050 A
+* Voltage drop across diode is = 0.7 V \ No newline at end of file
diff --git a/199/CH6/EX6.12.a/Example_6_12_a.sce b/199/CH6/EX6.12.a/Example_6_12_a.sce
new file mode 100755
index 000000000..4aede180b
--- /dev/null
+++ b/199/CH6/EX6.12.a/Example_6_12_a.sce
@@ -0,0 +1,10 @@
+// Chapter6
+// Page.No-222, Figure.No-6.19
+// Example_6_12_a
+// Load current
+// Given
+clear;clc;
+Vin=5;V1=1;
+R=10*10^3;
+Il=Vin/R; // Load current
+printf("\n Load current is = %.5f A \n",Il) \ No newline at end of file
diff --git a/199/CH6/EX6.12.a/result_ex_6_12_a.txt b/199/CH6/EX6.12.a/result_ex_6_12_a.txt
new file mode 100755
index 000000000..8d8d9b58c
--- /dev/null
+++ b/199/CH6/EX6.12.a/result_ex_6_12_a.txt
@@ -0,0 +1 @@
+* Load current is = 0.00050 A \ No newline at end of file
diff --git a/199/CH6/EX6.12.b/Example_6_12_b.sce b/199/CH6/EX6.12.b/Example_6_12_b.sce
new file mode 100755
index 000000000..87e36db45
--- /dev/null
+++ b/199/CH6/EX6.12.b/Example_6_12_b.sce
@@ -0,0 +1,10 @@
+// Chapter6
+// Page.No-222, Figure.No-6.19
+// Example_6_12_b
+// Output voltage
+// Given
+clear;clc;
+Vin=5;V1=1;
+R=10*10^3;
+Vo=2*V1; // Output voltage
+printf("\n Output voltage is = %.f V \n",Vo) \ No newline at end of file
diff --git a/199/CH6/EX6.12.b/result_ex_6_12_b.txt b/199/CH6/EX6.12.b/result_ex_6_12_b.txt
new file mode 100755
index 000000000..b7debb26e
--- /dev/null
+++ b/199/CH6/EX6.12.b/result_ex_6_12_b.txt
@@ -0,0 +1 @@
+* Output voltage is = 2 V \ No newline at end of file
diff --git a/199/CH6/EX6.13/Example_6_13.sce b/199/CH6/EX6.13/Example_6_13.sce
new file mode 100755
index 000000000..45ca1bd59
--- /dev/null
+++ b/199/CH6/EX6.13/Example_6_13.sce
@@ -0,0 +1,14 @@
+// Chapter6
+// Page.No-222, Figure.No-6.20
+// Example_6_13
+// Range of output voltage
+// Given
+clear;clc;
+R1=1*10^3;Rf=2.7*10^3;
+Vref=2;
+Io=0; // Since all the binary inputs D0 to D7 are logic zero
+Vo_min=Io*Rf; // Minimum output voltage
+printf("\n Minimum output voltage is = %.f V \n",Vo_min)
+Io=(Vref/R1)*(1/2+1/4+1/8+1/16+1/32+1/64+1/128+1/256);
+Vo_max=Io*Rf; // Maximum output voltage
+printf("\n Maximum output voltage is = %.2f V \n",Vo_max) \ No newline at end of file
diff --git a/199/CH6/EX6.13/result_ex_6_13.txt b/199/CH6/EX6.13/result_ex_6_13.txt
new file mode 100755
index 000000000..507e93367
--- /dev/null
+++ b/199/CH6/EX6.13/result_ex_6_13.txt
@@ -0,0 +1,2 @@
+* Minimum output voltage is = 0 V
+* Maximum output voltage is = 5.38 V \ No newline at end of file
diff --git a/199/CH6/EX6.14/Example_6_14.sce b/199/CH6/EX6.14/Example_6_14.sce
new file mode 100755
index 000000000..8f4def15c
--- /dev/null
+++ b/199/CH6/EX6.14/Example_6_14.sce
@@ -0,0 +1,14 @@
+// Chapter6
+// Page.No-228, Figure.No-6.21
+// Example_6_14
+// Change in output voltage
+// Given
+clear;clc;
+Rf=3*10^3;
+Vdc=5;
+Rt=100*10^3; // Resistance at darkness
+Vomin=-(Vdc/Rt)*Rf; // Min output voltage at darkness
+printf("\n Min output voltage at darkness is = %.2f V \n",Vomin)
+Rt=1.5*10^3; // Resistance at Illumination
+Vomax=-(Vdc/Rt)*Rf; // Max output voltage at Illumination
+printf("\n Max output voltage at Illumination is = %.f V \n",Vomax) \ No newline at end of file
diff --git a/199/CH6/EX6.14/result_ex_6_14.txt b/199/CH6/EX6.14/result_ex_6_14.txt
new file mode 100755
index 000000000..089a0a80b
--- /dev/null
+++ b/199/CH6/EX6.14/result_ex_6_14.txt
@@ -0,0 +1,2 @@
+* Min output voltage at darkness is = -0.15 V
+* Max output voltage at Illumination is = -10 V \ No newline at end of file
diff --git a/199/CH6/EX6.15/Example_6_15.sce b/199/CH6/EX6.15/Example_6_15.sce
new file mode 100755
index 000000000..07ccbb059
--- /dev/null
+++ b/199/CH6/EX6.15/Example_6_15.sce
@@ -0,0 +1,23 @@
+// Chapter6
+// Page.No-230, Figure.No-6.23
+// Example_6_15
+// Output voltage of an integrator
+// Given
+clear;clc;
+Vin=2; // Input voltage in volt
+Vo0=0;
+Vo1=-integrate('2','t',0,1);
+disp(Vo1)
+Vo2=-integrate('2','t',1,2)+Vo1;
+disp(Vo2)
+Vo3=-integrate('2','t',2,3)+Vo2;
+disp(Vo3)
+Vo4=-integrate('2','t',3,4)+Vo3;
+disp(Vo4)
+Vo=[Vo0 Vo1 Vo2 Vo3 Vo4];
+t=[0 1 2 3 4];
+plot(t,Vo);
+title('Output Voltage');
+xlabel('t');
+ylabel('Vo');
+
diff --git a/199/CH6/EX6.16.a/Example_6_16_a.sce b/199/CH6/EX6.16.a/Example_6_16_a.sce
new file mode 100755
index 000000000..e56107384
--- /dev/null
+++ b/199/CH6/EX6.16.a/Example_6_16_a.sce
@@ -0,0 +1,18 @@
+// Chapter6
+// Page.No-238
+// Example_6_16_a
+// Design of differentiator
+// Given
+clear;clc;
+C1=0.1*10^-6; // Assume
+fa=1*10^3; // Freq at which gain is 0 dB
+Rf=1/(2*%pi*fa*C1); // Using fa=1/(2*%pi*Rf*C1)
+printf("\n Feedback resistance is = %.1f ohm \n",Rf)
+Rf=1.5*10^3; // Approximation
+fb=20*10^3; // Gain limiting freq
+R1=1/(2*%pi*fb*C1);
+printf("\n Resistance,R1 is = %.1f ohm \n",R1)
+R1=82; // Approximation
+Cf=R1*C1/Rf;
+printf("\n Capacitance,Cf is = %.10f farad \n",Cf)
+Cf=0.005*10^-6; // Approximation \ No newline at end of file
diff --git a/199/CH6/EX6.16.a/result_ex_6_16_a.txt b/199/CH6/EX6.16.a/result_ex_6_16_a.txt
new file mode 100755
index 000000000..c457ad4b4
--- /dev/null
+++ b/199/CH6/EX6.16.a/result_ex_6_16_a.txt
@@ -0,0 +1,3 @@
+* Feedback resistance is = 1591.5 ohm
+* Resistance,R1 is = 79.6 ohm
+* Capacitance,Cf is = 0.0000000055 farad \ No newline at end of file
diff --git a/199/CH6/EX6.16.b/Example_6_16_b.sce b/199/CH6/EX6.16.b/Example_6_16_b.sce
new file mode 100755
index 000000000..116911e23
--- /dev/null
+++ b/199/CH6/EX6.16.b/Example_6_16_b.sce
@@ -0,0 +1,14 @@
+// Chapter6
+// Page.No-238
+// Example_6_16_b
+// Output waveform of differentiator
+// Given
+clear;clc;
+step=0.01;
+t=0:step:2*%pi;
+dy=diff(sin(t))/step; //approximate differentiation of sine function
+Vo=-1.5*10^3*0.1*10^-6*2*%pi*10^3*dy;
+plot(Vo);
+title('Output Voltage');
+xlabel('t');
+ylabel('Vo');
diff --git a/199/CH6/EX6.2.a/Example_6_2_a.sce b/199/CH6/EX6.2.a/Example_6_2_a.sce
new file mode 100755
index 000000000..a7d14d581
--- /dev/null
+++ b/199/CH6/EX6.2.a/Example_6_2_a.sce
@@ -0,0 +1,20 @@
+// Chapter6
+// Page.No-193, Figure.No-6.4(c)
+// Example_6_2_a
+// Bandwidth of the amplifier
+// Given
+clear;clc;
+R1=100*10^3;R2=100*10^3;R3=100*10^3;Rf=1*10^6;Rin=50;
+Ci=0.1*10^-6; // Capacitance b/w 2 stages being coupled
+Ro=Rin; // ac output resistance of the 1st stage
+Vcc=15;
+UGB=10^6; // Unity gain bandwidth
+Rif=R2*R3/(R2+R3); // since Ri*(1+A*B)>>R2 or R3
+fl=1/(2*%pi*Ci*(Rif+Ro)); // low-freq cutoff
+printf("\n Low-freq cutoff is = %.1f Hz \n",fl) // Result
+K=Rf/(R1+Rf);
+Af=-Rf/R1; // closed loop voltage gain
+fh=UGB*K/abs(Af); // High-freq cutoff
+printf("\n High-freq cutoff is = %.1f Hz \n",fh) // Result
+BW=fh-fl; // Bandwidth
+printf("\n Bandwidth is = %.1f Hz \n",BW) // Result \ No newline at end of file
diff --git a/199/CH6/EX6.2.a/result_ex_6_2_a.txt b/199/CH6/EX6.2.a/result_ex_6_2_a.txt
new file mode 100755
index 000000000..d07f481e6
--- /dev/null
+++ b/199/CH6/EX6.2.a/result_ex_6_2_a.txt
@@ -0,0 +1,3 @@
+* Low-freq cutoff is = 31.8 Hz
+* High-freq cutoff is = 90909.1 Hz
+* Bandwidth is = 90877.3 Hz
diff --git a/199/CH6/EX6.2.b/Example_6_2_b.sce b/199/CH6/EX6.2.b/Example_6_2_b.sce
new file mode 100755
index 000000000..c3d5e36ac
--- /dev/null
+++ b/199/CH6/EX6.2.b/Example_6_2_b.sce
@@ -0,0 +1,12 @@
+// Chapter6
+// Page.No-193, Figure.No-6.4(c)
+// Example_6_2_b
+// Max output voltage swing
+// Given
+clear;clc;
+R1=100*10^3;R2=100*10^3;R3=100*10^3;Rf=1*10^6;Rin=50;
+Ci=0.1*10^-6; // Capacitance b/w 2 stages being coupled
+Ro=Rin; // ac output resistance of the 1st stage
+UGB=10^6; // Unity gain bandwidth
+Vcc=15;
+printf("\n The ideal maximum output voltage swing is = %.f V pp \n",Vcc) \ No newline at end of file
diff --git a/199/CH6/EX6.2.b/result_ex_6_2_b.txt b/199/CH6/EX6.2.b/result_ex_6_2_b.txt
new file mode 100755
index 000000000..34ff2d57f
--- /dev/null
+++ b/199/CH6/EX6.2.b/result_ex_6_2_b.txt
@@ -0,0 +1 @@
+* The ideal maximum output voltage swing is = 15 V pp \ No newline at end of file
diff --git a/199/CH6/EX6.3/Example_6_3.sce b/199/CH6/EX6.3/Example_6_3.sce
new file mode 100755
index 000000000..2014dbb4f
--- /dev/null
+++ b/199/CH6/EX6.3/Example_6_3.sce
@@ -0,0 +1,21 @@
+// Chapter6
+// Page.No-193, Figure.No-6.5(a)
+// Example_6_3
+// Components of peak amplifier
+// Given
+clear;clc;
+fp=16*10^3; // Peak frequency
+Af=10; // Gain at peak frequency
+C=0.01*10^-6; // Assume
+L=1/(((2*%pi*fp)^2)*10^-8); // Simplifying fp=1/(2*pi*sqrt(L*C))
+printf("\n Inductance is = %.4f H \n",L)
+L=10*10^-3; // Approximate
+R=30; // Assume the value of internal resistance of the inductor
+Xl=2*%pi*fp*L; // Inductive reactance
+Qcoil=Xl/R; // Figure of merit of the coil
+printf("\n Figure of merit of the coil is = %.1f \n",Qcoil)
+Rp=(Qcoil)^2*R; // Parallel resistance of the tank circuit
+printf("\n Parallel resistance of the tank circuit is = %.1f ohm \n",Rp)
+R1=100; // Assume the value of internal resisrance of the coil
+Rf=-Rp/(1-(Rp/(Af*R1))); // Simplifying Af=(Rf||Rp)/R1
+printf("\n Feedback resistance is = %.1f ohm \n",Rf) \ No newline at end of file
diff --git a/199/CH6/EX6.3/result_ex_6_3.txt b/199/CH6/EX6.3/result_ex_6_3.txt
new file mode 100755
index 000000000..835e62a44
--- /dev/null
+++ b/199/CH6/EX6.3/result_ex_6_3.txt
@@ -0,0 +1,4 @@
+* Inductance is = 0.0099 H
+* Figure of merit of the coil is = 33.5
+* Parallel resistance of the tank circuit is = 33688.2 ohm
+* Feedback resistance is = 1030.6 ohm
diff --git a/199/CH6/EX6.4/Example_6_4.sce b/199/CH6/EX6.4/Example_6_4.sce
new file mode 100755
index 000000000..7a0a430a1
--- /dev/null
+++ b/199/CH6/EX6.4/Example_6_4.sce
@@ -0,0 +1,10 @@
+// Chapter6
+// Page.No-200, Figure.No-6.6
+// Example_6_4
+// Output voltage
+// Given
+clear;clc;
+Va=1;Vb=2;Vc=3; // Input voltages in volts
+Ra=3*10^3;Rb=3*10^3;Rc=3*10^3;Rf=1*10^3;
+Vo=-((Rf/Ra)*Va+(Rf/Rb)*Vb+(Rf/Rc)*Vc); // Output voltage
+printf("\n Output voltage is = %.f V \n",Vo) \ No newline at end of file
diff --git a/199/CH6/EX6.4/result_ex_6_4.txt b/199/CH6/EX6.4/result_ex_6_4.txt
new file mode 100755
index 000000000..5885fafa6
--- /dev/null
+++ b/199/CH6/EX6.4/result_ex_6_4.txt
@@ -0,0 +1 @@
+* Output voltage is = -2 V \ No newline at end of file
diff --git a/199/CH6/EX6.5/Example_6_5.sce b/199/CH6/EX6.5/Example_6_5.sce
new file mode 100755
index 000000000..004322ea7
--- /dev/null
+++ b/199/CH6/EX6.5/Example_6_5.sce
@@ -0,0 +1,12 @@
+// Chapter6
+// Page.No-203, Figure.No-6.7
+// Example_6_5
+// Output voltage
+// Given
+clear;clc;
+Va=2;Vb=-3;Vc=4; // Input voltages in volts
+R1=1*10^3;Rf=2*10^3;
+V1=(Va+Vb+Vc)/3; // Voltage at non-inverting terminal
+printf("\n Voltage at non-inverting terminal is = %.f V \n",V1)
+Vo=(1+Rf/R1)*V1; // Output voltage
+printf("\n Output voltage is = %.f V \n",Vo) \ No newline at end of file
diff --git a/199/CH6/EX6.5/result_ex_6_5.txt b/199/CH6/EX6.5/result_ex_6_5.txt
new file mode 100755
index 000000000..e1587834e
--- /dev/null
+++ b/199/CH6/EX6.5/result_ex_6_5.txt
@@ -0,0 +1,2 @@
+* Voltage at non-inverting terminal is = 1 V
+* Output voltage is = 3 V \ No newline at end of file
diff --git a/199/CH6/EX6.6/Example_6_6.sce b/199/CH6/EX6.6/Example_6_6.sce
new file mode 100755
index 000000000..583761f25
--- /dev/null
+++ b/199/CH6/EX6.6/Example_6_6.sce
@@ -0,0 +1,10 @@
+// Chapter6
+// Page.No-205, Figure.No-6.9
+// Example_6_6
+// Output voltage
+// Given
+clear;clc;
+Va=2;Vb=3;Vc=4;Vd=5; // Input voltages in volts
+R=1*10^3;
+Vo=-Va-Vb+Vc+Vd; // Output voltage
+printf("\n Output voltage is = %.f V \n",Vo) \ No newline at end of file
diff --git a/199/CH6/EX6.6/result_ex_6_6.txt b/199/CH6/EX6.6/result_ex_6_6.txt
new file mode 100755
index 000000000..992e256e2
--- /dev/null
+++ b/199/CH6/EX6.6/result_ex_6_6.txt
@@ -0,0 +1 @@
+* Output voltage is = 4 V \ No newline at end of file
diff --git a/199/CH6/EX6.7/Example_6_7.sce b/199/CH6/EX6.7/Example_6_7.sce
new file mode 100755
index 000000000..2de0037f6
--- /dev/null
+++ b/199/CH6/EX6.7/Example_6_7.sce
@@ -0,0 +1,21 @@
+// Chapter6
+// Page.No-209, Figure.No-6.12
+// Example_6_7
+// Output voltage
+// Given
+clear;clc;
+R1=1*10^3;Rf=4.7*10^3;Ra=100*10^3;Rb=100*10^3;Rc=100*10^3;
+Vdc=5;
+Rt=100*10^3; // Resistance of a thermistor
+temp_coeff=1*10^3;
+
+// Output voltage at 0 degree
+delta_R=-temp_coeff*(0-25); // Change in resistance
+R=Ra; // Ra=Rb=Rc=R
+Vo=((Rf*delta_R)/(R1*4*R))*Vdc;
+printf("\n Output voltage at 0 degree is = %.2f V \n",Vo)
+
+// Output voltage at 100 degree
+delta_R=-temp_coeff*(100-25); // Change in resistance
+Vo=((Rf*delta_R)/(R1*4*R))*Vdc;
+printf("\n Output voltage at 100 degree is = %.2f V \n",Vo) \ No newline at end of file
diff --git a/199/CH6/EX6.7/result_ex_6_7.txt b/199/CH6/EX6.7/result_ex_6_7.txt
new file mode 100755
index 000000000..7f5f4d155
--- /dev/null
+++ b/199/CH6/EX6.7/result_ex_6_7.txt
@@ -0,0 +1,2 @@
+* Output voltage at 0 degree is = 1.47 V
+* Output voltage at 100 degree is = -4.41 V \ No newline at end of file
diff --git a/199/CH6/EX6.8/Example_6_8.sce b/199/CH6/EX6.8/Example_6_8.sce
new file mode 100755
index 000000000..6a435025c
--- /dev/null
+++ b/199/CH6/EX6.8/Example_6_8.sce
@@ -0,0 +1,12 @@
+// Chapter6
+// Page.No-209, Figure.No-6.12
+// Example_6_7
+// Change in resistance in straingage
+// Given
+clear;clc;
+A=-100; // Gain of the differential instrumentation amplifier
+Ra=100;Rb=100;Rc=100;
+Vdc=10;Vo=1;
+R=Ra; // Ra=Rb=Rc=R
+delta_R=(Vo*R)/(Vdc*abs(A)); // Change in resistance
+printf("\n Change in resistance is = %.1f ohm \n",delta_R) \ No newline at end of file
diff --git a/199/CH6/EX6.8/result_ex_6_8.txt b/199/CH6/EX6.8/result_ex_6_8.txt
new file mode 100755
index 000000000..5ecb627b6
--- /dev/null
+++ b/199/CH6/EX6.8/result_ex_6_8.txt
@@ -0,0 +1 @@
+* Change in resistance is = 0.1 V \ No newline at end of file
diff --git a/199/CH6/EX6.9/Example_6_9.sce b/199/CH6/EX6.9/Example_6_9.sce
new file mode 100755
index 000000000..692050eaf
--- /dev/null
+++ b/199/CH6/EX6.9/Example_6_9.sce
@@ -0,0 +1,12 @@
+// Chapter6
+// Page.No-216, Figure.No-6.14(a)
+// Example_6_9
+// Gain of the amplifier
+// Given
+clear;clc;
+Vo=3.7;Vin=100*10^-3;
+R1=100; // Assume
+Rf=0.5*((Vo*R1)/Vin-1); // Feedback resisrance
+printf("\n Feedback resisrance is = %.1f ohm \n",Rf)
+A=(1+2*Rf/R1); // Gain of the differential amplifier
+printf("\n Gain of the differential amplifier is = %.1f \n",A) \ No newline at end of file
diff --git a/199/CH6/EX6.9/result_ex_6_9.txt b/199/CH6/EX6.9/result_ex_6_9.txt
new file mode 100755
index 000000000..4cf485d85
--- /dev/null
+++ b/199/CH6/EX6.9/result_ex_6_9.txt
@@ -0,0 +1,2 @@
+* Feedback resisrance is = 1849.5 ohm
+* Gain of the differential amplifier is = 38.0 \ No newline at end of file