Scientific Calculator

An expression calculator with trig, logs, exponents, parentheses, and roots, powered by a safe parser

도구를 불러오는 중…

🔒 Everything runs 100% in your browser. Your files and input are never uploaded to any server.

A scientific calculator that evaluates one-line expressions, from sin/cos/tan trig functions to logs, exponents, roots, parentheses, and factorials. It computes safely with its own parser instead of JavaScript's eval, and you can switch angles between degrees (DEG) and radians (RAD).

How to use

  1. For calculations involving angles, first choose the DEG (degrees) / RAD (radians) tab.
  2. Press the buttons or type an expression directly into the input, e.g., sin(30)+2^3*sqrt(9).
  3. The result updates in real time, and you can continue calculating from it with '='.
  4. Use 'Copy result' to copy the value and paste it elsewhere.

FAQ

Which functions and symbols can I use?
It supports basic arithmetic plus % and ^ (power), parentheses, sin/cos/tan and the inverses asin/acos/atan, log (base-10), ln (natural log), exp, sqrt/cbrt/abs, factorial (!), and the constants pi and e. Multiplication must be explicit with the * symbol, as in 2*pi.
How does it calculate without using eval?
It tokenizes your expression itself and evaluates it with a recursive-descent parser that follows operator precedence (parentheses → functions/factorial → power → multiply/divide → add/subtract). With no arbitrary code execution, it runs safely inside your browser.
Sometimes the result is slightly off from what I expect.
Due to the nature of floating-point arithmetic, a value like sin(30) can come out as an approximation very close to 0.5, so treat it as a reference. Significant figures are cleaned up at display time, but very large or small numbers can retain tiny errors.

← Back to all tools

가격 보기카톡 무료 상담