Calculator

Compute an expression as you type it: percents, powers, roots, trigonometry, with a history

+ − × ÷ ^ and parentheses, 5! and 7 mod 3. Percents as on a pocket calculator: 80 + 15% is 92, 15% of 80 is 12. Functions sqrt, ln, log, sin, cos, tan, asin… round(x, 2), min, max, gcd; constants pi and e; 0xff, 0b101. A × may be left out: 2pi, 3(4 + 1). Enter keeps the line in the history, ans is its result.