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.
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.