I have two arrays, say for ex:
x = ([0.004,0.005,0.006,0.007])
y = ([0.001,0.095,0.026,0.307])
I want to fit a polynomial of degree 3 but I don't really intend to have the constant term(intercept) in my fitted polynomial. what code would work for that case.
I was just simply trying
np.polyfit(x,y,3)
but it definitely returns 4 values.
Any leads are much appreciated.