summaryrefslogtreecommitdiff
path: root/226/CH3/EX3.25/example25_sce.sce
diff options
context:
space:
mode:
Diffstat (limited to '226/CH3/EX3.25/example25_sce.sce')
-rwxr-xr-x226/CH3/EX3.25/example25_sce.sce14
1 files changed, 14 insertions, 0 deletions
diff --git a/226/CH3/EX3.25/example25_sce.sce b/226/CH3/EX3.25/example25_sce.sce
new file mode 100755
index 000000000..5e5f8af08
--- /dev/null
+++ b/226/CH3/EX3.25/example25_sce.sce
@@ -0,0 +1,14 @@
+//chapter 3
+//example 3.25
+//page 125
+printf("\n")
+printf("given\n")
+Vf=.7;E=6;Vb1=3;
+Vc=Vb1-Vf-(-E)
+Vo=Vb1-Vf
+disp("when input is +E")
+Vo=E+Vc
+Vc=E-Vb1-Vf
+Vo=Vb1+Vf
+disp("when input is -E")
+Vo=-E+(-Vc) \ No newline at end of file