How this calculation works
Search for a bounded integer relation among exact decimal inputs and report whether a nonzero coefficient tuple exists within a completed search. The arithmetic treats entered decimals as exact rationals, making the limited claim reproducible. It does not turn a relation between rounded measurements into a theorem about unentered irrational constants.
Find nonzero integer c, ||c||∞≤B, Σc_i x_i=0.A worked example
The values 1, 2 and 3 admit the exact relation 1 + 2 − 3 = 0, with coefficients (1,1,−1). Another relation with the same minimum coefficient bound can also be valid. The search concerns the exact entered decimals, not unknown irrational values that those decimals might approximate.
Good to know
2–4 plain decimals≤30 places, coefficient bound≤20,500,000 states. Exact relation concerns entered decimals only; no identity for unentered irrational constants or PSLQ implementation claim.
Define the relation and its coefficient bound
For values x1 through xn, seek integers c1 through cn, not all zero, with their weighted sum equal to zero. The coefficient control bounds the absolute value of every ci. The solver considers increasing maximum coefficient magnitude, so a found tuple has minimum infinity norm within the completed search.
Multiplying every coefficient by minus one gives the same relation, so the implementation chooses a sign convention for the first nonzero coefficient. A relation with some zero coefficients is allowed and can involve only a subset of the values. Zero entries are not evidence that an input was accidentally ignored.
The Integer lattice intersection and sum basis calculator uses exact integer basis membership. A relation among rounded decimal constants is only an identity of those entered rationals; increasing its coefficient bound does not establish an identity of unknown real constants.
Treat every decimal as the number actually entered
A plain decimal with thirty places is an exact rational with a power-of-ten denominator under this input contract. The search combines those exact rationals, not binary floating-point approximations. Scientific notation and symbolic constants are not accepted as a way to bypass the supported parser.
If a decimal approximates pi, a square root or an experimental measurement, the relation concerns that finite decimal only. It does not prove that the underlying intended constant satisfies the same equation. Increasing displayed decimal precision is not a substitute for a symbolic proof or a justified error bound.
Check the small example
Inputs one,two,three admit coefficients (one,one,minus one), because one plus two minus three is zero. Other nonzero relations exist, and the returned tuple can choose another minimum-norm witness. It need not reproduce the same human-preferred equation when several solutions tie.
For two values one and two, the simplest nonzero relation requires coefficients two and minus one up to sign. A bound of one therefore finds none, while a bound of two succeeds. That comparison separates failure within a coefficient cap from a claim that the numbers are rationally independent.
Understand exact verification versus discovery
Every candidate is evaluated by rational arithmetic. A zero weighted sum is exact for the entered decimals and can be independently checked by multiplying through common denominators. No tiny residual threshold is used to turn a merely close floating-point sum into an identity.
Discovery is nevertheless bounded. The form supports two to four values and at most five hundred thousand recursive search states. When that cap is exceeded, it reports an inconclusive resource error. It does not retain a promising partial relation or claim absence throughout a bound it never finished.
Interpret a completed negative result narrowly
If the search completes with no relation, it excludes nonzero integer tuples only inside the chosen coefficient box. A relation with larger coefficients can still exist. In fact finite rational inputs always have integer relations when at least two are considered, but the required coefficients may be much larger than the interface permits.
The result therefore cannot certify rational independence of mathematical constants. Its purpose is a transparent small bounded relation problem. Algorithms such as PSLQ solve a different numerical-discovery workflow with their own precision requirements; this page does not claim to implement PSLQ merely because the broad topic is integer relations.
Keep normalization and ties in context
The first successful maximum coefficient magnitude is a useful simplicity measure, but it is not the only possible one. Minimizing coefficient sum, Euclidean norm or number of nonzero entries would be different objectives. The returned tuple need not be best under those unrequested measures.
Dividing a tuple by the gcd of its entries preserves the relation and can simplify its presentation. Searching increasing infinity norm already avoids a needlessly large common multiple as the first optimum. Multiple primitive relations can remain, especially with three or four rational inputs, so the output is one witness rather than a canonical relation basis.
Use approximate-data applications cautiously
An exact decimal identity can be created by rounding or recording conventions. It may reveal how a dataset was generated rather than a physical law. Conversely, a real approximate relation can be missed because this exact search does not permit residual error. Both outcomes depend on the question being posed.
If uncertain measurements are the target, specify an error model and a tolerance-aware method outside this form. Do not change a final decimal simply to force an identity and then report it as discovered evidence. Preserve the exact input strings, coefficient bound and completed-search status with the witness.
A few questions, answered
Does a relation prove an identity involving pi or another constant?
No. It proves only an identity among the finite decimal values entered.
Does no relation mean rational independence?
No. It excludes only tuples within the completed coefficient bound.
Is this PSLQ?
No. It is a bounded exact-decimal enumeration with explicit resource limits.
Can a valid relation have zero coefficients?
Yes. It can involve a subset of the supplied values while remaining nonzero overall.