DevTools Logo

Scientific & Engineering Calculator

Scientific & Engineering Calculator

Six-mode math workstation: precision arithmetic, reactive notebook, function plotting, linear algebra, statistics and engineering units — all client-side.

Precision
Scientific
sin(45)+16\sin\left(45\right)+\sqrt{16}
4.70710678118654.7071067811865

Memory & variables

Store results: A = 42 works directly in the expression — try it, then press =.

Export as code

LaTeX
\sin\left(45\right)+\sqrt{16}
Python / NumPy
math.sin(45) + math.sqrt(16)
JavaScript
Math.sin(45) + Math.sqrt(16)
C++
std::sin(45) + std::sqrt(16)

Examples

Exact decimal arithmetic

Input
0.1 + 0.2   (precision: 32 digits)
Output
0.3

BigNumber mode eliminates the classic IEEE 754 artifact 0.30000000000000004.

Angle-aware trigonometry

Input
asin(0.5)   (mode: Deg)
Output
30

Inverse trig reports degrees in Deg mode; sin/cos/tan arguments are converted the same way.

Reactive notebook

Input
radius = 12.5
area = pi * radius^2
volume = area * 30
Output
area = 490.8738521234…
volume = 14726.2155637022…

Edit radius and every dependent line recomputes instantly.

Dimensional analysis

Input
10 N * 5 m
Output
50 J

Units multiply and cancel inside expressions; `to` converts (3.5 bar to psi → 50.76…).

Quadratic formula as code

Input
(-b + sqrt(b^2 - 4*a*c)) / (2*a)
Output
LaTeX: \frac{-b+\sqrt{b^{2}-4ac}}{2a}
Python: (-b + math.sqrt(b**2 - (4*a)*c)) / (2*a)

One expression, four export formats, each one click away.

About this tool

The Scientific & Engineering Calculator is a six-mode math workstation that runs entirely in your browser: a standard scientific keypad with live LaTeX preview, a reactive multi-line notebook, an interactive 2D function plotter with numeric analysis, matrix & linear algebra, statistics with probability distributions, and an engineering units mode with the CODATA 2022 physical constants.

Precision is the headline feature: switch from 64-bit floats to 16–64 significant digits and arithmetic moves onto arbitrary-precision decimals, so 0.1 + 0.2 is exactly 0.3 and 100! keeps all 158 digits. A fraction display mode reconstructs rational forms, and complex results (sqrt(-4) → 2i) are opt-in so they never ambush an engineering calculation.

Everything is client-side and eval-free: expressions are parsed into an AST and evaluated by the mathjs engine with decimal.js for big-number mode, KaTeX renders formulas, and results — history, variables and settings included — never leave your browser.

How to use

  1. Type or tap an expression

    Enter math freely from the keyboard (sin(pi/4) + sqrt(16)) or use the keypad — the 2nd key reveals inverse and hyperbolic variants.

  2. Pick angle and precision

    Choose Deg/Rad/Grad and float or 16–64-digit precision from the settings bar; results update instantly.

  3. Evaluate and reuse

    Press = or Enter. The result becomes ans, the calculation lands in history, and A = … stores variables you can reference later.

  4. Explore the modes

    Switch with the tabs or Alt+1…6: reactive notebook, function graphing with numeric analysis, matrix algebra, statistics and unit conversions.

  5. Export as code

    Copy the live LaTeX, Python, JavaScript or C++ rendering of your expression from the export panel.

Use cases

Game & graphics programming

Vector/matrix products, complex numbers and radian trig for rotation matrices — then copy the formula straight into C++ or JavaScript.

Electronics & DSP engineering

Filter corner frequencies (1/(2 pi R C)), dB arithmetic and SI conversions (3.3 V, 50 mA) with CODATA constants one click away.

Data analysis & stats class

Paste a data set for mean/median/IQR/standard deviation, run linear regression on (x, y) pairs, or check binomial and Poisson probabilities.

Homework & research

Graph f(x), read off roots and extrema, compute the definite integral, and export the whole setup as LaTeX for the write-up.

Common mistakes

Mistake:Typing sin(30) in Rad mode and getting −0.988

Fix:Check the angle indicator in the settings bar — Deg/Rad/Grad changes the meaning of every plain trig argument. Alt+D flips it.

Mistake:Expecting 0.1 + 0.2 = 0.3 in float mode

Fix:Float mode is intentionally 64-bit; switch Precision to 16–64 digits for exact decimal arithmetic.

Mistake:Using h for the Planck constant in unit expressions

Fix:Bare h is the hour unit (km/h). The Planck constant is hplanck — or just click Insert in the constants panel.

Mistake:Dividing units that don't cancel

Fix:Dimensional analysis is strict: `10 N * 5 m` → 50 J works, but adding N to m errors with a dimensions-do-not-match message.

Mistake:Losing the last result

Fix:ans (or the Ans keypad key) recalls it, the history drawer (Alt+H) stores the last 200 calculations, and MS/MR give you a classic memory register.

Frequently asked questions

References & standards