calculator
Evaluate mathematical and scientific expressions safely with an isolated AST evaluator to obtain exact numeric results and prevent arithmetic errors.
Instructions
Safely evaluate mathematical and scientific expressions using an isolated AST evaluator without unsafe execution. Supports arithmetic (+, -, *, /, **), trigonometry (sin, cos, tan), logarithms, square roots, and factorials. Use whenever exact numeric precision is required to avoid arithmetic hallucinations. Pure, deterministic, and idempotent.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| expression | Yes | The mathematical expression string to evaluate (e.g. 'sqrt(144) + 15 * log(100)'). |