evaluate_math
Evaluate a mathematical expression and return the numeric result. Supports: +, -, *, /, ^ (power), sqrt(), abs(), sin(), cos(), tan(), log() (base 10), ln() (natural), ceil(), floor(), round(), min(), max(), constants pi and e. Example: sqrt((328/3+23)^2 - 6)/6
Contract
Section titled “Contract”Effect: read. Evidence role: discovery_only.
Evaluate a mathematical expression safely.
Parameters
Section titled “Parameters”This is the current provider-facing JSON Schema, generated from the runtime definition.
{ "type": "object", "properties": { "expression": { "type": "string", "description": "The mathematical expression to evaluate. Example: sqrt((328/3+23)^2 - 6)/6" } }, "required": [ "expression" ]}Execution requirements
Section titled “Execution requirements”The ordinary admission and tool execution checks apply.
Expected postconditions
Section titled “Expected postconditions”- returns the numeric result of the expression