| Download
All published worksheets from http://sagenb.org
Project: sagenb.org published worksheets
Views: 168746Image: ubuntu2004
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "_sage_input_7.py", line 10, in <module>
exec compile(u'open("___code___.py","w").write("# -*- coding: utf-8 -*-\\n" + _support_.preparse_worksheet_cell(base64.b64decode("d2hpbGUgbW9uZXk8MjAwMDA6CiAgeWVhcnM9eWVhcnMrMQptb25leT1tb25leSoxLjAwNjk="),globals())+"\\n"); execfile(os.path.abspath("___code___.py"))' + '\n', '', 'single')
File "", line 1, in <module>
File "/tmp/tmps3MT5U/___code___.py", line 4, in <module>
years=years+_sage_const_1
NameError: name 'years' is not defined
[0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
1.00000000000000
1
4
[123, 'xyz', 9]
123
123
123
1
2
3
888
666
101
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "_sage_input_76.py", line 10, in <module>
exec compile(u'open("___code___.py","w").write("# -*- coding: utf-8 -*-\\n" + _support_.preparse_worksheet_cell(base64.b64decode("bG9hZCBteWFkZC5zYWdl"),globals())+"\\n"); execfile(os.path.abspath("___code___.py"))' + '\n', '', 'single')
File "", line 1, in <module>
File "/tmp/tmpvgeEJw/___code___.py", line 2, in <module>
exec compile(u'sage.misc.preparser.load(sage.misc.preparser.base64.b64decode("bXlhZGQuc2FnZQ=="),globals(),False)' + '\n', '', 'single')
File "", line 1, in <module>
File "/usr/local/sage2/local/lib/python2.6/site-packages/sage/misc/preparser.py", line 1503, in load
exec(preparse_file(open(filename).read()), globals)
IOError: [Errno 2] No such file or directory: 'myadd.sage'
101
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "_sage_input_78.py", line 10, in <module>
exec compile(u'open("___code___.py","w").write("# -*- coding: utf-8 -*-\\n" + _support_.preparse_worksheet_cell(base64.b64decode("YXR0YWNoIG15YWRkLnNhZ2U="),globals())+"\\n"); execfile(os.path.abspath("___code___.py"))' + '\n', '', 'single')
File "", line 1, in <module>
File "/tmp/tmpnjCzga/___code___.py", line 2, in <module>
exec compile(u'sage.misc.preparser.load(sage.misc.preparser.base64.b64decode("bXlhZGQuc2FnZQ=="),globals(),True)' + '\n', '', 'single')
File "", line 1, in <module>
File "/usr/local/sage2/local/lib/python2.6/site-packages/sage/misc/preparser.py", line 1503, in load
exec(preparse_file(open(filename).read()), globals)
IOError: [Errno 2] No such file or directory: 'myadd.sage'
101
101
random numbers is [19, 19, 75, 94, 66, 19, 63, 58, 88, 4]
sorted is [[1], [1], [1], [1], [1], [1], 19, 19, 19, 4]
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "_sage_input_92.py", line 10, in <module>
exec compile(u'open("___code___.py","w").write("# -*- coding: utf-8 -*-\\n" + _support_.preparse_worksheet_cell(base64.b64decode("YnViYmxlX3NvcnQucHk="),globals())+"\\n"); execfile(os.path.abspath("___code___.py"))' + '\n', '', 'single')
File "", line 1, in <module>
File "/tmp/tmpzHE3d0/___code___.py", line 2, in <module>
exec compile(u'bubble_sort.py' + '\n', '', 'single')
File "", line 1, in <module>
NameError: name 'bubble_sort' is not defined
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "_sage_input_93.py", line 10, in <module>
exec compile(u'open("___code___.py","w").write("# -*- coding: utf-8 -*-\\n" + _support_.preparse_worksheet_cell(base64.b64decode("cmFuZG9tIG51bWJlciBpcyBbOTQsMTUsOTAsODUsMjksMTksMTEsNzcsNTUsMTNd"),globals())+"\\n"); execfile(os.path.abspath("___code___.py"))' + '\n', '', 'single')
File "", line 1, in <module>
File "/tmp/tmpB8HcZg/___code___.py", line 3
random number is [_sage_const_94 ,_sage_const_15 ,_sage_const_90 ,_sage_const_85 ,_sage_const_29 ,_sage_const_19 ,_sage_const_11 ,_sage_const_77 ,_sage_const_55 ,_sage_const_13 ]
^
SyntaxError: invalid syntax
False
e
ind
+Infinity
cos(x)
-sin(x)
2*x + e^y
(x, a)
-2*e^(sin(-x^2 + a))*cos(-x^2 + a) - e^(sin(-x^2 + a))/x^2
1/120*x^5 - 1/6*x^3 + x
[ 4 -1 4]
[ 6 6 -4]
[ 2 3 -2]
[-2 -4 8]
[3 2]
[1 1]
[1 2]
[3 1 1]
[2 1 2]
[ 4 11]
[ 6 1]
[11 5 9]
[ 4 3 8]
[-3 -3 -9]
[0 1 2]
[3 4 5]
[6 7 8]
[1]
[2]
[3]
[-2/3]
[ 1]
[ 0]
[1]
[2]
[3]
[2 1 2]
[3 4 5]
[6 7 8]
[1 2 3]
[ 0 5/3 -2/3]
[1 2 3]
[64]
[80]
[64]
[80]
[ 8 12 6 1 0]
[ 0 8 12 6 1]
[ 0 0 8 12 6]
[ 0 0 0 8 12]
[ 0 0 0 0 8]
5
[ 1/2 -1/4 1/8 -1/16 1/32]
[ 0 1/2 -1/4 1/8 -1/16]
[ 0 0 1/2 -1/4 1/8]
[ 0 0 0 1/2 -1/4]
[ 0 0 0 0 1/2]
[1 0 0 0 0]
[0 1 0 0 0]
[0 0 1 0 0]
[0 0 0 1 0]
[0 0 0 0 1]
3
(a, b, c, d)
[ a^2 (a + 1)^2 (a + 2)^2 (a + 3)^2]
[ b^2 (b + 1)^2 (b + 2)^2 (b + 3)^2]
[ c^2 (c + 1)^2 (c + 2)^2 (c + 3)^2]
[ d^2 (d + 1)^2 (d + 2)^2 (d + 3)^2]
0
[1.00000000000000 2.00000000000000]
[3.00000000000000 4.00000000000000]