16 ms·
If there is a way of doing it without inversion it's probably more accurate - some people go out of their way to formulate methods without inversion to reduce i
by wnkrshm 4y ago
If there is a way of doing it without inversion it's probably more accurate - some people go out of their way to formulate methods without inversion to reduce inaccuracies.
- thomasahle 4y agoFor sure. I just wanted to point out the approach that arguably required "the least math knowledge". Also, OP was solving a degree four problem and wanted a closed form. For better stability just use `x = np.linalg.solve(M, y)`, or whichever linear solver you expect to be fast.