| Download
All published worksheets from http://sagenb.org
Project: sagenb.org published worksheets
Views: 168822Image: ubuntu2004
I
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "_sage_input_9.py", line 10, in <module>
exec compile(u'open("___code___.py","w").write("# -*- coding: utf-8 -*-\\n" + _support_.preparse_worksheet_cell(base64.b64decode("ZmxvYXQoYW5zd2VyLnJlYWxfcGFydCgpKStmbG9hdChhbnN3ZXIuaW1hZ19wYXJ0KCkpKkk="),globals())+"\\n"); execfile(os.path.abspath("___code___.py"))' + '\n', '', 'single')
File "", line 1, in <module>
File "/tmp/tmpo1AkJe/___code___.py", line 2, in <module>
exec compile(u'float(answer.real_part())+float(answer.imag_part())*I' + '\n', '', 'single')
File "", line 1, in <module>
File "element.pyx", line 331, in sage.structure.element.Element.__getattr__ (sage/structure/element.c:2884)
File "parent.pyx", line 327, in sage.structure.parent.getattr_from_other_class (sage/structure/parent.c:3236)
AttributeError: 'sage.rings.number_field.number_field_element_quadratic.NumberFieldElement_quadratic' object has no attribute 'real_part'