Using the data from the example in Section 6.7 where n = 12.
=
0.017
n
=
0.146
v§
=
0.371
v\
0.629
vl
=
0.854
vl
=
0.983
v
2
7
0.983
vl
=
0.854
vl
=
0.629
Vlo
=
0.371
V
2
u
=
0.146
V
2
2
=
0.017
5.998
r.m.s.
value
The form factor for a sine wave =
peak value
10
PRINT "PROG 65"
20
PRINT "RMS VALUE OF A SINE WAVE"
30
INPUT "ENTER FIRST MIDORDINATE IN DEGREES" ; S
40
LET T=S*2
50
LET N=180/T
60
LET A=SIN(S*3.141593/180)"2
70
PRINT A
80
LET W=0
90
LET Y=0
100
LET S=S+T
110
LET Z=SIN(S*3.141593/180)^2
120
PRINT Z
130
LET W=Z+W
140
LET Y=Y+1
150
IF Y<N-1 TIIEN GOTO 100
160
LET C=W+A
170
PRINT "TOTAL = " C
180
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month, and much more.