Calculator
calculatorEvaluate mathematical expressions precisely. Supports arithmetic, functions, constants, and unit conversions.
Instructions
Evaluate a mathematical expression precisely. Use this for ANY arithmetic instead of computing in your head.
Supports +, -, *, /, ^, parentheses, functions (sqrt, sin, cos, log, etc.), constants (pi, e), and units (e.g. "5 km in miles", "2 GB in bytes").
Args:
expression (string): The expression to evaluate.
Returns the result as a string.
Examples:
{ "expression": "(1234 * 5678) / 90" }
{ "expression": "sqrt(2) * 100" }
{ "expression": "120 km/h in m/s" }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| expression | Yes | Math expression to evaluate |