summaryrefslogtreecommitdiff
path: root/2498/CH2/EX2.27
diff options
context:
space:
mode:
Diffstat (limited to '2498/CH2/EX2.27')
-rwxr-xr-x2498/CH2/EX2.27/ex2_27.sce20
1 files changed, 20 insertions, 0 deletions
diff --git a/2498/CH2/EX2.27/ex2_27.sce b/2498/CH2/EX2.27/ex2_27.sce
new file mode 100755
index 000000000..183370754
--- /dev/null
+++ b/2498/CH2/EX2.27/ex2_27.sce
@@ -0,0 +1,20 @@
+// Exa 2.27
+clc;
+clear;
+close;
+format('v',6)
+// Given data
+Vi = 10;// in V
+V1 = 6;// in V
+R = 10;// in k ohm
+R = R * 10^3;// in ohm
+// The value of i_Rmax
+i_Rmax = (Vi-V1)/R;// in A
+i_Rmax = i_Rmax * 10^3;// in mA
+Vi = -10;// in V
+V1 = 8;// in V
+// The value of i_R
+i_R =(Vi+V1)/R;// in A
+i_R =i_R * 10^3;// in mA
+disp(i_Rmax,"The value of i_Rmax in mA is : ")
+disp(i_R,"The value of i_R in mA is : ")