Convert symbolic expressions like sqrt(2) or exp(1) to rational numbers [closed]
I have coefficents of a rational polynomial f(x) in terms of symbolic expressions like sqrt(2)
and exp(1)
.
How can I convert these coefficients to rational number approximations of them, so that I can work in a structure like a polynomial ring?