summaryrefslogtreecommitdiff
path: root/74/CH3/EX3.18/example18_sce.sce
diff options
context:
space:
mode:
Diffstat (limited to '74/CH3/EX3.18/example18_sce.sce')
-rwxr-xr-x74/CH3/EX3.18/example18_sce.sce15
1 files changed, 15 insertions, 0 deletions
diff --git a/74/CH3/EX3.18/example18_sce.sce b/74/CH3/EX3.18/example18_sce.sce
new file mode 100755
index 000000000..ae3192cb9
--- /dev/null
+++ b/74/CH3/EX3.18/example18_sce.sce
@@ -0,0 +1,15 @@
+// chapter 3
+//example 3.18
+// page 150, figure 3.55
+Rf=10*10^3;R1=100*10^3;
+Rf1=100*10^3;R11=10*10^3;
+Vin1=1;// let suppose
+Vin2=2
+Vout1=(1+(Rf/R1))*Vin1;// 1st stage is non inverting amplifier
+disp(Vout1)
+// second stage there are two input Vout1 and Vin2 aplly superposition theorem
+Vout2=-(Rf1/R11)*Vout1;
+//with Vout1 grounded,Vin2 active ,it behave as non-inverting amplifier
+Vout3=(1+(Rf1/R11))*Vin2;
+Vout=Vout2+Vout3;
+disp(Vout) \ No newline at end of file