Scientific calculator
calc_expressionEvaluate mathematical expressions safely with a built-in parser, supporting functions, variables, constants, factorials, percentages, and angle units without using eval.
Instructions
Evaluate a maths expression safely with the website's own parser (never eval): + − × ÷ ^ (right-associative), implicit multiplication (2(3+4), 2x), postfix ! and %, √, brackets; functions sin cos tan sec csc cot (+ asin acos atan atan2) in degrees (default), radians or grads, sinh cosh tanh and inverses, sqrt cbrt root(x,n) abs exp ln log(x[,base]) log10 log2 floor ceil round sign min max mod nCr nPr fact gamma; constants pi π e tau phi; "ans" and your own variables. Results to 12 significant digits, plain or scientific notation. Web version: https://s3eidat.github.io/sci-calc/
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ans | No | Value of "ans" (the previous answer). Default 0. | |
| angle | No | Angle unit for trig functions. | deg |
| format | No | Display: normal, or always scientific notation. | norm |
| variables | No | Variables to use, e.g. {"x": 2, "r": 5}. | |
| expression | Yes | The expression, e.g. "sin(30) + 2^3^2", "5!/(2!×3!)", "200×15%". |