Scientific Calculator
Trig, logs, powers and roots from a real expression parser — and the degrees/radians toggle printed on the display at all times, where it belongs.
How it works
Build any expression — sin(45) + √(2) × 3! — and press =. The parser respects mathematical precedence exactly: brackets, then powers (right to left, so 2^3^2 = 512), then multiplication and division, then addition and subtraction. Postfix keys act where they stand: % divides the number before it by 100, ! takes its factorial. The INV key swaps the trig and log keys for their inverses. Ans recalls your last answer, and the memory keys keep a running value across calculations. Every formula and convention is written up on the Methodology page.
Frequently asked questions
Why does the DEG/RAD setting matter so much?
Trig functions give completely different answers in the two modes: sin(90) = 1 in degrees, but sin(90 radians) ≈ 0.894. Neither is wrong — but using the wrong one is the most common reason a correct method produces a 'wrong' homework answer. That's why the mode is printed on the display at all times here, not buried in a settings menu.
Does it use a real parser or eval?
A real tokenizer and recursive-descent parser written for this site — never JavaScript eval. Precedence is exact (brackets → powers → ×/÷ → +/−, powers right-associative so 2^3^2 = 512), implicit multiplication works (2π, 3(4+1)), and mistakes produce honest errors instead of silent wrong numbers.
What functions are included?
sin, cos, tan and their inverses (INV), ln, log₁₀ (and 10ˣ under INV), square root, x², xʸ, 1/x, factorial, π, e, EXP notation, Ans, and memory (MC/MR/M+/M−). Factorial is defined for whole numbers 0–170 — beyond that the result overflows any standard calculator, and this one says so rather than guessing.
Why did I get an error for tan(90)?
Because tan is genuinely undefined at 90° (and 270°) in degrees — it shoots off to infinity. The calculator tells you that instead of printing a huge meaningless number the way some do.