在GF(5 ^ 2)上创建多项式环时出错

问题描述 投票:1回答:1

我想在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。关于为什么以及如何解决这个问题的任何想法?

python sage
1个回答
1
投票

无法重现这个问题。在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
  • 你能在新的Sage会话中重现这个问题吗?
  • 你的操作系统是什么?
  • 你是怎么安装Sage的? (通过包管理器?从SageMath网站下载的二进制文件?从源代码构建?等等
  • 这是否发生在Sage REPL(在终端中)?在SageNB工作表中?在Jupyter笔记本?其他?
© www.soinside.com 2019 - 2024. All rights reserved.