什么是排列组合计算器?

免费在线排列组合计算器。计算排列数和组合数。

排列和组合是概率、统计和组合学中的基本计数方法。关键区别在于:排列(nPr)计算顺序重要的排列方式——比如从 10 名参赛者中选出第 1、2、3 名的获奖者。组合(nCr)计算顺序不重要的选择方式——比如从 10 人中选出 3 名委员会成员。排列与组合计算器可同时计算两者,并提供阶乘分解。

输入项目总数(n)和要选择的项目数(r)。工具会立即显示排列(nPr)和组合(nCr)的值。公式视图显示完整计算过程:nPr = n! / (n-r)! 和 nCr = n! / (r! × (n-r)!)。

阶乘分解显示逐步计算:n!、r!、(n-r)! 以及最终除法。这种透明度有助于学生理解数字的来源,并手动验证计算。对于 n=10, r=3:10! = 3,628,800,7! = 5,040,所以 10P3 = 3,628,800/5,040 = 720,而 10C3 = 3,628,800/(6 × 5,040) = 120。

工具使用优化的阶乘计算高效处理大数值。对于非常大的 n 值(超过 170),标准 JavaScript 数字会溢出,因此工具对超过 Number.MAX_VALUE 的结果显示”无穷大“。调整 n 和 r 值时结果会即时更新。

排列组合计算器的实际应用案例

计算比赛中的可能名次

10 名参赛者角逐金、银、铜牌。顺序很重要(第 1、2、3 名各不相同)。使用 n=10, r=3:10P3 = 720 种可能的领奖台排列。阶乘分解显示 10!/7! = 720。

从群体中选出委员会

您需要从 10 人中选出一个 3 人委员会。顺序不重要(无论选择顺序如何,”在委员会中“都是一样的)。使用 n=10, r=3:10C3 = 120 种可能的委员会。将其与 720 种排列比较——组合的结果总是更少。

计算彩票中奖几率

一个彩票要求从 49 个数字中选出 6 个。顺序不重要(任何匹配的 6 个数字组合都能中奖)。使用 n=49, r=6:49C6 = 13,983,816 种可能的组合。用一张彩票中奖的几率约为 1400 万分之一。

为什么要使用排列组合计算器?

  • 排列(nPr)和组合(nCr)
  • n!、r! 和 (n-r)! 的阶乘分解
  • 高效处理大数值
  • 适用于概率和计数问题

如何使用排列组合计算器 — 分步指南

1

输入项目总数(n)。

2

输入要选择的项目数(r)。

3

即时查看 nPr(排列)和 nCr(组合)。

4

查看每个组件的阶乘分解。

排列组合计算器适合哪些人?

  • 概率问题
  • 统计
  • 彩票概率
  • 数学竞赛

排列组合计算器专业技巧

  • 1记住关键问题:顺序重要吗?如果重要,使用排列(nPr)。如果不重要,使用组合(nCr)。选出主席、副主席和财务主管是排列。选出委员会则是组合。
  • 2对于相同的 n 和 r,nPr 总是大于 nCr(除非 r=0 或 r=1,此时两者相等)。这很合理:有序排列比无序选择更丰富。
  • 3一个数字的阶乘(!)是所有不大于该数的正整数的乘积。5! = 5×4×3×2×1 = 120。0! 定义为 1。
  • 4当 r = n 时,nPr = n!(所有可能的排序),nCr = 1(只有一种选择全部的方式)。当 r = 0 时,nPr 和 nCr 都等于 1。

排列组合计算器 — 常见问题

What is the difference between permutation and combination?

Permutations (nPr) count arrangements where order matters. Combinations (nCr) count selections where order does not matter. For example, picking 3 winners from 10 — if order of winners matters, use permutation.

Why does my result show NaN?

If r is larger than n, or if negative values are entered, the result will be NaN (not a number). Ensure n ≥ r and both are non-negative.

How accurate are the calculations?

All calculations use double-precision floating-point arithmetic following IEEE 754 standards. Financial calculations like loans and compound interest are verified against standard spreadsheet formulas.

Can I round results to a specific number of decimal places?

Results are typically displayed with up to 10 significant digits. You can mentally round to your desired precision for most practical use cases.

Is 排列组合计算器 really free to use?

Yes, 排列组合计算器 is completely free with no hidden charges, no usage limits, and no premium tiers. You can use it as often as you need without signing up or providing any personal information.

准备使用排列组合计算器?

免费在线工具 — 在浏览器中运行,无需注册,打开即用。

立即体验
Free Forever · No Sign-up

182 Free Tools at Your Fingertips

All free online tools for developers, designers, students, and creators. Every tool works in your browser — no sign-up, no data collection.