Kātaitai whakarerekētanga (nPr)
E tatau ana i ngā whakaritenga whakarite o ngā ahanoa r i kōwhiria mai i te n.
Ka whakahōutia ngā hua i te wā e tātuhi ana.
Mo tēnei tātaitai
you choose 10 items, you can choose 10 items, and if r is greater than n, the calculator returns a dash. If r is smaller than n, the calculator returns a dash. If r is larger than n, the calculator returns a dash. If r is smaller than n, the calculator returns a dash. If r is larger than n, the calculator returns a dash. If r is smaller than n, the calculator returns a dash. If r is smaller than n, the calculator returns a dash.PermutationsPermutationsPermutationsPermutationsPermutationsPermutationsPermutationsPermutationsPermutationsPermutationsPermutationsPermutationsPermutationsPermutationsPermutationsPermutationsPermutationsPermutationsPermutationsPermutationsPermutationsPermutationsPermutationsPermutationsPermutationsPermutationsPermutationsPermutationsPermutationsPermutationsPermutationsPermutationsPermutationsPermutationsPermutationsPermutationsPermutationsPermutationsPermutationsPermutationsPermutationsPermutationsPermutationsPermutationsPermutationsPermutationsPermutationsPermutationsPermutationsPermutationsPermutationsPermutationsPermutationsPermutationsPermutationsPermutationsPermutationsPermutationsPermutationsPermutationsPermutationsPermutationsPermutationsPermutationsPermutationsPermutationsPermutationsPermutationsPermutationsPermutationsPermutationsPermutationsPermutationsPermutationsPermutationsPermutationsPermutationsPermutationsPermutationsPermutationsPermutationsPermutationsPermutationsPermutationsPermutationsPermutationsPermutationsPermutationsPermutationsPermutationsPermutationsPermutationsPermutationsPermutationsPermutationsPermutationsPermutationsPermutationsPermutationsPermutationsPermutationsPermutationsPermutationsPermutationsPermutationsPermutationsPermutationsPermutationsPermutationsPermutationsPermutationsPermutationsPermutationsPermutationsPermutationsPermutationsPermutationsPermutationsPermutationsPermutationsPermutationsPermutationsPermutationsPermutationsPermutationsPermutationsPermutations
Ko nga pātai e pā ana
He aha te rerekētanga i waenganui i te whakarerekētanga me te pahekotanga?
I roto i tētahi raupapa whakarerekētanga (he rerekē ngā hua tuatahi, tuarua, tuatoru); i roto i tētahi pahekotanga kāore, he iti iho i ngā wā katoa te maha o ngā whakarerekētanga pērā ki ngā pahekotanga.
He aha te tātai whakarerekētanga?
nPr = n! / (n − r)! Mō ngā ahanoa 10 e mau ana i te 3 i tētahi wā: 10 × 9 × 8 = 720.
He aha te wā e whakamahia ai e au tētahi whakarerekētanga?
Ki te whai tikanga: te whakatū i ngā kaiwhakamutu, te whakawātea i ngā wāhi tuatahi/rua/toru, te whakatū i ngā tāngata i roto i te rārangi, te hanga rānei i tētahi waehere whakaritea.
He aha te take mēnā he nui ake te r i te n?
Kāore e taea e koe te whakarite i ngā ahanoa maha ake i a koe, nā reira kāore te hua i tautuhia, ā, ka hoki te utauta ki tētahi tāpa.
He aha te nP0?
Ko te 1 — kotahi anake te huarahi ki te whakarite i te kore, te whakaritenga mokowā.
He aha te nPn?
E ōrite ana ki te n!, nā te mea ko te whakaritenga o ngā mea n katoa i roto i te raupapa e ōrite ana ki te whakarea katoa. Hei tauira, 4P4 = 4! = 24.
API — whakamahi tēnei tātaitai mai i te waehere
E kī ana tēnei tātaitai hei wāhi mutunga kore JSON - kāore he kī e hiahiatia ana. Ka tukuna ngā uara āpure i raro nei hei tohutoro pātai, JSON rānei. Ka pānui te papatono API katoa →
Whakamutunga
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);
Ko ngā hua he whakataunga mō te tohutohu ahuwhānui anake, ehara i te tohutohu moni, rongoā, tāke rānei.