| Download
All published worksheets from http://sagenb.org
Project: sagenb.org published worksheets
Views: 168738Image: ubuntu2004
\newcommand{\Bold}[1]{\mathbf{#1}}\sqrt{x}
\newcommand{\Bold}[1]{\mathbf{#1}}x^{7}
\newcommand{\Bold}[1]{\mathbf{#1}}10027860709531471276608129612323653414238264145365258534666014247
\newcommand{\Bold}[1]{\mathbf{#1}}{(x + 1)}^{7}
\newcommand{\Bold}[1]{\mathbf{#1}}x^{7} + 7 \, x^{6} + 21 \, x^{5} + 35 \, x^{4} + 35 \, x^{3} + 21 \, x^{2} + 7 \, x + 1
\newcommand{\Bold}[1]{\mathbf{#1}}-{(x - 1)}^{7} + {(x + 1)}^{7}
\newcommand{\Bold}[1]{\mathbf{#1}}14 \, x^{6} + 70 \, x^{4} + 42 \, x^{2} + 2
Graphics object consisting of 3 graphics primitives
Graphics object consisting of 2 graphics primitives
Traceback (most recent call last): show(graphics_array([g1, g2], 2, 1), xmin=0)
File "expression.pyx", line 2854, in sage.symbolic.expression.Expression.__call__ (sage/symbolic/expression.cpp:14148)
File "/home/sage/sage_install/sage/local/lib/python2.6/site-packages/sage/symbolic/callable.py", line 448, in _call_element_
return SR(_the_element.substitute(**d))
File "expression.pyx", line 2702, in sage.symbolic.expression.Expression.substitute (sage/symbolic/expression.cpp:13504)
File "expression.pyx", line 1496, in sage.symbolic.expression.Expression.coerce_in (sage/symbolic/expression.cpp:9538)
File "parent_old.pyx", line 331, in sage.structure.parent_old.Parent._coerce_ (sage/structure/parent_old.c:4632)
File "parent.pyx", line 429, in sage.structure.parent.Parent.coerce (sage/structure/parent.c:4765)
TypeError: no canonical coercion from <type 'str'> to Callable function ring with arguments (x,)
Traceback (most recent call last): P # show the result
File "", line 1, in <module>
File "/tmp/tmpXGLocD/___code___.py", line 4, in <module>
P = line([(_sage_const_2 ,_sage_const_0 ),(_sage_const_2 ,f(_sage_const_2 ))], rgbcolor=(_sage_const_0 ,_sage_const_0 ,_sage_const_0 ))
TypeError: 'sage.rings.real_mpfr.RealNumber' object is not callable
/usr/local/sage/local/lib/python2.6/site-packages/sage/all_notebook.py:8: DeprecationWarning: variable ranges to parametric_plot must be given as tuples, like (2,4) or (t,2,3)
/usr/local/sage/local/lib/python2.6/site-packages/sage/all_notebook.py:1: DeprecationWarning: variable ranges to parametric_plot must be given as tuples, like (2,4) or (t,2,3)
"""nodoctest"""
\newcommand{\Bold}[1]{\mathbf{#1}}\hbox{Graphics Array of size 2 x 2}
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "_sage_input_14.py", line 9, in <module>
exec compile(ur'open("___code___.py","w").write("# -*- coding: utf-8 -*-\n" + _support_.preparse_worksheet_cell(base64.b64decode("Z2Euc2hvdygp"),globals())+"\n"); execfile(os.path.abspath("___code___.py"))' + '\n', '', 'single')
File "", line 1, in <module>
File "/tmp/tmpsNLhbp/___code___.py", line 2, in <module>
exec compile(ur'ga.show()' + '\n', '', 'single')
File "", line 1, in <module>
NameError: name 'ga' is not defined
\newcommand{\Bold}[1]{\mathbf{#1}}x \ {\mapsto}\ \sin\left(2 \, x\right)
\newcommand{\Bold}[1]{\mathbf{#1}}\hbox{Animation with 21 frames}
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "_sage_input_20.py", line 9, in <module>
exec compile(ur'open("___code___.py","w").write("# -*- coding: utf-8 -*-\n" + _support_.preparse_worksheet_cell(base64.b64decode("c3RlcCA9IDAuMQpMID0gR3JhcGhpY3MoKQp2ID0gW10KZm9yIGkgaW4gc3JhbmdlKDAsMSxzdGVwKToKICAgICAgIEwgKz0gbGluZShbKGksaV4yKSwoaStzdGVwLChpK3N0ZXApXjIpXSwgcmdiY29sb3I9KDEsMCwwKSw="),globals())+"\n"); execfile(os.path.abspath("___code___.py"))' + '\n', '', 'single')
File "", line 1, in <module>
File "/tmp/tmpoErQBt/___code___.py", line 8
^
SyntaxError: invalid syntax
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "_sage_input_21.py", line 9, in <module>
exec compile(ur'open("___code___.py","w").write("# -*- coding: utf-8 -*-\n" + _support_.preparse_worksheet_cell(base64.b64decode("YSA9IGFuaW1hdGUodiwgeG1pbj0wLCB5bWluPTApCmEuc2hvdygpICMgb3B0aW9uYWwgLS0gcmVxdWlyZXMgY29udmVydCBjb21tYW5kCnNob3coTCk="),globals())+"\n"); execfile(os.path.abspath("___code___.py"))' + '\n', '', 'single')
File "", line 1, in <module>
File "/tmp/tmp2H_qBK/___code___.py", line 3, in <module>
a = animate(v, xmin=_sage_const_0 , ymin=_sage_const_0 )
NameError: name 'v' is not defined
Animation saved to file /tmp/tmpukLdnq/my_animation.gif.
/usr/local/sage/local/bin/sage-native-execute: 8: gnuplot: not found
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "_sage_input_27.py", line 9, in <module>
exec compile(ur'open("___code___.py","w").write("# -*- coding: utf-8 -*-\n" + _support_.preparse_worksheet_cell(base64.b64decode("bWF4aW1hLnBsb3QzZCAoIjJeKC11XjIgKyB2XjIpIiwgIlt1LCAtMywgM10iLCAiW3YsIC0yLCAyXSIsXAogICAnW3Bsb3RfZm9ybWF0LCBvcGVubWF0aF0nKSAjIG5vdCB0ZXN0ZWQKbWF4aW1hLnBsb3QzZCgiYXRhbigteF4yICsgeV4zLzQpIiwgIlt4LCAtNCwgNF0iLCAiW3ksIC00LCA0XSIsXAogICAiW2dyaWQsIDUwLCA1MF0iLCdbcGxvdF9mb3JtYXQsIG9wZW5tYXRoXScpICMgbm90IHRlc3RlZA=="),globals())+"\n"); execfile(os.path.abspath("___code___.py"))' + '\n', '', 'single')
File "", line 1, in <module>
File "/tmp/tmprifArc/___code___.py", line 3, in <module>
'[plot_format, openmath]') # not tested
File "/usr/local/sage/local/lib/python2.6/site-packages/sage/interfaces/maxima.py", line 1381, in plot3d
self('plot3d(%s)'%(','.join([str(x) for x in args])))
File "/usr/local/sage/local/lib/python2.6/site-packages/sage/interfaces/expect.py", line 1032, in __call__
return cls(self, x, name=name)
File "/usr/local/sage/local/lib/python2.6/site-packages/sage/interfaces/expect.py", line 1451, in __init__
raise TypeError, x
TypeError: Error executing code in Maxima
CODE:
sage0 : plot3d(2^(-u^2 + v^2),[u, -3, 3],[v, -2, 2],[plot_format, openmath])$
Maxima ERROR:
Maxima encountered a Lisp error:
Filesystem error with pathname "/sagenb/sagenbws/maxout.xmaxima".
Either
1) the file does not exist, or
2) we are not allow to access the file, or
3) the pathname points to a broken symbolic link.
Automatically continuing.
To enable the Lisp debugger set *debugger-hook* to nil.
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "_sage_input_28.py", line 9, in <module>
exec compile(ur'open("___code___.py","w").write("# -*- coding: utf-8 -*-\n" + _support_.preparse_worksheet_cell(base64.b64decode("bWF4aW1hLnBsb3QzZCgiW2Nvcyh4KSooMyArIHkqY29zKHgvMikpLCBzaW4oeCkqKDMgKyB5KmNvcyh4LzIpKSxcCiAgIHkqc2luKHgvMildIiwgIlt4LCAtNCwgNF0iLCAiW3ksIC00LCA0XSIsXAogICAnW3Bsb3RfZm9ybWF0LCBvcGVubWF0aF0nKSAjIG5vdCB0ZXN0ZWQ="),globals())+"\n"); execfile(os.path.abspath("___code___.py"))' + '\n', '', 'single')
File "", line 1, in <module>
File "/tmp/tmpagQzSj/___code___.py", line 2, in <module>
exec compile(ur'maxima.plot3d("[cos(x)*(3 + y*cos(x/2)), sin(x)*(3 + y*cos(x/2)),\\u000a y*sin(x/2)]", "[x, -4, 4]", "[y, -4, 4]",\\u000a \u0027[plot_format, openmath]\u0027) # not tested' + '\n', '', 'single')
File "", line 1
maxima.plot3d("[cos(x)*(3 + y*cos(x/2)), sin(x)*(3 + y*cos(x/2)),\\u000a y*sin(x/2)]", "[x, -4, 4]", "[y, -4, 4]",\\u000a '[plot_format, openmath]') # not tested
^
SyntaxError: unexpected character after line continuation character