Var: Difference between revisions

From The K Language Wiki
Content added Content deleted
("Add all appropriate categories to each verb")
("More lowercasing")
Line 1: Line 1:
{{primitive|var x|in=K7, K9}}
{{primitive|var x|in=K7, K9}}


'''Var''' gets the variance of a list.
'''var''' gets the variance of a list.


It can also be made using the [[avg]] function.
It can also be made using the [[avg]] function.

Revision as of 04:43, 9 July 2022

Var
var x
Supported in K7, K9

var gets the variance of a list.

It can also be made using the avg function.

 var !10
8.25

 {(+/x*x:x-avg x)%#x}@!10
8.25