BEGIN{ freq[1]=1049 freq[2]=1182 freq[3]=1182 freq[4]=1464 freq[5]=1467 freq[6]=1467 freq[7]=2930 freq[8]=3006 freq[9]=3006 i=1 } { ch3f[i]=$1 i++ } END{ for(i=1;i<10;i++){ sum = sum + (freq[i] - ch3f[i])**2 } printf("%3.1f \n", sqrt(sum/9)) }