Data update
This commit is contained in:
parent
5150844a7d
commit
4bb20c9b71
7735 changed files with 38060 additions and 199180 deletions
|
|
@ -1,16 +1,12 @@
|
|||
dim sdSave$(100) 'can call up to 100 versions
|
||||
'holds (space-separated) number of data , sum of values and sum of squares
|
||||
sd$ = "2,4,4,4,5,5,7,9"
|
||||
|
||||
for num = 1 to 8
|
||||
stdData = val(word$(sd$,num,","))
|
||||
stdData = val(word$(sd$,num,","))
|
||||
sumVal = sumVal + stdData
|
||||
sumSqs = sumSqs + stdData^2
|
||||
|
||||
' standard deviation = square root of (the average of the squares less the square of the average)
|
||||
' standard deviation = square root of (the average of the squares less the square of the average)
|
||||
standDev =((sumSqs / num) - (sumVal /num) ^ 2) ^ 0.5
|
||||
|
||||
sdSave$(num) = str$(num);" ";str$(sumVal);" ";str$(sumSqs)
|
||||
print num;" value in = ";stdData; " Stand Dev = "; using("###.######", standDev)
|
||||
|
||||
next num
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue