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
2 | No.2 Revision |
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