⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 rms.awk

📁 awk scripts awk scripts awk scripts awk scripts
💻 AWK
字号:
# A program to compute the square root of the
# sum of the squares of a set of numbers.
# The set of numbers is provided as input -
# one number to a record.
#
# NR is the current record number.  In the END
# section it is the number of records.

BEGIN {
        sum_of_squares = 0
}
{
        sum_of_squares += $1 * $1
}
END {
        root_mean_square = sqrt(sum_of_squares / NR)
        print root_mean_square
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -