Discussion Overview
The discussion revolves around the behavior of the Matlab function det when calculating the determinant of a matrix that is expected to be zero. Participants explore the reasons behind the output of a very small non-zero value instead of the expected zero.
Discussion Character
- Technical explanation
- Conceptual clarification
- Debate/contested
Main Points Raised
- One participant notes that the determinant of the matrix
a=[1,2,3;4,5,6;7,8,9] should be zero, but Matlab returns 6.6613e-16.
- Another participant suggests that this discrepancy arises because not all decimal numbers can be represented exactly in binary, leading to small errors in computation.
- A different participant explains that Matlab uses a general-purpose algorithm for calculating determinants, possibly involving LU decomposition, which can introduce inexactness due to scaling tricks used for stability.
- One participant expresses gratitude for the clarification, indicating that they feel reassured about their understanding of the situation.
Areas of Agreement / Disagreement
Participants do not reach a consensus on a single explanation but present multiple perspectives on the reasons for the non-zero output, indicating that the discussion remains unresolved.
Contextual Notes
The discussion highlights limitations in numerical representation and the implications of algorithmic approaches in computational mathematics, without resolving the specific impact of these factors on the determinant calculation.