A small expression calculator: + − × ÷, powers, and parentheses.
How this calculator works
The expression is parsed in the browser. It does not use JavaScript eval. Powers are right-associative. A leading minus is allowed. Pi can be typed as pi. Anything outside numbers and those operators is rejected.
Questions
Can I type sin or log?
No. This version is arithmetic, powers, and pi.
What does 2^3^2 mean?
8 squared, because powers associate to the right, so 2^(3^2).
Is my expression sent anywhere?
No. It stays in the page.