double_factorial
Calculate the double factorial of an integer using the formula n!! = n × (n-2) × (n-4) × ... × 2 or 1. This mathematical function computes products of integers decreasing by two for arithmetic operations.
Instructions
Calculate the double factorial of a number. n!! = n × (n-2) × (n-4) × ... × 2 or 1. (Domain: arithmetic, Category: general)
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>"
},
"name": "double_factorial"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| n | Yes |