summaryrefslogtreecommitdiff
path: root/2102/CH4/EX4.12
diff options
context:
space:
mode:
Diffstat (limited to '2102/CH4/EX4.12')
-rwxr-xr-x2102/CH4/EX4.12/exa_4_12.sce18
1 files changed, 18 insertions, 0 deletions
diff --git a/2102/CH4/EX4.12/exa_4_12.sce b/2102/CH4/EX4.12/exa_4_12.sce
new file mode 100755
index 000000000..89e236138
--- /dev/null
+++ b/2102/CH4/EX4.12/exa_4_12.sce
@@ -0,0 +1,18 @@
+// Exa 4.12
+clc;
+clear;
+close;
+// Given data
+Vout= 8;// in V
+V_F= 1.8;// in V
+Ip_max= 16;// in mA
+Ip_max= Ip_max*10^-3;// in A
+I_F= Ip_max;
+Rs1= (Vout-V_F)/I_F;// in Ω
+disp(Rs1,"If V_F= 1.8, then the value of Rs in Ω is :")
+// If
+V_F= 2.0;// in V
+Rs2= (Vout-V_F)/I_F;// in Ω
+disp(Rs2,"If V_F= 2.0, then the value of Rs in Ω is :")
+disp("In either case, the smallest standard value resistor that has a value greater than "+string(Rs1)+ "Ω and "+string(Rs2));
+disp("ohm resistor .is the 390 Ω")