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