permutation
permutationCalculate permutations P(n,r) to determine the number of ways to arrange r items from n distinct elements. Use this tool for combinatorial mathematics problems involving ordered selections.
Instructions
计算从n个元素中选择r个元素的排列数 P(n,r)
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"n": "<n>",
"r": "<r>"
},
"name": "permutation"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| n | Yes | ||
| r | Yes |