summaryrefslogtreecommitdiff
path: root/3630/CH3/EX3.7/Ex3_7.sce
blob: 1a978b21ea72762bf7f1d3b67ded8e387a68cb2b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
clc;
//ex3.7;
Vac=24;//volt
Vspk=Vac/0.707; //volt
Vlpk=Vspk-0.7; //volt
RL=20000; //Ohm
Ilpk=Vlpk/RL; //Ampere
Iave=Ilpk/3.14; //Ampere
disp('V',Vspk,"Vspk="); //The answers vary due to round off error
disp('V',Vlpk,"Vlpk="); //The answers vary due to round off error
disp('mili Amperes',Ilpk*1000,"Ilpk="); //The answers vary due to round off error
disp('Micro Amperes',Iave*1000000,"Ilpk="); //The answers vary due to round off error