Result
Enter values and select Calculate.
Supported syntax
Use +, −, *, /, ^, and parentheses. Constants: pi and e. Functions: sin, cos, tan, asin, acos, atan, sqrt, ln, log, exp, abs, floor, ceil, round, sinh, cosh, and tanh.
Example in degree mode: sin(30)^2 + cos(30)^2 = 1.
Evaluation method
A local recursive-descent parser applies standard operator precedence and right-associative powers. It never uses eval, Function, remote code, or a calculation API. Unary minus follows exponentiation, so −2^2 evaluates as −4.
Limits and precision
Expressions are limited to 1,000 characters, 512 tokens, and 64 nesting levels. Results use JavaScript double-precision arithmetic, so irrational and many decimal values are approximate. Division by zero, non-real square roots or powers, invalid logarithms, malformed syntax, and non-finite results are rejected.
This general expression tool does not replace the exact Scientific Notation Calculator or focused formula calculators.
