Quote:
Originally Posted by Xhad
Still unnecessarily risks division by zero. I've already hinted at a straightforward way to do it without any dividing.
Do you mean when you stated this:
Quote:
The idea is to get the equations in the form:
ax + by = c1
ax + by = c2
I'm not sure what that was hinting at.
My current code makes use of the scenario where the determinant is zero, but I found I had to add a lot more "catches" to make sure that it returned the right output, and I'm still left with the dependent solution problem.
I just woke up though, and last night I was tired, so I could just be being mentally lazy. I'll think about it a bit more. Though, again, I didn't catch what you are hinting at above since I'm already working with the equation in standard form. Also I re-read and didn't see where you suggested a method that avoids division.