summaryrefslogtreecommitdiff
path: root/929/CH2/EX2.3.b/Example2_3_b.sce
diff options
context:
space:
mode:
Diffstat (limited to '929/CH2/EX2.3.b/Example2_3_b.sce')
-rwxr-xr-x929/CH2/EX2.3.b/Example2_3_b.sce33
1 files changed, 33 insertions, 0 deletions
diff --git a/929/CH2/EX2.3.b/Example2_3_b.sce b/929/CH2/EX2.3.b/Example2_3_b.sce
new file mode 100755
index 000000000..ca11723eb
--- /dev/null
+++ b/929/CH2/EX2.3.b/Example2_3_b.sce
@@ -0,0 +1,33 @@
+//Example 2.3(b)
+
+clear;
+
+clc;
+
+vI=5;//Input Voltage
+
+R=10*10^3;
+
+Vsat=13;//Saturation Voltage
+
+iO=vI/R;//iO for Circuit shown in Fig.2.4(a) (from right to left)
+
+//For Circuit shown in Fig.2.4(a) VoL1<vL1<VoH1
+
+VoL1=-Vsat-vI;
+
+VoH1=Vsat-vI;
+
+printf("For Circuit shown in Fig.2.4(a) %.1f V< vL <",VoL1);
+
+printf("%.1f V",VoH1);
+
+//For Circuit shown in Fig.2.4(b) VoL2<vL2<VoH2
+
+VoL2=-Vsat;
+
+VoH2=Vsat;
+
+printf("\nFor Circuit shown in Fig.2.4(b) %.1f V< vL <",VoL2);
+
+printf("%.1f V",VoH2); \ No newline at end of file