@@ -436,16 +436,6 @@ class DrinfeldModule(Parent, UniqueRepresentation):
436
436
...
437
437
ValueError: generator must have positive degree
438
438
439
- The constant coefficient must be nonzero::
440
-
441
- sage: Fq = GF(2)
442
- sage: K.<z> = Fq.extension(2)
443
- sage: A.<T> = Fq[]
444
- sage: DrinfeldModule(A, [K(0), K(1)])
445
- Traceback (most recent call last):
446
- ...
447
- ValueError: constant coefficient must be nonzero
448
-
449
439
The coefficients of the generator must lie in an
450
440
`\mathbb{F}_q[T]`-field, where `\mathbb{F}_q[T]` is the function
451
441
ring of the Drinfeld module::
@@ -584,13 +574,10 @@ def __classcall_private__(cls, function_ring, gen, name='t'):
584
574
elif isinstance (gen , (list , tuple )):
585
575
ore_polring = None
586
576
# Base ring without morphism structure:
587
- base_field_noext = Sequence (gen ).universe ()
577
+ base_field_noext = Sequence (gen ).universe (). fraction_field ()
588
578
else :
589
579
raise TypeError ('generator must be list of coefficients or Ore '
590
580
'polynomial' )
591
- # Constant coefficient must be nonzero:
592
- if gen [0 ].is_zero ():
593
- raise ValueError ('constant coefficient must be nonzero' )
594
581
# The coefficients are in a base field that has coercion from Fq:
595
582
if not (hasattr (base_field_noext , 'has_coerce_map_from' ) and
596
583
base_field_noext .has_coerce_map_from (function_ring .base_ring ())):
0 commit comments