def poly(self, return_coeffs=False):
p = self.bpoints()<EOL>coeffs = (-p[<NUM_LIT:0>] + <NUM_LIT:3>*(p[<NUM_LIT:1>] - p[<NUM_LIT:2>]) + p[<NUM_LIT:3>],<EOL><NUM_LIT:3>*(p[<NUM_LIT:0>] - <NUM_LIT:2>*p[<NUM_LIT:1>] + p[<NUM_LIT:2>]),<EOL><NUM_LIT:3>*(-p[<NUM_LIT:0>] + p[<NUM_LIT:1>]),<EOL>p[<NUM_LIT:0>])<EOL>if return_coeffs:<EOL><INDENT>return coeffs<EOL><DEDENT>else:<EOL><INDENT>return np.poly1d(coeffs)<EOL><DEDENT>
Returns a the cubic as a Polynomial object.