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
| Family | Approach | Notes |
|---|---|---|
| Inverse trigonometric | Math.asin / acos / atan with explicit domain checks | Hyperbolics via logarithms: arsinh(x) = ln(x + √(x²+1)) |
| Inverse hyperbolic | Logarithmic forms, not the forward functions | Avoids cancellation for large arguments |
| Inverse normal | Acklam's rational approximation + one Halley refinement | Relative error below 1e-15 after refinement |
| Inverse t, chi-square, gamma | Bisection on the CDF | Monotone CDF guarantees convergence; 200 iterations max |
| Inverse Poisson | Cumulative sum of the PMF | Exact for the integer search, no approximation |
| Log-gamma | Lanczos approximation, g = 7, 9 coefficients | Accurate to about 15 digits |
| Incomplete gamma / beta | Series expansion below the transition, continued fraction above | The standard Numerical Recipes split |
| Matrix inverse | Gauss-Jordan with partial pivoting | Singularity detected at a pivot below 1e-12 |
| Quaternion inverse | Conjugate divided by the squared norm | Angle recovered as 2·arccos(w/‖q‖) |
| Laplace inverse | Residues at simple real poles | Denominators up to degree 2, distinct roots only |
| Z-transform inverse | Impulse-response recursion | Denominators up to second order |
| Deconvolution | Forward recursion on the convolution sum | Verified by re-convolving the result |
| Modular inverse | Extended Euclidean algorithm | Exact integer arithmetic, no rounding |
| Kinematics | Law of cosines with atan2 | Both elbow configurations reported |
| Interpolation / regression | Lagrange and least squares | Polynomial 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.