Scientific Calculator
v1.0The Scientific Calculator lets you type an expression and press Enter, or build one with a clickable keypad, and get trig, logs, roots, factorials and constants. Nothing is sent to a server.
It follows standard precedence for + - * /, treats ^ as right-associative, supports postfix ! and %, and handles implicit multiplication, so 2π and 3(1+2) work. A DEG/RAD toggle applies to sin, cos, tan and their inverses. Hyperbolic functions ignore it. root(x, n) and nthroot(x, n) give nth roots, including the real negative root for an odd index of a negative number. Division by zero gives Infinity with its sign. Malformed input, such as a dangling operator, an unmatched parenthesis or a negative or non-integer factorial, shows an inline error under the display.
Results are rounded to twelve significant digits, so 0.1 + 0.2 shows 0.3. The unrounded value is still used when you chain from Ans. The 2nd key swaps sin, cos, tan, sinh, cosh and tanh for their inverses, and keys have a small tap animation that turns off under reduced motion. The last 20 calculations are kept in a history. Click one to load it, delete a single entry, or clear the list. DEG/RAD and the history are remembered on this device. Share puts the current expression in a link.
The keypad adds to the end of the expression rather than at the cursor, and after = typing a digit starts a new calculation.