ម៉ាស៊ីនគិតលេខការផ្លាស់ប្ដូរ (nPr)
រាប់ការរៀបចំតាមលំដាប់នៃធាតុ r ដែលបានជ្រើសពី n ។
លទ្ធផលធ្វើឲ្យទាន់សម័យតាមដែលអ្នកវាយ ។
អំពីម៉ាស៊ីនគិតលេខនេះ
A permutation counts how many ways you can arrange r items chosen from a set of n, where order matters — so first, second and third place are three different outcomes. This calculator returns the exact count and the formula it used, even for large n and r.
The formula is nPr = n! / (n − r)!, which is the same as multiplying the top r numbers counting down from n. For 10 items taken 3 at a time, that is 10 × 9 × 8 = 720. Choosing none gives nP0 = 1, and arranging all of them gives nPn = n!. You cannot choose more items than you have, so if r is greater than n the tool returns a dash.
Permutations answer "how many ordered sequences?" — the number of possible race finishes, seating orders, PIN codes or ranked shortlists. When order does not matter, use a combination instead, which is always the smaller count.
សំណួរដែលសួរញឹកញាប់
តើអ្វីជាភាពខុសគ្នារវាងការផ្លាស់ប្ដូរនិងការរួមបញ្ចូលគ្នា ?
ក្នុងលំដាប់ការផ្លាស់ប្ដូរបញ្ហា (ដំបូងទីពីរទីបីគឺលទ្ធផលខុសគ្នា) ក្នុងការរួមបញ្ចូលគ្នាវាមិនធ្វើទេ ។ មានជានិច្ចយ៉ាងហោចណាស់ការផ្លាស់ប្ដូរច្រើនដូចជាការរួមបញ្ចូលគ្នា ។
តើអ្វីជារូបមន្តការផ្លាស់ប្ដូរ?
nPr = n! / (n − r)! ។ សម្រាប់ 10 ធាតុបានយក3នៅពេល: 10 ×9× 8 = 720 ។
ពេលណាខ្ញុំគួរប្រើការផ្លាស់ប្ដូរ?
នៅពេលដែលការបញ្ជាទិញសំខាន់: ចំណាត់ថ្នាក់ finishers, បំពេញទីកន្លែងដំបូង / លើកទីពីរ / ទីបី, អង្គុយមនុស្សនៅក្នុងជួរ, ឬការសាងសង់កូដបានបញ្ជា.
តើមានអ្វីកើតឡើងប្រសិនបើ r ធំជាង n ?
អ្នកមិនអាចរៀបចំធាតុច្រើនជាងអ្នកមានទេ ដូច្នេះលទ្ធផលមិនត្រូវបានកំណត់ ហើយឧបករណ៍ត្រឡប់សញ្ញាព្រួញ ។
តើអ្វីជា nP0?
វាគឺ 1 — មានវិធីតែមួយគត់ដើម្បីរៀបចំគ្មានអ្វីទាំងអស់ ការរៀបចំទទេ ។
តើអ្វីជា nPn?
វាស្មើនឹង n!, ដោយសារតែរៀបចំធាតុទាំងអស់ n ក្នុងលំដាប់គឺដូចគ្នាដូចជា factorial ពេញលេញ. ឧទាហរណ៍ 4P4 =4! = 24.
API — ប្រើម៉ាស៊ីនគិតលេខនេះពីកូដ
ទូរស័ព្ទទៅម៉ាស៊ីនគិតលេខនេះជាចំណុចបញ្ចប់ JSON ឥតគិតថ្លៃ - គ្មានគ្រាប់ចុចដែលត្រូវការ ។ ផ្ញើតម្លៃវាលខាងក្រោមជាប៉ារ៉ាម៉ែត្រសំណួរ ឬ JSON ។ អ្វីដែលអ្នករំលងប្រើលំនាំដើមដូចគ្នាដែលទំព័រនេះត្រូវបានបំពេញជាមុនជាមួយប៉ារ៉ាម៉ែត្រមិនស្គាល់គឺ ៤០០ មិនមែនសូន្យស្ងាត់ទេ ។ អានឯកសារ API ពេញលេញ →
ចំណុចបញ្ចប់
GET https://calculator.free/api/v1/permutation/
curl
curl "https://calculator.free/api/v1/permutation/?n=10&r=3"
JavaScript fetch()
const r = await fetch(
"https://calculator.free/api/v1/permutation/?" + new URLSearchParams({
"n": "10",
"r": "3"
}));
const data = await r.json();
console.log(data.results);
លទ្ធផលគឺការប៉ាន់ប្រមាណសម្រាប់តែការណែនាំទូទៅប៉ុណ្ណោះ, មិនហិរញ្ញវត្ថុ, វេជ្ជសាស្ត្រឬដំបូន្មានពន្ធ.