|
3 | 3 | Drinfeld modules over rings of characteristic zero |
4 | 4 |
|
5 | 5 | This module provides the classes |
6 | | -:class:`sage.rings.function_fields.drinfeld_module.charzero_drinfeld_module.DrinfeldModule_charzero`, |
| 6 | +:class:`sage.rings.function_fields.drinfeld_module.charzero_drinfeld_module.DrinfeldModule_charzero` and |
7 | 7 | :class:`sage.rings.function_fields.drinfeld_module.charzero_drinfeld_module.DrinfeldModule_rational`, |
8 | | -which inherits |
| 8 | +which both inherit |
9 | 9 | :class:`sage.rings.function_fields.drinfeld_module.drinfeld_module.DrinfeldModule`. |
10 | 10 |
|
11 | 11 | AUTHORS: |
@@ -527,8 +527,9 @@ def class_polynomial(self): |
527 | 527 | When the coefficients of the Drinfeld module have small |
528 | 528 | enough degrees, the class module is always trivial:: |
529 | 529 |
|
530 | | - sage: r = 4 |
531 | | - sage: phi = DrinfeldModule(A, [T] + [A.random_element(degree=q**i) for i in range(1, r+1)]) |
| 530 | + sage: gs = [T] + [A.random_element(degree = q^i) |
| 531 | + ....: for i in range(1, 5)] |
| 532 | + sage: phi = DrinfeldModule(A, gs) |
532 | 533 | sage: phi.class_polynomial() |
533 | 534 | 1 |
534 | 535 |
|
@@ -606,8 +607,9 @@ def taelman_exponential_unit(self): |
606 | 607 | The same occurs more generally when the coefficients of the |
607 | 608 | Drinfeld module have small enough degrees:: |
608 | 609 |
|
609 | | - sage: r = 4 |
610 | | - sage: phi = DrinfeldModule(A, [T] + [A.random_element(degree=q**i) for i in range(1, r+1)]) |
| 610 | + sage: gs = [T] + [A.random_element(degree = q^i - 1) |
| 611 | + ....: for i in range(1, 5)] |
| 612 | + sage: phi = DrinfeldModule(A, gs) |
611 | 613 | sage: phi.taelman_exponential_unit() |
612 | 614 | 1 |
613 | 615 |
|
@@ -649,5 +651,6 @@ def taelman_exponential_unit(self): |
649 | 651 |
|
650 | 652 | unit = V.left_kernel().basis()[0] |
651 | 653 | expunit = sum(unit[i]*ps[i] for i in range(s+1)) |
652 | | - expunit /= expunit.numerator().leading_coefficient() |
| 654 | + if expunit: |
| 655 | + expunit /= expunit.numerator().leading_coefficient() |
653 | 656 | return expunit |
0 commit comments