No black boxes

There is no numerical library underneath these tools. Each calculator is a self-contained function in plain JavaScript that takes the inputs and returns a result, an intermediate-value table and the steps it took. If you want to know how a number was produced, the page tells you, and the source is short enough to read.

This is a deliberate constraint. A dependency would be easier, but it would also mean that a wrong answer could not be traced. Writing each function by hand makes every approximation visible and every assumption checkable.

Algorithms by family

What each family uses
FamilyApproachNotes
Inverse trigonometricMath.asin / acos / atan with explicit domain checksHyperbolics via logarithms: arsinh(x) = ln(x + √(x²+1))
Inverse hyperbolicLogarithmic forms, not the forward functionsAvoids cancellation for large arguments
Inverse normalAcklam's rational approximation + one Halley refinementRelative error below 1e-15 after refinement
Inverse t, chi-square, gammaBisection on the CDFMonotone CDF guarantees convergence; 200 iterations max
Inverse PoissonCumulative sum of the PMFExact for the integer search, no approximation
Log-gammaLanczos approximation, g = 7, 9 coefficientsAccurate to about 15 digits
Incomplete gamma / betaSeries expansion below the transition, continued fraction aboveThe standard Numerical Recipes split
Matrix inverseGauss-Jordan with partial pivotingSingularity detected at a pivot below 1e-12
Quaternion inverseConjugate divided by the squared normAngle recovered as 2·arccos(w/‖q‖)
Laplace inverseResidues at simple real polesDenominators up to degree 2, distinct roots only
Z-transform inverseImpulse-response recursionDenominators up to second order
DeconvolutionForward recursion on the convolution sumVerified by re-convolving the result
Modular inverseExtended Euclidean algorithmExact integer arithmetic, no rounding
KinematicsLaw of cosines with atan2Both elbow configurations reported
Interpolation / regressionLagrange and least squaresPolynomial degree capped to avoid Runge oscillation

How verification works

Each calculator is tested against values taken from published tables, from an independent closed-form solution, or from a second implementation written differently on purpose. A test that compares a function with itself proves nothing, so the reference values come from outside the code.

The test suite covers three things. Numerical assertions on known inputs, domain-error checks confirming that out-of-range inputs are rejected rather than answered, and a registry-wide smoke test that every calculator returns a structured response instead of throwing.

The suite runs on every build. If a change breaks a value, the build fails and the number is printed next to the expected one, so the regression is visible rather than shipped.

The worked examples are the tests. Every number in a worked example on this site is a value the test suite asserts. If the example says 2.3305 eV, the test checks 2.3305 eV.

Domain checks are deliberate

When an input is outside the valid range, the tool explains why instead of returning a number. arcsin(2) has no real answer; a singular matrix has no inverse; the zero quaternion cannot be inverted; a target beyond the arm's reach has no joint solution.

The alternative — clamping the input, or returning a NaN, or silently producing a plausible figure — is worse in every case. A refusal you can read is more useful than a number you cannot trust.

Where a value is mathematically valid but numerically delicate, the tool warns instead of refusing. A pole with a non-negative real part still inverts; the result simply carries a note that the system is unstable.

Limits of the arithmetic

JavaScript numbers are IEEE 754 double precision: about 15 to 17 significant decimal digits, with a limited exponent range. That is enough for engineering work and not enough for exact symbolic results.

  • Rounding accumulates. Chained operations lose digits. A result quoted to six decimals may carry an error in the last one or two.
  • Catastrophic cancellation is real. Subtracting two nearly equal numbers destroys precision. The logarithmic forms used for the inverse hyperbolics exist to avoid exactly this.
  • Integer arithmetic is exact — until it is not. JavaScript integers are exact to 2⁵³. Beyond that, modular arithmetic silently loses accuracy, which is why the modulus tool works with ordinary-sized numbers.
  • Iteration has a tolerance. The bisection solvers stop when the interval is smaller than 1e-12, so results are accurate to about that, not to machine precision.

What is not here

No symbolic computer algebra. No complex-valued inverses for arcsin and arccos outside their real domain. No arbitrary-precision arithmetic. No unit-aware computation — units are labelled, not tracked, so converting them is your responsibility.

These are scope decisions, not oversights. A tool that claims to do everything usually does the common case badly. Each calculator here does one inverse problem and states the boundaries of that problem on its own page.