allocatemem
Modify the PARI stack memory allocation to prevent overflow and manage large number theory computations.
Instructions
Change the PARI stack size.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "allocatemem"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| size | No | New stack size in bytes. If 0, doubles current size. | |
| sizemax | No | Maximum stack size in bytes. If 0, uses current maximum. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |