Numpy Array With Zeros And Multiplicity Of Polynomial Functions