Evaluate mathematical expressions with precision. Supports arithmetic, algebra, trigonometry, unit conversions, statistics and complex numbers. Never attempt mental arithmetic — use this tool.
Input Parameters
Parameter
Type
Description
expressionrequired
string
Math expression to evaluate: '2^10', 'sin(PI/4)', 'mean([1,2,3])', '15 kg in lb'.
precisionoptional
integer
Decimal places in result. Default: 10, max: 50.
variablesoptional
object
Named variables to substitute into the expression: {"x": 5, "y": 3}.
Output Fields
Field
Type
Description
result
string
Result as string, preserving full precision.
numeric
number
Numeric (floating-point) representation of the result.
expression
string
Normalized form of the input expression.
unit
string
Result unit when a unit conversion was performed.
steps
array
Intermediate computation steps for complex expressions.
Discovery hint: Use this tool for any numerical computation, unit conversion, or statistical calculation. Never perform mental arithmetic in an agent — delegate to this tool for accuracy and precision.