summaryrefslogtreecommitdiff
path: root/3835/CH4/EX4.3/Ex4_3.sce
blob: a44645e7dcf392f940bc72f977888c6a5e1230d5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
clear
//
//given
//i=14.14*sin(314t)-->i=im*sin(omega*t)
//case a
im=14.14
i=14.14/1.414 //1.414 is  the value of root 2
printf("\n i= %0.1f  A",i)
//case b
//omega=314=2*3.14*f
f=314/(2*3.14)
printf("\n f= %0.1f  A",f)
//case c
t=0.002
//i=im*sin(omega*t)
p=0.01096 //value of sin(omega*t)
i=im*p
printf("\n i= %0.1f  A",i)
printf("\n NOTE:Answer calculated wrongly in textbook for i obtained here")