Evaluates a mathematical expression and returns the exact result. Supports + - * / // % **, parentheses, the constants pi, e, tau, and functions including sqrt, sin, cos, tan, asin, acos, atan, atan2, log, log2, log10, exp, floor, ceil, abs, round, min, max, gcd, hypot, factorial, degrees, radians.
This is a calculator, not code execution: only numbers, operators, the listed functions, and constants are allowed. Variables, function definitions, and any I/O are rejected. Integers are exact and unbounded (see result_string for very large values). Computed locally.
The math expression to evaluate (e.g. "(12 + 5) * 3", "sqrt(2)", "15/100*240").