Scientific Calculator

Evaluate complex math expressions with trigonometric functions, logarithms, powers, square roots, factorials, and constants like pi and e.

Examples

sin(pi/4) is approximately 0.7071

Result
0.7071067812 (unitless)

The result is approximately 0.7071067812.

Was this useful?

Examples

How It Works

Formula

sin(x),  cos(x),  tan(x),  log(x),  ln(x),  x,  xn,  n!\sin(x),\; \cos(x),\; \tan(x),\; \log(x),\; \ln(x),\; \sqrt{x},\; x^{n},\; n!

Variables

xx

A real-valued argument (radians for trig functions)

nn

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: sin\sin, cos\cos, tan\tan, arcsin\arcsin, arccos\arccos, arctan\arctan, log10\log_{10}, ln\ln, \sqrt{\,}, |\cdot|. Constants: π\pi, ee. Trigonometric arguments are in radians.

Frequently Asked Questions

01What functions are supported?
sin, cos, tan, asin, acos, atan, log (base 10), ln (natural log), sqrt, abs, and factorial (!). Constants pi and e are also available.
02Are angles in radians or degrees?
All trigonometric functions use radians. To convert degrees to radians, multiply by pi/180.
03How do I write powers?
Use the ^ operator. For example, 2^10 = 1024.
04What is the difference between log and ln?
log is base-10 logarithm (log10), while ln is the natural logarithm (base e).
05Can I use parentheses for grouping?
Yes. Parentheses work as expected for grouping operations, e.g. (2+3)*4 = 20.

All calculators