Asking a question
Every computation starts as one line:
TARGET ? [EQUATION; EQUATION [or EQUATION; ...] |] ITEM, ITEM, ...
The parts
| Part | What it is | Example |
|---|---|---|
TARGET | the symbol you want | r_s |
EQUATION | left = right, the unknown allowed on both sides | x ? x = cos(x) |
| the name of a shelf identity | Newton's second law | |
field NAME: a field equation on a grid | f ? field cavity | … | |
dY/dT = f: integrated from Y0 at T0 to T1 | v ? dv/dt = g - k_d*v^2 | v0 = 0 m/s, t1 = 5 s, … | |
ITEM | a binding | m = 2 kg |
| a hypothesis | v = sqrt(2*g*h) | |
| a measurement to judge against | observed = 11 ± 1 km | |
| a bound | observed < 0.036 | |
TARGET in UNIT ? | the answer shown in that unit | E in eV ? … |
or | rival equation sets on one state; the one inside the gate with the smallest gap is sealed |
Second-order equations are written d2Y/dT2 = f and start from Y0 and dY0. A system joins equations with ;.
Units everywhere
A quantity keeps its unit anywhere in an expression: 5 km + 300 m is 5300 m, and sin(30 deg) is 0.5. A mass bound in metres is refused. c, hbar, h, G, k_B and pi are fixed constants. The functions are sin, cos, tan, exp, ln, log, sqrt, abs, integral and sum. A symbol of your own takes none of these names.
integral(f, x, a, b)is adaptive Gauss–Kronrod with its error on the record. A limit may beinf.sum(f, k, a, b)runs over the integers, with an infinite tail bounded by the integral test.eigen(q, x, a, b, n)is the n-th level of-y'' + q ybetween two walls. Every level is proved inside an interval.
Examples
python3 zeq.py --ask "F ? F = m*a | m = 2 kg, a = 3 m/s^2"
python3 zeq.py --ask "T ? T^2 = 4*pi^2*a_orb^3/(G*m) | a_orb = 1.496e11 m, m = 1.98841e30 kg"
python3 zeq.py --ask "E ? E = h*nu; nu = c/lam | lam = 500 nm"
python3 zeq.py --ask "Z ? integral(x^3/(exp(x) - 1), x, 0, inf)"
python3 zeq.py --ask "f ? field cavity | a_x = 22.86 mm, a_y = 10.16 mm, a_z = 30 mm, m_x = 1, m_y = 0, m_z = 1, eps_r = 2.1"
What comes back
| Field | Meaning |
|---|---|
value_si, unit, grade | the value in SI, its unit and its dimension as exponents of (M, L, T, Θ) |
verification | verified, observable-differential (with its gap to a measurement), or refused |
refused | when refused, the step that stopped it and why |
residual, residual_exact | how well the equations hold at the value, in the float and in exact arithmetic |
condition, error_bound | sensitivity of the answer, and the bound held to the 0.1 % gate |
steps | FORM → BIND → COMPUTE → MEASURE → SEAL |
method | the toolkit that found it: root route, quadrature rule, integrator and tolerances |
recipe, repro_digest | everything needed to compute it again, and the digest a reproduction must match |
certifies | what the residual proves: the computation, never that the equations are laws |
Through the API the answer arrives inside a sealed envelope, signed by the machine and written into its log. See Verify an answer.
The shelf
With every module plugged in, the machine holds about 1,780 named identities in 39 domains, 41 field equations, the 42 kinematic operators and the operator registry. Each identity is tiered:
- defined, a definition;
- established, by experiment;
- model-dependent, labelled as such in every answer that uses it.
--find WORD and GET /find?q=WORDS search the shelf; GET /shelf lists it. Model-dependent constructs of the framework itself (the 1.287 Hz carrier's identities, the awareness operators) live in the frontier module, tiered model-dependent, and every answer built on them says so.