1
我试图用Sage工作一些群理论。Sage没有在排列元素上找到cycle_type()属性
特别是我试图学习与对称组有关的基本命令。
我的输入是
G=SymmetricGroup(6)
sigma=G('(1,3,5)(4,6)')
然后我使用sigma.cycle_type()
并根据该文档,我应该得到作为输出与以递减顺序形成σ周期的长度的列表,在这种情况下我应该得到像[3,2]一样。相反,我得到一个“AttributeError”:
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
<ipython-input-25-94f73ca80516> in <module>()
----> 1 sigma.cycle_type()
/home/sage/sage-7.2/src/sage/structure/element.pyx in sage.structure.element.Element.__getattr__ (/home/sage/sage-7.2/src/build/cythonized/sage/structure/element.c:4649)()
411 dummy_error_message.name = name
412 raise dummy_attribute_error
--> 413 return getattr_from_other_class(self, P._abstract_element_class, name)
414
415 def __dir__(self):
/home/sage/sage-7.2/src/sage/structure/misc.pyx in sage.structure.misc.getattr_from_other_class (/home/sage/sage-7.2/src/build/cythonized/sage/structure/misc.c:1870)()
257 dummy_error_message.cls = type(self)
258 dummy_error_message.name = name
--> 259 raise dummy_attribute_error
260 if isinstance(attribute, methodwrapper):
261 dummy_error_message.cls = type(self)
AttributeError: 'sage.groups.perm_gps.permgroup_element.SymmetricGroupElement' object has no attribute 'cycle_type'
我在做什么错?
好吧,那一定是,我正在运行sage 7.2和SageMathCloud。会在7.3中检查它。谢谢你,对于沉闷的问题感到抱歉 –
没有什么枯燥的说Sage增加了功能! – kcrisman
请注意,[SageMathCloud已于2016年9月初更新为Sage 7.3](https://groups.google.com/d/topic/sage-cloud/xiffMzP6vZw/discussion)。 –