I need to create a function get_polynom that will take a list of tuples (x1, y1), (x2, y2), ..., (xn, yn) representing points and find the coefficients of the polynomial c0, c1, ..., cn.
I can't manage to understand the task, the only tip I have is the provided part of the function:
import numpy as np
def get_polynom(coords):
...
return np.linalg.solve(a, b)
Have somebody done something similar? Just a little explanation of what exactly is expected would be great!
Thanks in advance!