# How to construct a polynomial from string?

Hi,

I can run the following (putting in a .sage file) successfully.

*R.<x> = QQ[]*

*f = x^3 - x^2 + x -1*

*p = x - 2*

*print f.quo_rem(p)*

But how about I have a string 'x^3 - x^2 + x -1', how can I construct f.

f = SR('x^3 - x^2 + x -1') is not working as there is no member function quo_rem for Expression.

Thanks.