summaryrefslogtreecommitdiff
path: root/3775/CH2/EX2.8/Ex2_8.sce
blob: e8f53b605912cfda72f86687e895b8ce00c1a4c7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
//Ex 2.8 page 72

clc;
clear;
close;

IS1=100;// A
IS2=150;// A
vd1=2.1;// V
vd2=1.75;// V
I=250;// A

rf1=vd1/IS1;// ohm
rf2=vd2/IS2;// ohm
// Equating voltage drops
// vd1+IS1*re = vd2+IS2*re
re=(vd1-vd2)/(IS2-IS1)
printf(' Series resistance = %.3f ohm',re)