Closed phet-steele closed 7 years ago
Matrix is Singular implies that the determinant of the solution matrix is zero, hence there is no inverse to the matrix. As a result, no solution exists for the a,b,c,d coefficients. Two points sharing the same x position lead to a slope of infinity.
I can commit a temporary solution where a solution a=b=c=d=0 is returned for cases where the determinant is nearly zero.. Long term, it would preferable to come up with an approach that indicates to the user that there is no curve fit for this arrangement of points.
The commit should resolve this ticket but doesn't address the larger issue of how to deal with such ill fitted curve . Let me close this issue and addressed these concerns in another issue.
Caused by two points making an undefined slope (easier to NOT put them on top of each other). Had to fuzzMouse for about 2 hours to occur. It's much easier to repro by hand.