1 1 |
|
2.50000000000000 2.50000000000000 |
|
|
|
|
Traceback (click to the left of this block for traceback) ... TypeError: unsupported operand parent(s) for '+': '<type 'str'>' and 'Integer Ring' Traceback (most recent call last): File "<stdin>", line 1, in <module> File "_sage_input_30.py", line 10, in <module> exec compile(u'open("___code___.py","w").write("# -*- coding: utf-8 -*-\\n" + _support_.preparse_worksheet_cell(base64.b64decode("IzcpCmluY3JlbWVudEJ5T25lKCcxMjMnKQonam9lJysx"),globals())+"\\n"); execfile(os.path.abspath("___code___.py")) File "", line 1, in <module> File "/tmp/tmppeZbJY/___code___.py", line 3, in <module> incrementByOne('123') File "/tmp/tmpqiXvtB/___code___.py", line 4, in incrementByOne return n+_sage_const_1 File "element.pyx", line 1302, in sage.structure.element.RingElement.__add__ (sage/structure/element.c:11504) File "coerce.pyx", line 766, in sage.structure.coerce.CoercionModel_cache_maps.bin_op (sage/structure/coerce.c:7337) TypeError: unsupported operand parent(s) for '+': '<type 'str'>' and 'Integer Ring' |
|
's' 's' |
'r' 'r' |
|
|
|
15 15 |
4 4 |
|