s^2=( 1/n)*[(x 1-x0)^2+(x2-x0)^2 +)...+ (xn-x0)^2)
(x0 is the average value of x)
Range calculation formula:
x=xmax-xmin
(xmax is the maximum and xmin is the minimum)