1 | initial version |
In your workflow, can you use the right s
(as an element of FF, not SR) from the beginning ?
sage: a,b = var('a b')
sage: FF.<s> = FunctionField(SR)
sage: expr1 = (a^2*s + 2)/(s^3 + s + 3) + s
sage: expr1
(s^4 + s^2 + (a^2 + 3)*s + 2)/(s^3 + s + 3)
sage: expr1.numerator()
s^4 + s^2 + (a^2 + 3)*s + 2
sage: expr1.denominator()
s^3 + s + 3
Or is the fact that s
as a symbolic variable in expr1
can not be changed in the beginning ?
2 | No.2 Revision |
In your workflow, can you use the right s
(as an element of FF, not SR) from the beginning ?
sage: a,b = var('a b')
sage: FF.<s> = FunctionField(SR)
sage: expr1 = (a^2*s + 2)/(s^3 + s + 3) + s
sage: expr1
(s^4 + s^2 + (a^2 + 3)*s + 2)/(s^3 + s + 3)
sage: expr1.numerator()
s^4 + s^2 + (a^2 + 3)*s + 2
sage: expr1.denominator()
s^3 + s + 3
Or is the fact that s
as a symbolic variable in expr1
can not be changed in the beginning absolute ?