A beautiful scientific calculator built with vanilla JavaScript, featuring expression parsing, trigonometric functions, memory operations, calculation history, and full keyboard support.
- Basic operations -- addition, subtraction, multiplication, division, modulo
- Scientific functions -- sin, cos, tan, log, ln, sqrt, power, factorial
- Expression parsing -- full parentheses support with implicit multiplication
- Memory -- MC, MR, M+, M- with visual indicator
- History panel -- last 20 calculations, click to reuse
- Keyboard support -- type numbers, Enter = equals, Escape = clear, Backspace = delete
- DEG/RAD toggle -- switch between degree and radian mode for trig functions
- Dark glassmorphism theme -- frosted glass UI with animated background
- Responsive -- works as a phone calculator on mobile devices
- Zero dependencies -- pure HTML, CSS, and JavaScript
| Key | Action |
|---|---|
0-9, . |
Input numbers |
+, -, *, / |
Operators |
^ |
Power |
! |
Factorial |
(, ) |
Parentheses |
Enter or = |
Evaluate |
Escape or Delete |
Clear |
Backspace |
Delete last character |
- HTML5
- CSS3 (glassmorphism, CSS Grid, animations)
- Vanilla JavaScript (expression tokenizer + shunting-yard evaluator)
MIT
