summaryrefslogtreecommitdiff
path: root/275/CH1/EX1.1.26/Ch1_1_26.sce
blob: ce18fda747c938ad0dda2b32f524c2de19d43e44 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
clc
disp("Example 1.26")
printf("\n")
disp("calculate the diode current across 2 diodes")
//given
V=12
Vd1=0.7
Vd2=0.7
R=10^3
//current
I=(V-(Vd1+Vd2))/R
printf("Diode current =%f Ampere",I)