blob: 5fb2bc6ad38dd25b5a6a6c4cf157b5a2135b738f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
// Example 2.14
v=240;
p=1000; //toaster reted at 1000 w
R=v^2/p; // resistanc raring
Imax=p/v; // Current rating
v1=220;
I=v1/R; // Current at 220 v
p1=v1*I;
disp(' Power rating is = '+string(p1)+' Watt');
disp(' there for the Power rating is less then original power. ');
// p 28 2.14
|