evaluate_expression
Compute mathematical expressions using arithmetic, trigonometric, logarithmic functions, constants, and parentheses. Supports scientific notation and explicit operators.
Instructions
Evaluate a mathematical expression. PRIMARY tool for ALL math: +, -, *, /, %, ^. Functions: sqrt, sin, cos, tan, asin, acos, atan, log10, ln, log(x,base), abs, round, floor, ceil, min, max. Constants: pi, e, tau, phi, sqrt2, euler_mascheroni, c, g, G, h, k, R, NA, e_charge, m_e, m_p. Parentheses and scientific notation (1e6) supported. Use explicit operators: 2 * pi, not 2pi.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| expression | Yes |