summaryrefslogtreecommitdiff
path: root/3630/CH3/EX3.11/Ex3_11.sce
blob: f6ec2e9c960ca3412142e726b672336037921f22 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
clc;
//ex3.11
Vac=12; //volt
Vspk=Vac/0.707; //volt
Vf=0.7; //volt
Vlpk=Vspk-2*Vf; //volt
Vave=(2*Vlpk)/%pi; //volt
RL=120; //ohm
Iave=Vave/RL; //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('V',Vave,"Vave="); //The answers vary due to round off error
disp('mA',Iave*1000,"Iave="); //The answers vary due to round off error