summaryrefslogtreecommitdiff
path: root/181/CH2/EX2.14/example2_14.sce
blob: 589aff5e821f0e02037087fbb743f9c0d74a7f5b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// Calculate the current flowing
// Basic Electronics
// By Debashis De
// First Edition, 2010
// Dorling Kindersley Pvt. Ltd. India
// Example 2-14 in page 96

clear; clc; close;

// Given data
I_0=9*10^-7; // Current flowing in A
V=0.1; // Applied forward bias in V

// Calculation
I=I_0*(exp(40*V)-1);
printf("Current flowing through diode = %0.2e A",I);

// Result
// Current flowing through the diode under forward bias = 48.15 mu-A