Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
|
|
@ -0,0 +1,16 @@
|
|||
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,","))
|
||||
sumVal = sumVal + stdData
|
||||
sumSqs = sumSqs + stdData^2
|
||||
|
||||
' 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