partial working relinearization using sage polynomials