blob: f9b07d9a8255c335eeb7b29b863b53e632d2dd68 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
p=60;
v=120;
f=60;
disp("Part a");
r=v^2/p;
disp("the normal hot resistance (in Ω) is"); disp(r);
disp("Part b");
vrms=v/sqrt(2);
disp("the r.m.s. voltage (in V) is"); disp(vrms);
disp("Part c");
v1=85;
r1=r*v1/v;
disp("the resistance (in Ω) of the lamp is"); disp(r1);
disp("Part d");
prms=vrms^2/r1;
disp("the r.m.s. power delivered to the lamp (in W) is"); disp(prms);
disp("Part e");
piv=v*sqrt(2);
disp("the peak inverse voltage (in V) is"); disp(piv);
|