summaryrefslogtreecommitdiff
path: root/181/CH2/EX2.17/example2_17.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /181/CH2/EX2.17/example2_17.sce
downloadScilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip
initial commit / add all books
Diffstat (limited to '181/CH2/EX2.17/example2_17.sce')
-rwxr-xr-x181/CH2/EX2.17/example2_17.sce25
1 files changed, 25 insertions, 0 deletions
diff --git a/181/CH2/EX2.17/example2_17.sce b/181/CH2/EX2.17/example2_17.sce
new file mode 100755
index 000000000..f39e21b91
--- /dev/null
+++ b/181/CH2/EX2.17/example2_17.sce
@@ -0,0 +1,25 @@
+// Calculate current and voltage
+// Basic Electronics
+// By Debashis De
+// First Edition, 2010
+// Dorling Kindersley Pvt. Ltd. India
+// Example 2-17 in page 97
+
+clear; clc; close;
+
+// Given data
+I1=2*10^-6; // Saturation current in A
+I2=4*10^-6; // Saturation current in A
+Vz=100; // Breakdown voltages are equal
+eta=2; // Constant of calculation
+
+// Calculation
+printf("At V=90V,none of the diodes will break down.I is determined by the diode with the smallest I_0\n");
+printf("Thus for D1,I = 1 mu-A and for D2,I = -1 mu-A\n");
+V2=eta*0.026*log(1-(I1/I2));
+printf("(a)V2 = %0.1e V\n",V2);
+printf("(b)V1 = -89.964 V");
+
+// Result
+// (a) V2 = -36 mV
+// (b) V1 = -89.964 V \ No newline at end of file