summaryrefslogtreecommitdiff
path: root/275/CH1/EX1.1.34/Ch1_1_34.sce
diff options
context:
space:
mode:
Diffstat (limited to '275/CH1/EX1.1.34/Ch1_1_34.sce')
-rwxr-xr-x275/CH1/EX1.1.34/Ch1_1_34.sce18
1 files changed, 18 insertions, 0 deletions
diff --git a/275/CH1/EX1.1.34/Ch1_1_34.sce b/275/CH1/EX1.1.34/Ch1_1_34.sce
new file mode 100755
index 000000000..2984e3be1
--- /dev/null
+++ b/275/CH1/EX1.1.34/Ch1_1_34.sce
@@ -0,0 +1,18 @@
+clc
+disp("Example 1.34")
+printf("\n")
+disp("find out diode current")
+//given
+V=2
+Vr=0.6
+rd1=0
+rd2=0.2
+R=14
+//when rd=0
+//diode current
+I1=(V-Vr)/R
+printf("Diode current when rd=0 is \n%f ampere\n",I1)
+//when rd=0.2
+//diode current
+I2=(V-Vr)/(R+rd2)
+printf("Diode current when rd=0.2 is \n%f ampere\n",I2)