I fully accept the following is probably user error due to having not 
picked an embedding of the field.

sage: GaussianIntegers = NumberField(x^2+1, 'I').ring_of_integers()
sage: A = GaussianIntegers([2,1])
sage: print A
I + 2
sage: print A.n()
<lots of junk>
RuntimeError: maximum recursion depth exceeded while calling a Python object

Still, this seems like not the most helpful error message; shouldn't it 
tell me to do (something like) this?

sage: GaussianIntegers = NumberField(x^2+1, 'I', 
embedding=CC.gen()).ring_of_integers()
sage: A = GaussianIntegers([2,1])
sage: print A.n()
2.00000000000000 + 1.00000000000000*I

- kcrisman

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.

Reply via email to