dubiumlabsUtilities

Utilities

Scientific calculator for expressions and physical constants

Evaluates math expressions with physical constants (c, h, Nₐ) and complex number support

Solve

Type a scalar expression, choose DEG or RAD, and evaluate it with a catalogue of 30 documented constants.

Loading tool…

Quick guide

Understand the calculation

Browser-based scientific calculator for scalar expressions. It evaluates arithmetic, powers, factorials, roots, logarithms, trigonometry in degrees or radians, and complex numbers with i, with 30 mathematical and physical constants referenced to the 2019 SI and the 2022 CODATA adjustment.

When to use this tool

Use it to check a numerical expression, evaluate physics formulas whose data already use compatible units, work with scientific notation, or compare a trigonometric function in DEG and RAD. History preserves the angle mode and display format of every saved operation.

How it works

Input is checked against a closed grammar before evaluation: it accepts real numbers, the imaginary unit i, parentheses, +, −, *, /, ^, factorial, and the functions sqrt, abs, sin, cos, tan, log, and log10. log is the natural logarithm; the ln key inserts that function. DEG converts trigonometric arguments from degrees, while RAD interprets them directly as radians. Auto preserves up to 14 significant digits and reserves scientific notation for excessively long decimal forms or values below 10⁻⁹; FIX sets visible decimal places without changing the internal value. Pressing = or Enter stores a valid operation in a history of up to 10 entries.

It evaluates only real or complex scalars using double-precision arithmetic: it does not represent experimental significant figures or propagate uncertainty. Variables, assignments, matrices, ranges, objects, property access, and user-defined functions are rejected, and each expression is limited to 300 characters. Extreme values can overflow to infinity and are rejected. Constants do not provide dimensional analysis: combining quantities with incompatible units may produce a mathematically valid number with no physical meaning.

Verified examples
  • Precedence and parenthesesno parentheses: 2 + 3 * 4 = 14 · with parentheses: (2 + 3) * 4 = 20
  • Energy of a 500 nm photon using SI datah * c / (500e-9) = 3.9728917142979e-19 J
  • Equivalent trigonometryDEG: sin(30) = 0.5 · RAD: sin(pi / 6) = 0.5
  • Complex input and resultproduct: (1 + i) * (1 - i) = 2 · negative root: sqrt(-4) = 2i
Frequently asked questions

Does log mean the natural or common logarithm?

log(x), inserted by the ln key, is the natural logarithm with base e. Type log10(x) for base 10. Both can return complex results when the real domain is insufficient.

What changes between DEG and RAD?

Only the interpretation of arguments passed to sin, cos, and tan. Changing the mode immediately recalculates the visible expression; all other operations and constants stay unchanged.

Are all physical constants exact?

No. c, h, elementary charge, k, and N_A are exact by SI definition; masses, G, α, ε₀, and others come from the 2022 CODATA adjustment and have experimental uncertainty. The catalogue also distinguishes mathematical and conventional values.

Does FIX change the calculation?

No. FIX rounds only the displayed text, and history stores that format. If rounding would hide a nonzero value as zero, the display switches to scientific notation. Evaluation retains the browser's available numeric precision.