Scientific Calculator
Evaluate complex math expressions with trigonometric functions, logarithms, powers, square roots, factorials, and constants like pi and e.
sin(pi/4) is approximately 0.7071
The result is approximately 0.7071067812.
Was this useful?
Examples
How It Works
Formula
Variables
- A real-valued argument (radians for trig functions)
- A non-negative integer exponent or factorial argument
Enter any mathematical expression. The calculator parses it using a safe recursive-descent parser (no eval) and computes the result. Supported: arithmetic (+, -, *, /, ^, %), functions (sin, cos, tan, log, ln, sqrt, abs), factorial (!), and constants (pi, e).
The expression is tokenised and parsed with a safe recursive-descent grammar — no eval(). Operator precedence: ^ (right-associative) binds tighter than *, /, %, which bind tighter than +, -. Factorial ! is post-fix. Available functions: , , , , , , , , , . Constants: , . Trigonometric arguments are in radians.