sd1 and sd2 are the standard deviation of two array .
var sd1 = sd ( arr1 , n ) ; var sd2 = sd ( arr2 , m ) ; document . write ( " " + sd1 . toFixed ( 3 ) + " " ) ; document . write ( " " + sd2 + " " + " " ) ;