【发布时间】:2019-12-17 01:54:50
【问题描述】:
我想在 Sage 中计算一个置换群的自同构群。例如,在 GAP 中,我可以计算以下内容:
grp := Group([ (1,2,3,4,5), (1,2,4,3) ]);
aut := AutomorphismGroup(grp);
Group( [ GroupHomomorphismByImages( Group( [ (1,2,3,4,5), (1,2,4,3) ] ), Group( [ (1,2,3,4,5), (1,2,4,3) ] ), Pcgs(
[ (2,3,5,4), (2,5)(3,4), (1,2,3,4,5) ]), [ (2,3,5,4), (2,5)(3,4), (1,3,5,2,4) ] ),
GroupHomomorphismByImages( Group( [ (1,2,3,4,5), (1,2,4,3) ] ), Group( [ (1,2,3,4,5), (1,2,4,3) ] ), Pcgs(
[ (2,3,5,4), (2,5)(3,4), (1,2,3,4,5) ]), [ (2,3,5,4), (2,5)(3,4), (1,5,4,3,2) ] ),
GroupHomomorphismByImages( Group( [ (1,2,3,4,5), (1,2,4,3) ] ), Group( [ (1,2,3,4,5), (1,2,4,3) ] ), Pcgs(
[ (2,3,5,4), (2,5)(3,4), (1,2,3,4,5) ]), [ (1,2,4,3), (1,4)(2,3), (1,2,3,4,5) ] ) ] )
经过一番搜索,似乎没有用 Sage 编写的函数来执行此操作;然而,我在这个网站上偶然发现了这个问题(和答案):SAGE: Automorphism group of finite abelian group?
建议执行以下操作:
grp = PermutationGroup([ '(1,2,3,4,5)', '(1,2,4,3)' ])
H = gap(grp).AutomorphismGroup()
PermutationGroup(gap_group = H.AsPermGroup())
Permutation Group with generators [(2,3,5,4), (2,5)(3,4), (1,5,4,3,2)]
我无法让这段代码工作。我在 Windows 10 上运行 Sage 8.9。当我将上述代码放入 Sage Cell Server (https://sagecell.sagemath.org/) 时,它工作得很好。当我在我安装的副本中运行它时,我得到以下错误输出:
RuntimeError: Gap produced error output
Error, Variable: 'AsPermGroup' must have a value
executing __SAGE_LAST__:="__SAGE_LAST__";;AsPermGroup(\$sage3);;
我真的需要让它工作。这是 Sage 8.9 via Windows 的问题吗?
【问题讨论】:
-
不幸的是,使用 Windows 的 Sage 专家并不多,但一些对此有所了解的人往往会潜伏在 ask.sagemath.org 上,所以我建议您尝试一下。奇怪的是它可以在 Sage 单元服务器上运行 - 你可以为你的“共享”永久链接发布一个链接吗?
-
我发布了一个关于我如何找到在 Windows 上获得相同结果的方法以及为什么我认为 Sage 单元服务器可以使用上述代码的答案。
标签: sage