Open mscuttari opened 2 years ago
Commit 7df812318a8b64343987956ab3dbb68e6e68e4ea introduces the detection of division by zero. This allows to stop the compilation process if the issue is detected.
An implementation of the Cramer's rule can now be introduced to solve this issue without relying to external solvers.
@mscuttari is this issue still open?
If so, do we wait for @StefanoAzzone to finish his job in order to have a proper solution?
Yes, the solution is part of Stefano's work.
Considering the system of equations:
Explicitating eq1 with respect to x would give
x = - y - z + 1
But the substitution within eq2 would yield to- y - z + 1 + y - z = 2
Which is equivalent to0y - 2z + 1 = 0
And would lead to the division by 0y = (2z - 1) / 0
The system, however, is trivially solvable with
x = 5/2, y = -1, z = -1/2