Use this option to change the default behavior of flattenRing, by setting the option to the desired coefficientRing of the output ring.
i1 : k = toField (QQ[x]/(x^2+x+1)); |
i2 : R = k[y]/(x-y+2); |
i3 : (S, f) = flattenRing(R); describe S
k[y]
o4 = -----------
- y + x + 2
|
i5 : (S2, f2) = flattenRing(R, CoefficientRing => QQ); describe S2
QQ[y, x]
o6 = -------------------------
2
(x + x + 1, - y + x + 2)
|
See flattenRing documentation for more examples and details.