ASKSAGE: Sage Q&A Forum - RSS feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Sun, 20 Feb 2022 17:53:24 +0100Factoring an integer inside a ring of integers different from $\mathbb{Z}$https://ask.sagemath.org/question/61241/factoring-an-integer-inside-a-ring-of-integers-different-from-mathbbz/ I am trying to find divisors of an element in the ring of integers of a Cyclotomic Field. My code is
K=CyclotomicField(23)
L=K.ring_of_integers()
L.factor(2)
It gives an error:
'AbsoluteOrder_with_category' object has no attribute 'factor'
I guess the problem is L is defined as an "order" here instead of a ring. But I need that to be a ring. How can I fix this problem?nomaddd4Sun, 20 Feb 2022 17:53:24 +0100https://ask.sagemath.org/question/61241/