This code is still pretty slow, but it seems to work! Test against Cremona's tables to get a sense if it's working.
|
|
Traceback (click to the left of this block for traceback) ... SyntaxError: EOL while scanning string literal Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "_sage_input_3.py", line 10, in <module>
exec compile(u'open("___code___.py","w").write("# -*- coding: utf-8 -*-\\n" + _support_.preparse_worksheet_cell(base64.b64decode("cyA9IHNlcnZlcihkaXJlY3Rvcnk9Jy90bXAvYScpCmRiLm5vc3FsaXRlLkNsaWVudCgnLwpjID0gY2xpZW50KHMucG9ydCkKZGF0YWJhc2UgPSBjLmRiCmNvbGxlY3Rpb24gPSBkYXRhYmFzZS5mb287IGNvbGxlY3Rpb24="),globals())+"\\n"); execfile(os.path.abspath("___code___.py"))
File "", line 1, in <module>
File "/tmp/tmpCiYad7/___code___.py", line 3
db.nosqlite.Client('/
^
SyntaxError: EOL while scanning string literal
|
Traceback (click to the left of this block for traceback) ... NameError: name 'collection' is not defined Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "_sage_input_4.py", line 10, in <module>
exec compile(u'open("___code___.py","w").write("# -*- coding: utf-8 -*-\\n" + _support_.preparse_worksheet_cell(base64.b64decode("Y29sbGVjdGlvbi5pbnNlcnQoeydhJzoxMjMsICdiJzonaGVsbG8nLCAnTWF0cml4JzpNYXRyaXgoMyl9KQpsaXN0KGNvbGxlY3Rpb24uZmluZCgnYTwzJykp"),globals())+"\\n"); execfile(os.path.abspath("___code___.py"))
File "", line 1, in <module>
File "/tmp/tmpETBmF_/___code___.py", line 3, in <module>
collection.insert({'a':_sage_const_123 , 'b':'hello', 'Matrix':Matrix(_sage_const_3 )})
NameError: name 'collection' is not defined
|
{'1': 3}
{'1': 3}
|
|
|
|
|
Traceback (click to the left of this block for traceback) ... ValueError: denominator ideal of 0 is not defined. Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "_sage_input_8.py", line 10, in <module>
exec compile(u'open("___code___.py","w").write("# -*- coding: utf-8 -*-\\n" + _support_.preparse_worksheet_cell(base64.b64decode("SygwKS5kZW5vbWluYXRvcl9pZGVhbCgp"),globals())+"\\n"); execfile(os.path.abspath("___code___.py"))
File "", line 1, in <module>
File "/tmp/tmpq6CnTm/___code___.py", line 3, in <module>
exec compile(u'K(_sage_const_0 ).denominator_ideal()
File "", line 1, in <module>
File "number_field_element.pyx", line 3005, in sage.rings.number_field.number_field_element.NumberFieldElement.denominator_ideal (sage/rings/number_field/number_field_element.cpp:19281)
ValueError: denominator ideal of 0 is not defined.
|
|
|
|
|
|
|
|
|
|
|
|
|
Traceback (click to the left of this block for traceback) ... SyntaxError: invalid syntax Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "_sage_input_10.py", line 10, in <module>
exec compile(u'open("___code___.py","w").write("# -*- coding: utf-8 -*-\\n" + _support_.preparse_worksheet_cell(base64.b64decode("d2FsbHRpbWUo"),globals())+"\\n"); execfile(os.path.abspath("___code___.py"))
File "", line 1, in <module>
File "/tmp/tmpjsw9ix/___code___.py", line 3
^
SyntaxError: invalid syntax
|
|
|
|
|
|
|
|
|
curve 0 : (1, a + 1, a, a, 0) 31 curve 1 : (1, a + 1, a, a - 5, 3*a - 5) 31 curve 2 : (1, a + 1, a, 41*a - 70, 170*a - 276) 31 curve 3 : (1, a + 1, a, -39*a - 20, 108*a + 46) 31 curve 4 : (1, a + 1, a, 31*a - 75, 141*a - 303) 31 curve 5 : (1, a + 1, a, 691*a - 1105, 10487*a - 16933) 31 curve 0 : (1, a + 1, a, a, 0) 31 curve 1 : (1, a + 1, a, a - 5, 3*a - 5) 31 curve 2 : (1, a + 1, a, 41*a - 70, 170*a - 276) 31 curve 3 : (1, a + 1, a, -39*a - 20, 108*a + 46) 31 curve 4 : (1, a + 1, a, 31*a - 75, 141*a - 303) 31 curve 5 : (1, a + 1, a, 691*a - 1105, 10487*a - 16933) 31 |
curve 0 : (0, -1, 1, 0, 0) 121 curve 1 : (0, -1, 1, -10, -20) 121 curve 2 : (0, -1, 1, -7820, -263580) 121 curve 3 : (0, a + 1, 1, -543074*a - 362966, -261178146*a - 163231804) 652098911521882337515422475 curve 4 : (0, a + 1, 1, -39824*a - 27466, -3448146*a - 2150554) 83026402989233316959225 curve 5 : (0, a + 1, 1, -562324*a - 373966, -260524746*a - 162832504) 652098911521882337515422475 curve 6 : (0, a + 1, 1, -59074*a - 38466, -2794746*a - 1751254) 83026402989233316959225 curve 7 : (0, -1, 1, -110*a + 320, 47030*a - 76094) 174643179603485750245 curve 8 : (0, -1, 1, 390*a + 300, 4322*a + 908) 107026473484575847961 curve 9 : (0, -1, 1, -390*a + 690, -4322*a + 5230) 107026473484575847961 curve 10 : (0, -1, 1, 110*a + 210, -47030*a - 29064) 174643179603485750245 curve 0 : (0, -1, 1, 0, 0) 121 curve 1 : (0, -1, 1, -10, -20) 121 curve 2 : (0, -1, 1, -7820, -263580) 121 curve 3 : (0, a + 1, 1, -543074*a - 362966, -261178146*a - 163231804) 652098911521882337515422475 curve 4 : (0, a + 1, 1, -39824*a - 27466, -3448146*a - 2150554) 83026402989233316959225 curve 5 : (0, a + 1, 1, -562324*a - 373966, -260524746*a - 162832504) 652098911521882337515422475 curve 6 : (0, a + 1, 1, -59074*a - 38466, -2794746*a - 1751254) 83026402989233316959225 curve 7 : (0, -1, 1, -110*a + 320, 47030*a - 76094) 174643179603485750245 curve 8 : (0, -1, 1, 390*a + 300, 4322*a + 908) 107026473484575847961 curve 9 : (0, -1, 1, -390*a + 690, -4322*a + 5230) 107026473484575847961 curve 10 : (0, -1, 1, 110*a + 210, -47030*a - 29064) 174643179603485750245 |
|
|
curve 0 : (1, -a - 1, a, 0, 0) 31 curve 1 : (1, -a - 1, a, -5, -3*a + 3) 31 curve 2 : (1, -a - 1, a, -40*a - 30, -130*a - 76) 31 curve 3 : (1, -a - 1, a, 40*a - 60, -148*a + 214) 31 curve 4 : (1, -a - 1, a, -690*a - 415, -9797*a - 6031) 31 curve 5 : (1, -a - 1, a, -30*a - 45, -111*a - 117) 31 curve 0 : (1, -a - 1, a, 0, 0) 31 curve 1 : (1, -a - 1, a, -5, -3*a + 3) 31 curve 2 : (1, -a - 1, a, -40*a - 30, -130*a - 76) 31 curve 3 : (1, -a - 1, a, 40*a - 60, -148*a + 214) 31 curve 4 : (1, -a - 1, a, -690*a - 415, -9797*a - 6031) 31 curve 5 : (1, -a - 1, a, -30*a - 45, -111*a - 117) 31 |
curve 0 : (1, a + 1, a, a, 0) 31 curve 1 : (1, a + 1, a, a - 5, 3*a - 5) 31 curve 2 : (1, a + 1, a, 41*a - 70, 170*a - 276) 31 curve 3 : (1, a + 1, a, -39*a - 20, 108*a + 46) 31 curve 4 : (1, a + 1, a, 31*a - 75, 141*a - 303) 31 curve 5 : (1, a + 1, a, 691*a - 1105, 10487*a - 16933) 31 curve 0 : (1, a + 1, a, a, 0) 31 curve 1 : (1, a + 1, a, a - 5, 3*a - 5) 31 curve 2 : (1, a + 1, a, 41*a - 70, 170*a - 276) 31 curve 3 : (1, a + 1, a, -39*a - 20, 108*a + 46) 31 curve 4 : (1, a + 1, a, 31*a - 75, 141*a - 303) 31 curve 5 : (1, a + 1, a, 691*a - 1105, 10487*a - 16933) 31 |
curve 0 : (a, -a + 1, 1, -1, 0) curve 1 : (a, -a + 1, 1, -5*a + 9, -8*a + 6) curve 2 : (a, -a + 1, 1, -45*a - 151, -264*a - 858) curve 3 : (a, -a + 1, 1, -3365*a - 12621, -229016*a - 564210) curve 0 : (a, -a + 1, 1, -1, 0) curve 1 : (a, -a + 1, 1, -5*a + 9, -8*a + 6) curve 2 : (a, -a + 1, 1, -45*a - 151, -264*a - 858) curve 3 : (a, -a + 1, 1, -3365*a - 12621, -229016*a - 564210) |
curve 0 : (a, -a + 1, 1, -1, 0) curve 1 : (a, -a + 1, 1, -5*a + 9, -8*a + 6) curve 2 : (a, -a + 1, 1, -45*a - 151, -264*a - 858) curve 3 : (a, -a + 1, 1, -3365*a - 12621, -229016*a - 564210) curve 0 : (a, -a + 1, 1, -1, 0) curve 1 : (a, -a + 1, 1, -5*a + 9, -8*a + 6) curve 2 : (a, -a + 1, 1, -45*a - 151, -264*a - 858) curve 3 : (a, -a + 1, 1, -3365*a - 12621, -229016*a - 564210) |
curve 0 : (0, a, 1, 1, 0) curve 1 : (0, a, 1, 30*a - 59, 102*a - 186) curve 0 : (0, a, 1, 1, 0) curve 1 : (0, a, 1, 30*a - 59, 102*a - 186) |
|
|
|
|
curve 0 : (1, -1, 1, -5, -7) curve 1 : (1, -1, 1, -95, -331) curve 2 : (1, -1, 1, 40, 155) curve 3 : (1, -1, 1, -320, 1883) curve 4 : (1, -1, 1, -1535, 23591) curve 5 : (1, -1, 1, -24575, 1488935) curve 0 : (1, -1, 1, -5, -7) curve 1 : (1, -1, 1, -95, -331) curve 2 : (1, -1, 1, 40, 155) curve 3 : (1, -1, 1, -320, 1883) curve 4 : (1, -1, 1, -1535, 23591) curve 5 : (1, -1, 1, -24575, 1488935) |
curve 0 : (a + 1, -a - 1, 1, -2*a - 2, -a - 1) curve 1 : (a + 1, -a - 1, 1, -41617*a - 41617, 5859391*a + 4394543) curve 0 : (a + 1, -a - 1, 1, -2*a - 2, -a - 1) curve 1 : (a + 1, -a - 1, 1, -41617*a - 41617, 5859391*a + 4394543) |
curve 0 : (0, 0, 0, 6, 7) curve 1 : (0, 0, 0, -39, 70) curve 2 : (0, 0, 0, -219, -1190) curve 3 : (0, 0, 0, -579, 5362) curve 4 : (0, 0, 0, -3459, -78302) curve 5 : (0, 0, 0, 141, -4718) curve 0 : (0, 0, 0, 6, 7) curve 1 : (0, 0, 0, -39, 70) curve 2 : (0, 0, 0, -219, -1190) curve 3 : (0, 0, 0, -579, 5362) curve 4 : (0, 0, 0, -3459, -78302) curve 5 : (0, 0, 0, 141, -4718) |
curve 0 : (1, 1, 1, 37, 281) curve 1 : (1, 1, 1, -463, 3281) curve 2 : (1, 0, 1, -14, -64) curve 3 : (1, 1, 1, -1713, -24219) curve 4 : (1, 1, 1, -7213, 232781) curve 5 : (1, 0, 1, -334, -2368) curve 6 : (1, 0, 1, -5334, -150368) curve 7 : (1, 0, 1, -454, -544) curve 0 : (1, 1, 1, 37, 281) curve 1 : (1, 1, 1, -463, 3281) curve 2 : (1, 0, 1, -14, -64) curve 3 : (1, 1, 1, -1713, -24219) curve 4 : (1, 1, 1, -7213, 232781) curve 5 : (1, 0, 1, -334, -2368) curve 6 : (1, 0, 1, -5334, -150368) curve 7 : (1, 0, 1, -454, -544) |
|
|
|
|
|
|
True True |
|
|
|
|
|
|
{'1': 3, '4': 3}
{'1': 3, '4': 3}
|
['adsfsda', 'adfasdfaewf', 'adfawefawef', 'efwfaefef', 'rfwearewfwef', 'rfewfaergaer'] ['adsfsda', 'adfasdfaewf', 'adfawefawef', 'efwfaefef', 'rfwearewfwef', 'rfewfaergaer'] |
'adsfsda' 'adsfsda' |
Traceback (click to the left of this block for traceback) ... AttributeError: 'NumberFieldFractionalIdeal' object has no attribute 'denominator_ideal' Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "_sage_input_5.py", line 10, in <module>
exec compile(u'open("___code___.py","w").write("# -*- coding: utf-8 -*-\\n" + _support_.preparse_worksheet_cell(base64.b64decode("Sy5pZGVhbCg1KS5kZW5vbWluYXRvcl9pZGVhbCgp"),globals())+"\\n"); execfile(os.path.abspath("___code___.py"))
File "", line 1, in <module>
File "/tmp/tmp79vjQP/___code___.py", line 3, in <module>
exec compile(u'K.ideal(_sage_const_5 ).denominator_ideal()
File "", line 1, in <module>
File "element.pyx", line 328, in sage.structure.element.Element.__getattr__ (sage/structure/element.c:2790)
File "parent.pyx", line 277, in sage.structure.parent.getattr_from_other_class (sage/structure/parent.c:2930)
File "parent.pyx", line 177, in sage.structure.parent.raise_attribute_error (sage/structure/parent.c:2726)
AttributeError: 'NumberFieldFractionalIdeal' object has no attribute 'denominator_ideal'
|
|
|
|
|
[] [] |
|
|