News for hackers. Stuff that matters.
Re:Polynomial Interpolation by wnkrshm on Thursday February 09, 2023 @03:00AM (#34721005)
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.
Re:Polynomial Interpolation by thomasahle on Thursday February 09, 2023 @12:50PM (#34728086)
For 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.