² 平方和计算器Sum of Squares Calculator
计算一组数的平方和 Σx²、离均差平方和 Σ(x−x̄)²(统计学 SS),以及 1² + 2² + … + n² 公式和。Sum of squares Σx², the deviation sum of squares Σ(x − x̄)² used in statistics, and 1² + 2² + … + n².
使用说明与常见问题How-to & FAQ
「平方和计算器」是什么?What is the Sum of Squares Calculator tool?
计算一组数的平方和 Σx²、离均差平方和 Σ(x−x̄)²(统计学 SS),以及 1² + 2² + … + n² 公式和。Sum of squares Σx², the deviation sum of squares Σ(x − x̄)² used in statistics, and 1² + 2² + … + n².
如何使用「平方和计算器」?How do I use the Sum of Squares Calculator tool?
在「平方和计算器」中,填写「n(可选,求 1²+…+n²)」等参数,结果会随输入实时计算并显示在下方。In the Sum of Squares Calculator: Fill in "n (optional, for 1² + … + n²)"; results are recalculated instantly as you type.
结果精确吗?Are the results exact?
对普通十进制输入(如 0.1、123456789.25、1e3),Σx²、平均数和 SS 都用 BigInt 做精确十进制计算,不会因浮点舍入出错;无限小数结果四舍五入到 12 位小数并标「≈」。1² + … + n² 也用 BigInt 精确计算。For ordinary decimal input (such as 0.1, 123456789.25 or 1e3), Σx², the mean and SS are computed exactly with BigInt decimal arithmetic, so there is no floating-point rounding; non-terminating results are rounded to 12 decimal places and marked "≈". 1² + … + n² is also exact via BigInt.
计算精度如何?How precise are the results?
「平方和计算器」使用 JavaScript 双精度浮点数(约 15–16 位有效数字),部分功能使用 BigInt 处理大整数。The Sum of Squares Calculator uses double-precision floating point (about 15–16 significant digits); some features use BigInt for large integers.
「平方和计算器」免费吗?需要注册吗?Is the Sum of Squares Calculator free? Do I need an account?
「平方和计算器」完全免费,无需注册或安装,打开网页即可使用,手机和电脑都能用;输入的内容只在你的浏览器本地处理。The Sum of Squares Calculator is completely free with no sign-up or install and works on phones and desktops; what you enter is processed only in your browser.