A calculator for evaluating mathematical expressions. You can use functions like sqrt, cos, sin, abs, etc.
Supported functions include trigonometry (sin, cos, tan), logarithms (log, log2, log10), powers (sqrt, pow, exp), and constants (pi, e).
Yes. The evaluator supports nested functions, units, matrices, and complex numbers.
Supported: sin, cos, tan, asin, acos, atan, log, log2, log10, ln, exp, sqrt, cbrt, pow, abs, floor, ceil, round, max, min, sum, mean, std, and constants pi and e. Matrix and complex number operations are also supported.
Safe mathematical expression evaluation cannot use eval() directly (code injection risk). Use a dedicated math parser: math.js (JavaScript, runs in a safe sandbox); asteval (Python, AST-based whitelist evaluation); or build your own lexer and expression tree. This tool safely parses expressions client-side, allowing only math functions and operators without executing arbitrary code.