summaryrefslogtreecommitdiff
path: root/3630/CH3/EX3.10/Ex3_10.sce
blob: 3486f099853ea666d050fa1db6d7cd089ce88663 (plain)
1
2
3
4
5
6
7
8
9
 clc;
//ex3.10
Vlpk=20.5; //volt
RL=5100; //ohm
Ilpk=Vlpk/RL; //Ampere// from v=r*i
Vave=13.1;  //volt//from v=r*i
Iave=Vave/RL; //Ampere
disp('mA',Ilpk*1000,"Ilpk="); //The answers vary due to round off error
disp('mA',Iave*1000,"Iave="); //The answers vary due to round off error