is an option to various linear algebra functions that gives a function to use in testing whether symbolic expressions should be treated as zero.
ZeroTest
is an option to various linear algebra functions that gives a function to use in testing whether symbolic expressions should be treated as zero.
Details
- ZeroTest->Automatic effectively tests for zeros using a version of PossibleZeroQ.
Examples
Basic Examples (1)
The automatic ZeroTest used by LinearSolve does not detect that mat is non-singular:
a = RootApproximant[N[Pi, 10000], 20];
mat = {{1, 0}, {1, a - Pi}};
LinearSolve[mat, {1, 2}]N[N[a - Pi, 20000], 20]//QuietWith a stronger zero test, LinearSolve gives the correct answer:
LinearSolve[mat, {1, 2}, ZeroTest -> (N[#, 20000] == 0&)]Tech Notes
History
Introduced in 1988 (1.0) | Updated in 2007 (6.0)
Text
Wolfram Research (1988), ZeroTest, Wolfram Language function, https://reference.wolfram.com/language/ref/ZeroTest.html (updated 2007).
CMS
Wolfram Language. 1988. "ZeroTest." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2007. https://reference.wolfram.com/language/ref/ZeroTest.html.
APA
Wolfram Language. (1988). ZeroTest. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/ZeroTest.html
BibTeX
@misc{reference.wolfram_2026_zerotest, author="Wolfram Research", title="{ZeroTest}", year="2007", howpublished="\url{https://reference.wolfram.com/language/ref/ZeroTest.html}", note=[Accessed: 13-June-2026]}
BibLaTeX
@online{reference.wolfram_2026_zerotest, organization={Wolfram Research}, title={ZeroTest}, year={2007}, url={https://reference.wolfram.com/language/ref/ZeroTest.html}, note=[Accessed: 13-June-2026]}