summaryrefslogtreecommitdiff
path: root/887/CH1/EX1.5/1_5.sce
blob: aa729b1d78f49deb9fabe524555e4668c8599fb1 (plain)
1
2
3
4
5
6
7
8
clc
//ex1.5
P=1500;      //power of heater
V=120;      //operating voltage
R=V^2/P;      //resistance of heater element
i=V/R;      //operating current
disp(R,'resistance of heater element in ohms')
disp(i,'operating current in amperes')