summaryrefslogtreecommitdiff
path: root/181/CH3/EX3.27/example3_27.sce
diff options
context:
space:
mode:
Diffstat (limited to '181/CH3/EX3.27/example3_27.sce')
-rwxr-xr-x181/CH3/EX3.27/example3_27.sce24
1 files changed, 24 insertions, 0 deletions
diff --git a/181/CH3/EX3.27/example3_27.sce b/181/CH3/EX3.27/example3_27.sce
new file mode 100755
index 000000000..78b6a80f6
--- /dev/null
+++ b/181/CH3/EX3.27/example3_27.sce
@@ -0,0 +1,24 @@
+// Find currents and voltages
+// Basic Electronics
+// By Debashis De
+// First Edition, 2010
+// Dorling Kindersley Pvt. Ltd. India
+// Example 3-27 in page 179
+
+clear; clc; close;
+
+// Given data
+//Diode acts as short circuited.Both diodes are forward biased
+V1=0; // Voltage at junction 1 in V
+V2=0; // Voltage at junction 2 in V
+
+//Calculation
+I1=(20-V1)/(20*10^3);
+I2=(V2-(-10))/(20*10^3);
+
+printf("I1 = %0.0e A\n",I1);
+printf("I2 = %0.1e A",I2);
+
+// Result
+// I1 = 1 mA
+// I2 = 0.5 mA \ No newline at end of file