summaryrefslogtreecommitdiff
path: root/3835/CH4/EX4.6/Ex4_6.sce
blob: 6ffd7a5e5d124c168c1595dafb93bc17a7e347c0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
clear
//
//from graph 
a=0
b=5**2
c=10**2
c=20**2
d=40**2
e=50**2
f=40**2
g=20**2
h=10**2
i=5**2
v=(0.1*(a+b+c+d+e+f+g+h+i))**0.5 //%pi and omega values get cancelled
printf("\n v= %0.1f  V",v)
vavg=0.1*(0+5+10+20+40+50+40+20+10+5)
printf("\n vavg= %0.1f  v",vavg)
ff=v/(vavg)
printf("\n %0.1f",ff)
pf=50/(v) //50 is the maximum value
printf("\n %0.1f",pf)
v=0.707*50 
printf("\n rms value for a sin wave with the same peak value is= %0.1f  V",v)