Ask Your Question

Revision history [back]

In this case, you can try with

sage: K.<x> = FunctionField(SR)

or

K = FractionField(PolynomialRing(SR, 'x'))

In this case, you can try with

sage: K.<x> = FunctionField(SR)

or

K = FractionField(PolynomialRing(SR, 'x'))

I am not sure how big are your rational functions, but if i do:

sage: f = sum(K.random_element() for i in range(100))
sage: f.numerator() 
...
sage: f.denominator()
....

and this is almost instantaneous.