summaryrefslogtreecommitdiff
path: root/2534/CH2/EX2.19/Ex2_19.sce
blob: a1559e54a0359c6393c01fd76c8377ea4705a82b (plain)
1
2
3
4
5
6
7
8
9
10
//Ex2_19
clc
VNL = 50
VL = 40
IL = 4
Rs = (VNL - VL)/IL
disp("VNL  = "+string(VNL)+"V")//no load voltage
disp("VL  = "+string(VL)+"V")//load voltage
disp("IL  = "+string(IL)+"A")//load current
disp("Rs = (VNL - VL)/IL = "+string(Rs)+"ohm")//source resistane