Verify Arithmetic
verify_arithmeticEvaluate arithmetic expressions securely using a whitelist of operators and functions. Perform calculations like addition, exponents, factorials, and logarithms without unsafe code execution.
Instructions
Safely evaluate an arithmetic expression using only whitelisted operators and functions.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| expression | Yes | A numeric expression to evaluate safely (no eval). Examples: '2 + 3 * 4', 'sqrt(144)', '2^10', 'factorial(10)', 'log(100, 10)' |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |