ម៉ាស៊ីនគិតលេខបន្សំ (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! លំដាប់ permutations. ហេតុនេះហើយបានជា nCr = nPr ÷ r!.
ពេលណាខ្ញុំគួរប្រើការផ្សំ?
ពេលដែលលំដាប់មិនសំខាន់ទេ ៖ លេខឡូតូ ដៃបៀ ជ្រើសគណៈកម្មការ ឬជម្រើសណាមួយដែលក្រុមគឺជាអ្វីដែលរាប់មិនមែនការរៀបចំរបស់វាទេ ។
តើអ្វីជាសមាមាត្រប៊ីនូមីម?
វាជាឈ្មោះផ្សេងទៀតសម្រាប់ nCr តម្លៃ "n ជ្រើស r" ដែលលេចឡើងក្នុងទ្រឹស្តីពីរនិមិត្តសញ្ញា និងបង្កើតធាតុនៃត្រីកោណរបស់ Pascal ។
តើអ្វីជា nC0 ឬ nCn?
ទាំងពីរស្មើនឹង ១ — មានវិធីមួយដើម្បីជ្រើសគ្មានទេ និងវិធីមួយដើម្បីជ្រើសពួកគេទាំងអស់ ។
តើឧបករណ៍នេះបង្ហាញការផ្លាស់ទីដែរឬទេ ?
បាទ. វាបង្ហាញ nPr = nCr × r! ក្បែរការរួមបញ្ចូលគ្នាដូច្នេះអ្នកអាចប្រៀបធៀបចំនួនដែលបានបញ្ជានិងមិនបញ្ជា.
API — ប្រើម៉ាស៊ីនគិតលេខនេះពីកូដ
ទូរស័ព្ទទៅម៉ាស៊ីនគិតលេខនេះជាចំណុចបញ្ចប់ JSON ឥតគិតថ្លៃ - គ្មានគ្រាប់ចុចដែលត្រូវការ ។ ផ្ញើតម្លៃវាលខាងក្រោមជាប៉ារ៉ាម៉ែត្រសំណួរ ឬ JSON ។ អ្វីដែលអ្នករំលងប្រើលំនាំដើមដូចគ្នាដែលទំព័រនេះត្រូវបានបំពេញជាមុនជាមួយប៉ារ៉ាម៉ែត្រមិនស្គាល់គឺ ៤០០ មិនមែនសូន្យស្ងាត់ទេ ។ អានឯកសារ 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);
លទ្ធផលគឺការប៉ាន់ប្រមាណសម្រាប់តែការណែនាំទូទៅប៉ុណ្ណោះ, មិនហិរញ្ញវត្ថុ, វេជ្ជសាស្ត្រឬដំបូន្មានពន្ធ.