summaryrefslogtreecommitdiff
path: root/2072/CH21/EX21.1/Ex21_1.sce
blob: 9d5f9ec7b2b569ca513185bdfbe0d82b1616efb9 (plain)
1
2
3
4
5
6
7
8
//Example 21.1
clc;
V_max=200//in V
V_rms=(V_max)/sqrt(2)
R=100//in ohm
I_rms=V_rms/R
disp(V_rms,"Voltage in V=")
disp(I_rms,"Current in Amps=")