Scientific Calculator
Trig, logarithms, powers, roots and factorials on a full keypad — with brackets, order of operations and a degrees/radians switch. Type on your keyboard too.
Keyboard works too: digits, + − * / ^ ! ( ), Enter for =, Backspace to delete. log is base 10, ln is natural log, % is remainder.
How to use it
A real parser, not a button trick
Most web calculators fake it: they chain operations one at a time, so 3 + 4 × 2 comes out as 14. This one contains a genuine expression parser — the same tokenizer-and-grammar approach a programming language uses — so brackets, powers and functions nest properly, order of operations is respected, and an expression like 2(3 + 1) or sin(30) + √144 evaluates exactly as written. Factorials even work past whole numbers, via the gamma function, the way a serious calculator behaves.
The degrees/radians toggle deserves a word, because it is the single most common scientific-calculator error: sin(30) is 0.5 in degrees and −0.988 in radians, and both are 'correct' — the mode decides. The calculator starts in DEG, matching most everyday use, and the active mode is always lit at the top of the keypad. Everything evaluates locally in your browser; nothing you type is sent anywhere, and the page keeps working offline once loaded.
Six checks — the answers your textbook expects
Type each expression exactly as written and the calculator should return the figure on the right. Between them they exercise the whole machine: order of operations, brackets, trigonometry, both logarithms, factorials and roots.
| Expression | Result | What it proves |
|---|---|---|
| 3 + 4 × 2 | 11 | Multiplication before addition |
| (3 + 4) × 2 | 14 | Brackets override the order |
| sin(30), DEG mode | 0.5 | Trigonometry in degrees |
| log(1000) + 3^3 − ln(e^2) | 28 | 3 + 27 − 2: both logs and a power |
| (5! ÷ 4) + (2 + 3)^2 | 55 | 30 + 25: factorials inside brackets |
| √(144) + 2(3 + 1) | 20 | 12 + 8: roots and implied multiplication |
If one of them disagrees, suspect the angle mode before the arithmetic — the lit DEG/RAD toggle at the top of the keypad decides what every trig key means. And when the maths turns into number systems rather than expressions, the same family has the Binary Converter and the Hex Converter.