summaryrefslogtreecommitdiff
path: root/275/CH1/EX1.1.35/Ch1_1_35.sce
blob: e7498ceac08eee1e287e962e12384642ad7add07 (plain)
1
2
3
4
5
6
7
8
9
10
11
clc
disp("Example 1.35")
printf("\n")
disp("find out series resistance in circuit fig 1.32")
V=3
rd=0.5
Vr=0.3
IF=174*10^-3
//resistance
R=(V-Vr-(IF*rd))/IF
printf("The value of resistance is \n%f ohm\n",R)