ຕົວຄິດໄລ່ການລວມເອົາ (nCr)
ຄິດໄລ່ວິທີທີ່ຈະເລືອກຕົວຢ່າງ r ຈາກ n ເມື່ອການຈັດລໍາດັບບໍ່ເປັນບັນຫາຫຍັງ
ຜົນການຄົ້ນຫາຈະຖືກອັບເດດເມື່ອທ່ານພິມມັນຂຶ້ນມາ ។
ກ່ຽວກັບເຄື່ອງຄິດໄລ່ນີ້
A combination counts how many ways you can choose r items from a set of n when order does not matter — picking the same group in a different sequence counts once. This calculator returns the exact count, the formula, and the matching number of ordered arrangements (nPr) for comparison.
The formula is nCr = n! / (r! × (n − r)!). For 10 items taken 3 at a time there are 120 distinct groups. Combinations are always smaller than permutations because each unordered group corresponds to r! different orderings, so nCr = nPr ÷ r!. Choosing none or all gives nC0 = nCn = 1, and as with permutations, r cannot exceed n.
Combinations answer "how many groups?" — the odds in a lottery, the number of possible five-card poker hands, ways to pick a committee, or terms in a binomial expansion. The value nCr is also called the binomial coefficient, the "n choose r" number in Pascal's triangle.
ຄໍາຖາມທີ່ຖາມເລື້ອຍໆ
ວິທີການລວມເອົາຮູບຮ່າງ?
nCr = n! / (r! × (n - r)!). ສໍາລັບ 10 ລາຍການທີ່ໃຊ້ເວລາ3ໃນເວລາ: 120 ກຸ່ມທີ່ແຕກຕ່າງກັນ.
ເຮັດຫຍັງ nCr ນ້ອຍກວ່າ nPr?
ການລວມເອົາບໍ່ໄດ້ລະວັງການຈັດລຽງ, ດັ່ງນັ້ນກຸ່ມທີ່ບໍ່ໄດ້ຈັດລຽງແຕ່ລະກຸ່ມແມ່ນກົງກັບ r! ຈັດລຽງການປ່ຽນແປງ. ນັ້ນແມ່ນເຫດຜົນທີ່ວ່າ nCr = nPr ÷ r!.
ເມື່ອໃດທີ່ຂ້ອຍຄວນໃຊ້ການລວມຕົວ?
ເມື່ອການຈັດລຽງບໍ່ສຳຄັນ: ຈໍານວນລາງວັນ, ມືຂອງບັດ, ເລືອກຄະນະກໍາມະການ, ຫຼືການເລືອກໃດໆທີ່ກຸ່ມແມ່ນສິ່ງທີ່ມີຄ່າ, ບໍ່ແມ່ນການຈັດວາງຂອງມັນ.
ຕົວຊີ້ວັດສອງຕົວແມ່ນຫຍັງ?
ມັນແມ່ນຊື່ອື່ນສຳລັບ nCr, ຄ່າ "n ເລືອກ r" ທີ່ປາກົດໃນທັດສະນະຄະຕິສອງຕົວ ແລະ ສ້າງລາຍການຂອງສາມຫຼ່ຽມ Pascal.
ອັນໃດຄື nC0 ຫຼື nCn?
ທັງສອງເທົ່າກັບ 1 - ມີວິທີໜຶ່ງທີ່ຈະເລືອກບໍ່ເລືອກ ແລະ ວິທີໜຶ່ງທີ່ຈະເລືອກພວກມັນທັງ ໝົດ.
ເຄື່ອງມືນີ້ຈະສະແດງການປ່ຽນແປງໄດ້ບໍ່?
ແມ່ນແລ້ວ. ມັນສະແດງ nPr = nCr × r! ຂ້າງຄຽງການລວມເຂົ້າດັ່ງນັ້ນທ່ານສາມາດປຽບທຽບການນັບທີ່ຈັດລຽງແລະບໍ່ຈັດລຽງ.
API — ໃຊ້ເຄື່ອງຄິດໄລ່ນີ້ຈາກໂປຣແກຣມ
ໂທເຄື່ອງຄິດໄລ່ນີ້ເປັນຈຸດຈົບ JSON ຟຣີ - ບໍ່ຕ້ອງການກູໂກ. ສົ່ງຄ່າພື້ນທີ່ຂ້າງລຸ່ມນີ້ເປັນປາຣມາຕິກຄໍາຖາມ ຫຼື JSON. ທຸກສິ່ງທີ່ທ່ານລົບອອກ ຈະໃຊ້ຕົວອັກສອນທີ່ໜ້ານີ້ໄດ້ຕື່ມໄວ້ກ່ອນ; ພາຣາມິເຕີທີ່ບໍ່ຮູ້ແມ່ນ 400, ບໍ່ແມ່ນສະກຸນທີ່ບໍ່ມີສຽງເລີຍ. ອ່ານເອກະສານ API ເຕັມ →
ຈຸດສຸດທ້າຍ
GET https://calculator.free/api/v1/combination/
curl
curl "https://calculator.free/api/v1/combination/?n=10&r=3"
JavaScript fetch()
const r = await fetch(
"https://calculator.free/api/v1/combination/?" + new URLSearchParams({
"n": "10",
"r": "3"
}));
const data = await r.json();
console.log(data.results);
ຜົນໄດ້ຮັບແມ່ນຄາດຄະເນສໍາລັບຄໍາແນະນໍາທົ່ວໄປເທົ່ານັ້ນ, ບໍ່ການເງິນ, ຄໍາແນະນໍາທາງການແພດຫຼືພາສີ.