summaryrefslogtreecommitdiff
path: root/181/CH3/EX3.28/example3_28.sce
blob: 9822297f9a70836759143082bb032541244c203e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// Find voltage across diode
// Basic Electronics
// By Debashis De
// First Edition, 2010
// Dorling Kindersley Pvt. Ltd. India
// Example 3-28 in page 180

clear; clc; close;

// Given data
I=0.1075; // Cirremt across diode in A
Rd=1; // Internal resistance of diode in ohm

// Calculation
Vd=I*Rd;
printf("Voltage across diode = %0.4f V",Vd);

// Result
// Voltage across diode = 0.1075 V