Scientific Calculator

Click the buttons or type on your keyboard. Numbers, basic ops, trig, logs, powers, roots, parens.

0

Keyboard: digits, + − × ÷, Enter / =, Esc = AC, = backspace

How it works

Internally this builds an expression string and evaluates it via the JavaScript engine. Functions like sin, log, sqrt map to Math.sin, Math.log10, Math.sqrt. Trig is in radians — multiply by π/180 to use degrees.

The expression evaluator only allows whitelisted tokens (digits, basic ops, parens, dot, function names) — it can't run arbitrary JavaScript even if you paste weird input. Safe sandbox via regex check before Function construction.