summaryrefslogtreecommitdiff
path: root/1523/CH4/EX4.2/ex4_2.sce
blob: c7b748db1b671a99de6762602f82d90d5f7360b3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//AC Circuits:example 4.2:(pg4.4)
f=50;
Im=100;
i1=86.6;
t=(1/600);
pi=3.14;
disp("f=50 c/s");
disp("Im=100 A");
// part(a)
disp("i=Im*sin(2*pi*f*t)");
i=Im*sin(2*pi*f*t);
printf("i=%.f A",i);
// part (b)
disp("i=Im*sin(2*pi*f*t1)");
t1=(asind(i1/Im)/(2*pi*f));
printf("t1=%.e second",t1);