Open dimpase opened 5 years ago
The problem is that Ring
does not know anything about polynomial rings, so the ring it returns here is just a bland generic ring, which knows nothing about concepts like "coefficients" and so on.
In the end, this is just one of many ways in which it shows that rings in GAP really are more an afterthought, so I don't find it surprising. Of course we could probably fix this particular instance by installing a suitable method for RingByGenerators
. But I am pretty sure similar issues will appear in other places.
Maybe CoefficientsRing
should accept a polynomial (Laurent or not) as input? One way or another, there ought to be a sane way to handle this for libgap
- that's where the question came from.
Note that CoefficientsRing(DefaultRing(x^2))
works just fine here.
Observed behaviour
Expected behaviour
The last command should return
GF(17)
, or its subring.As well,
Ring(x^2)=r;
should complete, or at least print a warning...Copy and paste GAP banner (to tell us about your setup)