ຕົວຄິດໄລ່ການປ່ຽນແປງ (nPr)
ຄິດໄລ່ການຈັດລຽງຂອງສິ່ງທີ່ເລືອກຈາກ 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.
ເມື່ອໃດທີ່ຂ້ອຍຄວນໃຊ້ການປ່ຽນແທນ?
ເມື່ອຄໍາສັ່ງມີຄວາມສໍາຄັນ: ຈັດອັນດັບຜູ້ສໍາເລັດ, ເຕັມທີ່ທໍາອິດ / ສອງ / ສາມບ່ອນ, ນັ່ງຄົນໃນແຖວ, ຫຼືສ້າງລະຫັດຕາມຄໍາສັ່ງ.
ຈະເປັນແນວໃດຖ້າວ່າ r ໃຫຍ່ກວ່າ n?
ທ່ານບໍ່ສາມາດຈັດແຈງສິ່ງທີ່ຫຼາຍກວ່າທີ່ທ່ານມີໄດ້, ສະນັ້ນຜົນທີ່ໄດ້ມາບໍ່ໄດ້ຖືກກຳນົດ ແລະ ເຄື່ອງມືຈະສົ່ງຄືນການຢຸດຊົ່ວຄາວຄືນມາ.
ອັນໃດແມ່ນ nP0?
ມັນແມ່ນ 1 - ມີວິທີດຽວທີ່ຈະຈັດວາງບໍ່ມີຫຍັງເລີຍ, ການຈັດວາງທີ່ວ່າງ.
nPn ແມ່ນຫຍັງ?
ມັນເທົ່າກັບ n!, ຍ້ອນວ່າການຈັດການທັງຫມົດ n ລາຍການໃນຄໍາສັ່ງແມ່ນຄືກັນກັບ factorial ເຕັມ. ຕົວຢ່າງ 4P4 =4! = 24.
API — ໃຊ້ເຄື່ອງຄິດໄລ່ນີ້ຈາກໂປຣແກຣມ
ໂທເຄື່ອງຄິດໄລ່ນີ້ເປັນຈຸດຈົບ JSON ຟຣີ - ບໍ່ຕ້ອງການກູໂກ. ສົ່ງຄ່າພື້ນທີ່ຂ້າງລຸ່ມນີ້ເປັນປາຣມາຕິກຄໍາຖາມ ຫຼື JSON. ທຸກສິ່ງທີ່ທ່ານລົບອອກ ຈະໃຊ້ຕົວອັກສອນທີ່ໜ້ານີ້ໄດ້ຕື່ມໄວ້ກ່ອນ; ພາຣາມິເຕີທີ່ບໍ່ຮູ້ແມ່ນ 400, ບໍ່ແມ່ນສະກຸນທີ່ບໍ່ມີສຽງເລີຍ. ອ່ານເອກະສານ 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);
ຜົນໄດ້ຮັບແມ່ນຄາດຄະເນສໍາລັບຄໍາແນະນໍາທົ່ວໄປເທົ່ານັ້ນ, ບໍ່ການເງິນ, ຄໍາແນະນໍາທາງການແພດຫຼືພາສີ.