summaryrefslogtreecommitdiff
path: root/181/CH2/EX2.15/example2_15.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.15/example2_15.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.15/example2_15.sce')
-rwxr-xr-x181/CH2/EX2.15/example2_15.sce24
1 files changed, 24 insertions, 0 deletions
diff --git a/181/CH2/EX2.15/example2_15.sce b/181/CH2/EX2.15/example2_15.sce
new file mode 100755
index 000000000..09ca90141
--- /dev/null
+++ b/181/CH2/EX2.15/example2_15.sce
@@ -0,0 +1,24 @@
+// Find voltage to be applied
+// Basic Electronics
+// By Debashis De
+// First Edition, 2010
+// Dorling Kindersley Pvt. Ltd. India
+// Example 2-15 in page 96
+
+clear; clc; close;
+
+// Given data
+J_0=500*10^-3; // Saturation current density in mA/m^2
+J=10^5; // Forward current density in A/m^2
+e=1.6*10^-19; // Charge on an electron in C
+etaK=1.38*10^-23; // Constant of calculation
+T=350; // Temperature in K
+
+// Calculation
+A=2.303*log10(2*10^5);
+V=(A*etaK*T)/e;
+
+printf("Voltage to be applied = %0.4f V",V);
+
+// Result
+// The voltage to be applied = 0.3685 V \ No newline at end of file