Skip to content

Commit 227e9f5

Browse files
author
Xavier Caruso
committed
remove the condition: nonzero constant coefficient
1 parent 931cc5e commit 227e9f5

File tree

1 file changed

+1
-14
lines changed

1 file changed

+1
-14
lines changed

src/sage/rings/function_field/drinfeld_modules/drinfeld_module.py

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -436,16 +436,6 @@ class DrinfeldModule(Parent, UniqueRepresentation):
436436
...
437437
ValueError: generator must have positive degree
438438
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-
449439
The coefficients of the generator must lie in an
450440
`\mathbb{F}_q[T]`-field, where `\mathbb{F}_q[T]` is the function
451441
ring of the Drinfeld module::
@@ -584,13 +574,10 @@ def __classcall_private__(cls, function_ring, gen, name='t'):
584574
elif isinstance(gen, (list, tuple)):
585575
ore_polring = None
586576
# Base ring without morphism structure:
587-
base_field_noext = Sequence(gen).universe()
577+
base_field_noext = Sequence(gen).universe().fraction_field()
588578
else:
589579
raise TypeError('generator must be list of coefficients or Ore '
590580
'polynomial')
591-
# Constant coefficient must be nonzero:
592-
if gen[0].is_zero():
593-
raise ValueError('constant coefficient must be nonzero')
594581
# The coefficients are in a base field that has coercion from Fq:
595582
if not (hasattr(base_field_noext, 'has_coerce_map_from') and
596583
base_field_noext.has_coerce_map_from(function_ring.base_ring())):

0 commit comments

Comments
 (0)