3 ms·
I have a M.Sc in maths. I can derive the algorithm to solve a 2x2 linear system in the reals or the complex numbers, but I’m not sure I know how to do that prop
by Someone 7y ago
I have a M.Sc in maths. I can derive the algorithm to solve a 2x2 linear system in the reals or the complex numbers, but I’m not sure I know how to do that properly in IEEE floats or doubles.
In particular, I wonder whether ill-conditioned edge cases (https://en.wikipedia.org/wiki/Condition_number https://en.wikipedia.org/wiki/Condition_number) might need special-casing.
Having said that, I’m not convinced I could easily judge the quality of a third party solution, find a library that favors accuracy over speed, if I needed one, or whether existing libraries properly document how much overhead calling a routine taking nxn matrices for 2x2 matrices takes, if I needed a fast implementation.