How letx checks its maths
Correctness is the whole point of a formula reference. Every calculator on this site is tested at every build, and nothing is published unless every test passes.
Validation summary (build of 2026-10-31)
- Calculators
- 100
- Known test cases passed
- 822 / 822
- Round-trip checks passed
- 1226
- Worked examples recomputed
- 100
| Topic | Formulas | Test cases |
|---|---|---|
| Algebra | 14 | 110 |
| Geometry | 22 | 155 |
| Coordinate geometry | 8 | 66 |
| Trigonometry | 9 | 108 |
| Sequences and series | 7 | 66 |
| Probability and statistics | 13 | 114 |
| Finance maths | 9 | 72 |
| Calculus basics | 12 | 81 |
| Motion (kinematics) | 6 | 50 |
Test cases for each formula
- Addition rule (or) 8
- Angle sum and difference formulas 13
- Arc length 13
- Area of a circle 6
- Area of a parallelogram 6
- Area of a rectangle 6
- Area of a regular polygon 8
- Area of a sector 10
- Area of a trapezoid (trapezium) 6
- Area of a triangle 6
- Area of a triangle from two sides and an angle 10
- Area of an ellipse 6
- Arithmetic sequence (n-th term) 11
- Arithmetic series (sum) 9
- Average value of a function 6
- Bayes' theorem 8
- Binomial distribution 13
- Binomial theorem 10
- Chain rule 7
- Change of base formula 6
- Circumference of a circle 6
- Combinations 9
- Compound interest 10
- Conditional probability 7
- Continuous compounding 7
- Definite integral (area under a curve) 7
- Definition of a logarithm 9
- Degrees and radians 8
- Derivatives of eˣ and ln x 6
- Derivatives of sin and cos 6
- Difference of two squares 7
- Difference quotient 6
- Discriminant 9
- Displacement from average velocity 6
- Displacement: s = ut + ½at² 10
- Distance formula 11
- Distance from a point to a line 8
- Double-angle formulas 16
- Effective annual rate 7
- Equation of a circle 9
- Equation of a tangent line 6
- Expected value 8
- Exponential growth and decay 7
- Final velocity: v = u + at 8
- Future value of an annuity 8
- Geometric sequence (n-th term) 12
- Geometric series (sum) 11
- Half-life formula 7
- Heron's formula 10
- Infinite geometric series (sum to infinity) 9
- Integral of eᵏˣ 6
- Interior angles of a polygon 7
- Law of cosines 14
- Law of sines 12
- Laws of exponents 7
- Loan repayment formula 11
- Logarithm power rule 6
- Logarithm product rule 7
- Logarithm quotient rule 6
- Margin of error (proportion) 7
- Mean (average) 7
- Midpoint formula 8
- Multiplication rule for independent events (and) 7
- Normal distribution probability 13
- Percentage change 7
- Permutations 10
- Point-slope form 7
- Power rule for derivatives 8
- Power rule for integrals 10
- Present value 7
- Present value of an annuity 8
- Product rule 7
- Projectile range 12
- Pythagorean identity 7
- Pythagorean theorem 11
- Quadratic formula 14
- Quotient rule 6
- Rule of 72 6
- Simple interest 8
- Sine wave (amplitude, period and phase) 13
- Slope formula 8
- Slope-intercept form 8
- Slopes of perpendicular lines 7
- SOH CAH TOA (right-triangle trigonometry) 15
- Speed, distance and time 7
- Standard deviation 9
- Sum of the first n squares 7
- Sum of the first n whole numbers 7
- Surface area of a box (cuboid) 6
- Surface area of a cone 6
- Surface area of a cylinder 6
- Surface area of a sphere 6
- Velocity and displacement: v² = u² + 2as 7
- Vertex of a parabola 8
- Volume of a box (cuboid) 6
- Volume of a cone 6
- Volume of a cylinder 6
- Volume of a pyramid 6
- Volume of a sphere 6
- Z-score (standard score) 8
What is tested
- Known cases. Every calculator is run against at least five results whose answers are known independently: textbook values (a 3-4-5 triangle, , , a 200,000 loan over 30 years at 6%) or the formula re-evaluated separately in plain code. The expected answers never come from the calculator being tested.
- Edge cases. Each set includes the cases that go wrong in practice: a negative discriminant (the roots must come out as a complex pair, , not as an error), a zero denominator, impossible triangles, , inverse sines of numbers outside −1 to 1, whole-number inputs that are not whole, probabilities above 1, and the same angle in degrees and in radians.
- Round trips. After each successful case, the answer is fed back in and the calculator solves for each of the original inputs in turn. Solving for A and then for r must give back the radius. This catches a wrongly rearranged formula even where no textbook value exists.
- Worked examples. The steps in each page's worked example are produced by the same code as the live calculator. When the site is built, every example is solved again; the build fails if the question no longer contains the numbers used, or if any number in the written answer differs from the computed one at the precision written.
How the calculators work
Each formula is stored once, as the rearrangements a student would write: , . The calculator substitutes your numbers, then evaluates the expression one layer at a time so you see the intermediate results. Inputs can be expressions such as 2pi, sqrt(2)/2, 3/8 or 5%.
- Precision. Arithmetic uses double-precision floating point (about 15–16 significant figures). Results are shown to 6 significant figures, money to 2 decimal places, and "≈" appears whenever a displayed number is rounded.
- No algebraic rearrangement. A few unknowns cannot be isolated by algebra (the interest rate in a loan payment, for example). Those are found numerically by bisection to about 12 significant figures, the page says so, and the answer is checked by substituting it back.
- Special functions. The normal distribution uses the complementary error function, computed from its Taylor series for small arguments and a continued fraction for large ones; checked against standard tables to better than . The inverse uses Acklam's rational approximation refined with Newton steps.
- Angles. Trigonometry calculators work in degrees or radians (your choice is remembered on your device). Exact values are kept exact: , , and is reported as undefined rather than as a huge number. Calculus uses radians, as the derivative rules require.
- Domains. Square roots of negative numbers, logarithms of non-positive numbers, division by zero and similar cases produce an explanation, never a silent NaN.
Graphs and illustrations
Every graph and shape is drawn as SVG by the site's own code: once when the page is built, so it works without JavaScript, and again in your browser as you move the sliders. Nothing is fetched from anywhere else.
Sources and licences
The formulas themselves are standard mathematics and belong to no one. All text, calculators, graphs, illustrations and icons on letx are original work written for this site. No third-party datasets, photographs, fonts or scripts are used. Values used in the tests (normal-distribution table values, binomial coefficients, amortisation figures) are mathematical facts that were recomputed independently, not copied from a source.
Found a mistake?
If an answer looks wrong, check the inputs are in the units the calculator asks for (angles in degrees or radians, rates as 5% or 0.05). The step-by-step working shows exactly what was computed.