Cell 1
let A=[3,1;2,4]
A =
| 3 | 1 |
| 2 | 4 |
Solve equations, convert units, inspect the working, and check proposed solutions. An editable worksheet keeps the mathematics and the results together.
Write one definition, calculation, equation or check per line. Reuse your values, edit the worksheet, and run it again.
Use let to name exact values and calc to compute with them. Definitions can appear in any order; every run starts from the visible input. Existing equations and unit checks keep their own syntax. Your input is stored in the URL, so use this shareable workspace for non-private mathematics.
Open a reusable matrix worksheet
Define let half = 1/2, then use calc half + 1/3. Values stay exact. Use + - * / ^ and parentheses; powers need an integer exponent. Names use letters, digits and underscores and must start with a letter or underscore. Each name has one definition.
Enter a matrix as [1,2;3,4]: commas separate columns and semicolons separate rows. Matrix addition and subtraction need matching shapes. Multiply matrices with *, scale or divide by a number, transpose with transpose(A), or solve solve(A,b) with a square A and a column b. A solve is accepted only after exact verification against the original equations.
Missing names, duplicate definitions, cycles and failed dependencies stay visible. Changes take effect when you run the worksheet. Exact arithmetic currently uses checked integers; overflow is refused. Interactive matrix grids, arbitrary precision, symbolic calculus, plotting and private saved notebooks are still being built.
Open an algebra worksheet · Compare a correct and an incorrect linear solution
Use check-linear N SCALE TOL_NUM TOL_DEN A... B... X.... Enter the matrix row by row, followed by the right-hand side and the solution numerators; the solution is X / SCALE.
Example: check-linear 2 1 0 1 3 1 2 4 5 10 1 2 checks 3x + y = 5 and 2x + 4y = 10 at x = 1, y = 2, requiring zero residual. The report separates an accepted backward error from properties that still need assessment.
See why a small residual can hide a large solution error
Use certify-linear N SCALE TOL_NUM TOL_DEN A... B... X.... The entry order matches check-linear, but the tolerance applies to the relative error in the solution. This computes and verifies a unique exact solution for a square integer matrix, then compares your proposed answer with it.
The infinity norm uses the largest component magnitude; a matrix uses its largest absolute row sum. Condition number is the matrix norm multiplied by its inverse norm. A zero true solution requires an exactly zero proposed answer. Singular systems and arithmetic outside the current checked integer range are explicitly refused.
Use convert 36 km/h to m/s or check-quantity 1 lbf*s = 1 N*s. Values can be integers, decimals or fractions such as 3/2. The result keeps the exact fraction. The second example correctly rejects a wrong force conversion even though the dimensions match.
Symbols: 1 m kg s A K mol cd N J W Pa Hz C V ohm g L min h day ft in lb lbf. Prefixes k M G c m u n work on these SI symbols and L, with g as the mass base. Combine units with * / ^, for example kg*m/s^2. Multiplication and division run left to right; parentheses and fractional powers are not supported yet.
For temperature values use degC, degF or K. For changes in temperature use deltaC or deltaF. A temperature value cannot be used as a rate or multiplied into a compound unit. Values below absolute zero are refused when converting temperature values involving degC or degF. Exact arithmetic currently uses bounded integers and explicitly refuses overflow.
let A=[3,1;2,4]
A =
| 3 | 1 |
| 2 | 4 |
let b=[5;10]
b =
| 5 |
| 10 |
let answer=solve(A,b)
answer =
| 1 |
| 2 |
calc A*answer-b
Exact result
| 0 |
| 0 |
Replayed 4 cells from the visible input. A refused cell remains refused; it does not validate the rest of the worksheet.
read this first
Supported equation solutions retain fractions and exact radicals. The linear-system reviewer checks exact integer residuals and reports its arithmetic range. Exact arithmetic alone does not establish units, model validity or superiority to other mathematics systems.
The applied core is proved by conservation and identity laws, and an arithmetic outside this estate re-computed the published values and agreed on every one of twenty-four, refusing two deliberately corrupted ones.
The typesetter, the games and the arithmetic are ours from the first byte. Nothing on this page is fetched from another company: no library, no web font, no third-party analytics. It works the same in the Nishi browser.
Live worksheets reuse exact named scalars and matrices, solve supported linear and quadratic equations, convert units and review declared linear-system solutions. General symbolic solving, calculus, plotting, matrix-grid entry and private saved notebooks remain on the roadmap.
from about five years old
Every answer below is computed right now by the same library the rest of the estate uses, not typed into the page.
school
algebra
Solve 3x + 4 = 19
Solve x squared minus 5x + 6 = 0
Solve x squared = 2, where the honest answer is irrational
Every line above was produced by the solver and typeset by our own reader when this page was published. The answers are exact: a fraction stays a fraction, and an irrational root is given in its exact radical form rather than rounded into a decimal that is not the answer.
the mathematics people are actually paid for
Money, wear and tear, and statistics. This is the half of mathematics that gets computed every day and machine-checked almost nowhere.
research
support the work
Nishi Math is free to use and always will be. Schools, departments and universities can sponsor a section of this page to show they back independent, checkable mathematics tooling that no student has to pay for and no institution has to license.
Sponsorship is plain and honest: a named card, no tracking of any reader, no third-party advertising network, and no data leaving this page. Placement is served by our own ad organs alongside everything else here.
2026-11-06 Alpha worksheet update: reuse named exact values, enter and calculate with matrices, and solve systems with exact verification. Definitions resolve across cell order and every run rebuilds the worksheet; missing names, duplicates, cycles, shape errors and arithmetic limits are explicit. Native callers use worksheet-v1. Interactive matrix grids and selective recomputation remain queued. Validation and current comparison gaps.
2026-11-06 Alpha update: certify a unique exact linear solution, inspect its condition number, and measure the proposed answer's forward error. The paired example exposes a small residual hiding a large solution error and shows the corrected answer. Validation covers independent cofactor answers, corrupted-certificate rejection, singular systems, zero solutions and arithmetic limits. Native callers use linear-certify-v1. Larger sparse systems, arbitrary precision and external comparative benchmarks remain open.
2026-11-05 Alpha update: convert exact physical quantities, catch wrong unit scales, and distinguish temperature values from intervals. The worksheet also replays independent algebra cells and checks exact linear-system residuals. Validation includes source-derived unit answers, wrong-scale and overflow controls, plus the retained earlier worksheet tests. Read the retained validation, research roadmap and open comparison work.
The mathematics office owns correctness and research guidance. Workspace depth and NishiLang with its package ecosystem are separate measured targets. Broad superiority remains unproven.
| Piece | Organ | What it does here |
|---|---|---|
| Typesetting | nx_mathml_lib | Reads the LaTeX subset and emits MathML the browser renders natively. Every formula above went through it at publish time. |
| Symbols | nx_unicode_math | The Greek letters and operator glyphs, composed rather than re-tabulated. |
| Games | nx_math_games | Parity, Fibonacci, triangle numbers, Hanoi and coin outcomes, each answer computed at publish time. |
| Applied core | nx_amort_lib, nx_hazard_lib, nx_sketch_stream_stats | Money, wear and tear, statistics, all in integer fixed point. |
| Exact arithmetic | nx_mathcore | Arbitrary precision integers, exact rationals, complex numbers, derivation checking. |
| Proof | nx_appliedmath_gate, nx_mathcore_gate | Fifty-seven teeth between them, every one an identity or a conservation law, comparators bite-proven. |