Math calculators

Scientific calculator

Evaluate expressions with sin, cos, tan, logarithms, powers, roots, factorials, nCr, nPr, π and e in degrees or radians.

Inputs

Results

Methodology

Conventions

  • Expressions are parsed by a whitelist parser (no code is run): numbers, + − × ÷ ^, % as modulo, ! as factorial, brackets and implicit multiplication such as 2π or 3(x + 1).
  • log(x) is base 10, ln(x) is natural, log(x, b) is base b. Trigonometric functions use the selected angle unit.
  • Powers are right-associative: 2^3^2 = 2^9. Results are double precision (about 15–16 significant digits).

References

  • Pratt, Top Down Operator Precedence (1973)
  • NIST Digital Library of Mathematical Functions, dlmf.nist.gov

Formulas

Factorial
n! = \Gamma(n + 1)
Combinations
\mathrm{nCr}(n, r) = \frac{n!}{r!(n - r)!}