ZeroTest

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.

DetailsDetails

ExamplesExamplesopen allclose all

Basic Examples (1)Basic Examples (1)

The automatic ZeroTest used by LinearSolve does not detect that mat is nonsingular:

In[1]:=
Click for copyable input
Out[1]=

With a stronger zero test LinearSolve gives the correct answer:

In[2]:=
Click for copyable input
Out[2]=
In[3]:=
Click for copyable input
Out[3]=
New in 1
New to Mathematica? Find your learning path »
Have a question? Ask support »