Run a mathematical operation
math.runSolve reliability-sensitive math with typed operations for algebra, calculus, statistics, and units. Pass operation-specific arguments for exact or approximate results.
Instructions
Use for exact or reliability-sensitive mathematics, especially fixed-width overflow and bits, IEEE-754, named rounding or division conventions, large integers, matrices, units and dimensions, uncertainty, probability, numerical methods, or finance. Do not use for trivial low-risk arithmetic. Always pass operation-specific fields inside the arguments object: {operation, arguments}; never flatten them. Known direct shapes need no describe call: integer.machine_arithmetic arguments include action, left, right, bitWidth, signedness, inputMode, and overflowBehavior; combinatorics.count arguments use action, n, and k. The typed operation keeps exact and approximate results separate; one successful ordinary call is sufficient.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| memoryMb | No | ||
| arguments | Yes | Operation-specific object. Unknown fields are rejected by the selected registry contract before execution. | |
| operation | Yes | Stable operation ID. Use math.describe once if its exact arguments are unfamiliar. | |
| timeoutMs | No | ||
| resultMode | No | Select exact, approximate, both, or an automatically compact result. | auto |
| maxOutputBytes | No | Strict UTF-8 byte budget for structured output. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | No | ||
| unit | No | ||
| error | No | ||
| exact | No | ||
| approx | No | ||
| status | Yes | ||
| warnings | No | ||
| operation | No | ||
| precision | No |