Mathematica > Core Language > Expressions > Testing Expressions >
Mathematica > Core Language > Procedural Programming > Conditionals > Testing Expressions >

PossibleZeroQ

PossibleZeroQ[expr]
gives True if basic symbolic and numerical methods suggest that expr has value zero, and gives False otherwise.
  • The general problem of determining whether an expression has value zero is undecidable; PossibleZeroQ provides a quick but not always accurate test.
  • With the setting Method->"ExactAlgebraics", PossibleZeroQ will use exact guaranteed methods in the case of explicit algebraic numbers.
Test whether a numeric expression is zero:
In[1]:=
Click for copyable input
Out[1]=
Test whether a symbolic expression is likely to be identically zero:
In[2]:=
Click for copyable input
Out[2]=
New in 6
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team