Computer algebra systems are a great help for mathematical research but sometimes unexpected errors in the software can also badly affect it. As an example, we show how we have detected an error of Mathematica computing determinants of matrices of integer numbers: not only it computes the determinants wrongly, but also it produces different results if one evaluates the same determinant twice.
academic
Misfortunes of a mathematicians' trio using Computer Algebra Systems: Can we trust?
Computer algebra systems provide substantial assistance to mathematical research, yet unexpected software errors can sometimes severely impact research outcomes. As an illustration, the authors demonstrate how they detected an error in Mathematica's computation of integer matrix determinants: not only does it calculate the determinant incorrectly, but computing the same determinant twice yields different results.
Problem to be Addressed: The authors discovered serious errors in Mathematica when computing determinants of large integer matrices during mathematical research, including incorrect computational results and inconsistent results from identical computations.
Problem Significance:
Mathematicians increasingly rely on computer algebra systems for research
Incorrect computational results may lead to erroneous mathematical conclusions
Large integer computation is critically important in fields such as cryptography
Limitations of Existing Methods:
Commercial computer algebra systems are "black boxes" with opaque algorithms
Known errors are typically not disclosed to users
Modern software verification techniques are difficult to apply
Research Motivation: While extending results by Karlin and Szegő on orthogonal polynomials, the authors discovered that Mathematica and Maple produced different computational results, prompting deeper investigation that revealed systematic errors in Mathematica.
While researching the Casorati determinant of orthogonal polynomials:
detPf1(ak)Pf2(ak)⋮Pfl(ak)Pf1(ak+1)Pf2(ak+1)⋮Pfl(ak+1)⋯⋯⋱⋯Pf1(ak+l)Pf2(ak+l)⋮Pfl(ak+l)
By constructing all examples using integers to avoid floating-point issues, the authors discovered that Mathematica and Maple produced different results.
The authors reported the error to Wolfram Research on October 7, 2013 (Case Number: CASE:303438), received confirmation, but the issue remained unresolved in subsequent versions.
The paper cites the following important literature:
Karlin & Szegő (1960/1961) - Original research on orthogonal polynomial determinants
Appel & Haken (1977) - Computer-assisted proof of the Four Color Problem
Hales (2005) - Proof of the Kepler Conjecture
Ciaurri & Varona (2006) - Early research on computational reliability
Although brief in length, this paper reveals an important issue: even seemingly reliable symbolic computation may contain systematic errors. It reminds us to exercise caution when relying on computers for mathematical research and emphasizes the importance of software verification and transparency.