summaryrefslogtreecommitdiff
path: root/74/CH4
diff options
context:
space:
mode:
Diffstat (limited to '74/CH4')
-rwxr-xr-x74/CH4/EX4.1/example1_sce.sce9
-rwxr-xr-x74/CH4/EX4.2/example2_sce.sce10
-rwxr-xr-x74/CH4/EX4.3/example3_sce.sce19
-rwxr-xr-x74/CH4/EX4.4/example4_sce.sce11
-rwxr-xr-x74/CH4/EX4.5/example5_sce.sce7
5 files changed, 56 insertions, 0 deletions
diff --git a/74/CH4/EX4.1/example1_sce.sce b/74/CH4/EX4.1/example1_sce.sce
new file mode 100755
index 000000000..a7bfe173e
--- /dev/null
+++ b/74/CH4/EX4.1/example1_sce.sce
@@ -0,0 +1,9 @@
+// chapter 4
+//example 4.1
+// page 193 ,figure 4.20
+R1=120;R2=51*10^3;//given
+Vsat=15;Vcc=15;Vee=15;Vin=1;//given
+Vut=((Vsat*R1)/(R1+R2));
+disp(Vut)//result threshold in ampere
+Vult=((-Vsat*R1)/(R1+R2));
+disp(Vult)//ampere \ No newline at end of file
diff --git a/74/CH4/EX4.2/example2_sce.sce b/74/CH4/EX4.2/example2_sce.sce
new file mode 100755
index 000000000..f2846af9a
--- /dev/null
+++ b/74/CH4/EX4.2/example2_sce.sce
@@ -0,0 +1,10 @@
+//chapter 4
+//example 4.2
+//page 193,figure 4.21
+Vsat=12;Vh=6;
+// Vh=(R1/R1+R2)(Vsat-(-Vsat))
+R1=10000;// let assume
+x=(Vh/(Vsat-(-Vsat)));
+disp(x)
+R2=((1-.25)*R1)/.25
+disp(R2,R1) \ No newline at end of file
diff --git a/74/CH4/EX4.3/example3_sce.sce b/74/CH4/EX4.3/example3_sce.sce
new file mode 100755
index 000000000..f042357a7
--- /dev/null
+++ b/74/CH4/EX4.3/example3_sce.sce
@@ -0,0 +1,19 @@
+// chapter 4
+// example 4.3
+// page 194
+Vp_p=5;//peak to peak volatage of sine wave
+Vlt=-1.5;//lower threshold level
+Vh=2;// hysteresis width
+f=1000;
+Vut=Vh-(-Vlt);
+disp(Vut)
+Vm=Vp_p/2;
+disp(Vm)
+//Vlt=Vm*sin(%pi+x)
+x=36.87;// taking sin invers
+T=1/f;
+disp(T)
+T1=(T*(180+x))/360;//T1 exist for angle 0 to (180+36.87)
+disp(T1)
+T2=T-T1;//t2 exist for angle 216.87 to 360
+disp(T2) \ No newline at end of file
diff --git a/74/CH4/EX4.4/example4_sce.sce b/74/CH4/EX4.4/example4_sce.sce
new file mode 100755
index 000000000..42e6de224
--- /dev/null
+++ b/74/CH4/EX4.4/example4_sce.sce
@@ -0,0 +1,11 @@
+// chapter 4
+//example 4.4
+//page 196
+Vsat=12;
+R1=1000;R2=3000;//given
+Vlt=(-(+Vsat)*R1)/R2;
+disp(Vlt)// lower threshold
+Vut=(-(-Vsat)*R1)/R2;//upper threshold
+disp(Vut)
+Vh=(R1/R2)*(Vsat-(-Vsat));//hysteresis width
+disp(Vh) \ No newline at end of file
diff --git a/74/CH4/EX4.5/example5_sce.sce b/74/CH4/EX4.5/example5_sce.sce
new file mode 100755
index 000000000..f08f16e3a
--- /dev/null
+++ b/74/CH4/EX4.5/example5_sce.sce
@@ -0,0 +1,7 @@
+// chapter 4
+// example 4.5
+//page 220
+Vin=5;
+FRR=80;
+Vout=Vin/10^4*log10(10);// FRR=20log(Vin/Vout)
+disp(Vout);//change in output voltage