calculator
Safely evaluate mathematical expressions with arithmetic, powers, parentheses, and functions like sqrt, sin, log. Includes constants pi and e.
Instructions
Evaluate a mathematical expression safely. Supports +, -, *, /, %, ^ (power), parentheses, and functions: sqrt, abs, sin, cos, tan, asin, acos, atan, log (base 10), ln (natural), exp, floor, ceil, round. Constants: pi, e. Example: 'sqrt(16) + 2^3' = 12
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| expression | Yes | The mathematical expression to evaluate, e.g. '2 + 3 * 4' or 'sqrt(144) + pi' |