BEGIN{ freq[1]=611 freq[2]=955 freq[3]=955 freq[4]=1306 freq[5]=1443 freq[6]=1443 freq[7]=2973 freq[8]=3056 freq[9]=3056 i=1 } { ch3br[i]=$1 i++ } END{ i = 1 if (i <= 9){ sum = sum + (freq[i] - ch3br[i])**2 } printf("%3.1f \n", sqrt(sum)) }