matrix_exponentiation
Raise a square matrix to a non-negative integer power using fast exponentiation, with optional modular arithmetic for large-number computations.
Instructions
Raise a square matrix to a non-negative integer power using fast exponentiation, with optional modular arithmetic.
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": {
"matrix": "<matrix>",
"power": "<power>"
},
"name": "matrix_exponentiation"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mod | No | Optional modulus for modular arithmetic | |
| power | Yes | Non-negative integer exponent (max 1 billion) | |
| matrix | Yes | Square matrix (max 10x10) |