LazyTools

Math Expression Evaluator

Evaluate math expressions safely with functions and variables.

Math expression
Type an expression and the result updates as you type. Press Enter to keep it in the history. Nothing is run as code.

The result appears here. Try 2 + 3 * 4, sin(30) or pi * 2 ^ 2.

Examples

History
The last result is available as ans. Press the up arrow in the field to bring back an earlier line.

No results yet. Press Enter after an expression to keep it here.

Variables

Assign with x = 3 and press Enter.

Reference

Operators: + - * / ^ % and parentheses. % is the remainder.

Constants: pi e

Functions: sqrt cbrt sin cos tan asin acos atan exp ln log log2 abs floor ceil round min max pow

log is base 10 and ln is the natural logarithm. The angle unit applies to sin, cos, tan and their inverses.