summaryrefslogtreecommitdiff
path: root/3835/CH4/EX4.2/Ex4_2.sce
blob: 9e41ffa415edc76bca472b15bd60cd6ac8e53278 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
clear
//
//given
vm=155
omega=377
//case a
t=(2*3.14)/(omega)
printf("\n t= %e  sec",t)
//case b
f=1/(t)
printf("\n f= %e  Hz",f)
//case c
v=109.60 //rms value
//at t=0 -77.5=155*sin(ang)
//therefore, ang=-0.5236 rad
ang=-0.5236
t=ang/omega
printf("\n t= %e  sec",t)