我想在GF(p^k)
上使用多项式环,其中p
是素数。
我试过了:
p = 3
q = 9
Fq.<alpha> = FiniteField(q)
Pol.<x> = PolynomialRing(Fq)
Pol
这引发了一个错误:
TypeError: Cannot convert non-integral float to integer
我正在使用SageMath 8.3。关于为什么以及如何解决这个问题的任何想法?
无法重现这个问题。在CoCalc上运行Sage 8.3:
$ sage-8.3
┌────────────────────────────────────────────────────────────────────┐
│ SageMath version 8.3, Release Date: 2018-08-03 │
│ Create a "Sage Worksheet" file for the notebook interface. │
│ Enhanced for CoCalc. │
│ Type "help()" for help. │
└────────────────────────────────────────────────────────────────────┘
sage: p = 3
sage: q = 9
sage: Fq.<alpha> = FiniteField(q)
sage: Pol.<x> = PolynomialRing(Fq)
sage: Pol
Univariate Polynomial Ring in x over Finite Field in alpha of size 3^2