Scientific Calculator
Trigonometry, logarithms, exponents, and parentheses with full keyboard support.
Keyboard supported
0
Examples
| Input | Result |
|---|---|
| sin(45) | 0.7071067812 (in DEG mode) |
| log(1000) | 3 |
| 2^10 + sqrt(144) | 1036 |
| (3 + 4) * 2 - 5 | 9 |
About this tool
This online scientific calculator handles trigonometric functions, logarithms, exponents, and nested parentheses right in your browser. Type expressions using your keyboard or click the on-screen buttons. The calculator supports both degree and radian angle modes, so you can switch depending on your needs.
Under the hood, the expression parser is built as a recursive descent parser with proper operator precedence. That means multiplication and division are evaluated before addition and subtraction, and exponents bind tighter still. There is no use of JavaScript's eval() function, which keeps things predictable and safe. Memory functions (M+, MR, MC, MS) let you store intermediate results while working through longer calculations.
Frequently asked questions
How does the calculator parse expressions without using eval()?
It uses a recursive descent parser that breaks down your expression into tokens and evaluates them following proper operator precedence. This approach is safer than eval() and gives better error messages when something is wrong.
What is the difference between DEG and RAD mode?
DEG mode treats angles as degrees (a full circle is 360), while RAD mode treats them as radians (a full circle is 2*pi). Most everyday calculations use degrees. Radians are more common in programming and advanced math.
Which functions does this scientific calculator support?
It supports sin, cos, tan, asin, acos, atan, ln (natural log), log (base-10 log), sqrt, abs, ceil, floor, and round. You can also use pi and e as constants.
