calc
Computes exact arithmetic expressions for Darshan I/O log analysis—operators, parentheses, unit constants, and aggregates—so results are calculated rather than estimated.
Instructions
Exact arithmetic. Use it for every computation instead of doing math in your head. Supports + - * / ** %, parentheses, lists, min max abs round sqrt log2 log10 sum mean, and the constants KiB MiB GiB TiB KB MB GB. Example: calc('1554195 / MiB / 0.0772').
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": {
"expression": "<expression>"
},
"name": "calc"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| log | No | path of an opened .darshan log (default: the one opened last) | |
| expression | Yes |