Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Maybe something like that:

sage: R.<x>=SR['X']
sage: ex = sqrt(2) + exp(1)*x
sage: realring = RR['x']
sage: ratring = QQ['x']
sage: ratrin(realring(ex))
268876667/98914198*x + 131836323/93222358

Maybe something like that:

sage: R.<x>=SR['X']
R.<x> = SR['X']
sage: ex = sqrt(2) + exp(1)*x
sage: realring = RR['x']
sage: ratring = QQ['x']
sage: ratrin(realring(ex))
ratring(realring(ex))
268876667/98914198*x + 131836323/93222358