Contact
CoCalc Logo Icon
StoreFeaturesDocsShareSupport News AboutSign UpSign In
| Download

All published worksheets from http://sagenb.org

Views: 168703
Image: ubuntu2004
x, y, z = var('x,y,z')
d=implicit_plot3d((x^2)/2 + (y^2) + (z^2) - 1, (x,-2, 2), (y,-2, 2), (z,-2, 2))
d
example 1
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("ZXhhbXBsZSAx"),globals())+"\\n"); execfile(os.path.abspath("___code___.py"))' + '\n', '', 'single') File "", line 1, in <module> File "/tmp/tmpvaTZgp/___code___.py", line 3 example _sage_const_1 ^ SyntaxError: invalid syntax
a=implicit_plot3d((x^2)/2 + (y^2) - (z^2), (x,-2, 2), (y,-1, 1), (z,-1, 1))
a
example 2
Traceback (most recent call last): File "<stdin>", line 1, in <module> File "_sage_input_11.py", line 10, in <module> exec compile(u'open("___code___.py","w").write("# -*- coding: utf-8 -*-\\n" + _support_.preparse_worksheet_cell(base64.b64decode("ZXhhbXBsZSAy"),globals())+"\\n"); execfile(os.path.abspath("___code___.py"))' + '\n', '', 'single') File "", line 1, in <module> File "/tmp/tmpWVqoXX/___code___.py", line 3 example _sage_const_2 ^ SyntaxError: invalid syntax
b=implicit_plot3d(-x^2 + y^2 - z, (x,-2, 2), (y,-2, 2), (z,-2, 2))
b
problem #20
Traceback (most recent call last): File "<stdin>", line 1, in <module> File "_sage_input_14.py", line 10, in <module> exec compile(u'open("___code___.py","w").write("# -*- coding: utf-8 -*-\\n" + _support_.preparse_worksheet_cell(base64.b64decode("cHJvYmxlbSAjMjA="),globals())+"\\n"); execfile(os.path.abspath("___code___.py"))' + '\n', '', 'single') File "", line 1, in <module> File "/tmp/tmpRmi2FX/___code___.py", line 2, in <module> exec compile(u'problem #20' + '\n', '', 'single') File "", line 1, in <module> NameError: name 'problem' is not defined
c=implicit_plot3d(-9*x^2 - 4*y^2 + 36*z^2, (x,-2, 2), (y,-3, 3), (z,-1, 1))
c
problem #28
Traceback (most recent call last): File "<stdin>", line 1, in <module> File "_sage_input_17.py", line 10, in <module> exec compile(u'open("___code___.py","w").write("# -*- coding: utf-8 -*-\\n" + _support_.preparse_worksheet_cell(base64.b64decode("cHJvYmxlbSAjMjg="),globals())+"\\n"); execfile(os.path.abspath("___code___.py"))' + '\n', '', 'single') File "", line 1, in <module> File "/tmp/tmpHrlaFn/___code___.py", line 2, in <module> exec compile(u'problem #28' + '\n', '', 'single') File "", line 1, in <module> NameError: name 'problem' is not defined
p=implicit_plot3d(x - y^2 - 4*z^2, (x,-2, 2), (y,-2, 2), (z,-2, 2))
p
From the homework
Traceback (most recent call last): File "<stdin>", line 1, in <module> File "_sage_input_21.py", line 10, in <module> exec compile(u'open("___code___.py","w").write("# -*- coding: utf-8 -*-\\n" + _support_.preparse_worksheet_cell(base64.b64decode("RnJvbSB0aGUgaG9tZXdvcms="),globals())+"\\n"); execfile(os.path.abspath("___code___.py"))' + '\n', '', 'single') File "", line 1, in <module> File "/tmp/tmpN4hpMH/___code___.py", line 2 From the homework ^ SyntaxError: invalid syntax
#15
implicit_plot3d(x^2 +(y^2)/4 + (z^2)/9 -1, (x,-3, 3), (y,-3, 3), (z,-3, 3))
#17
implicit_plot3d((x^2)/4 +(y^2)/9 - (z^2)/16 -1, (x,-4, 4), (y,-4, 4), (z,-4, 4))
#19
implicit_plot3d(x^2 +4*(y^2) - 4*(z^2), (x,-2, 2), (y,-1, 1), (z,-1, 1))
#21
implicit_plot3d(-1*(x^2)/4 -1*(y^2)/9 + (z^2)/4 -1, (x,-10, 10), (y,-10, 10), (z,-4, 4))
#23
implicit_plot3d(z+x^2-y^2, (x,-2, 2), (y,-2, 2), (z,-1, 1))
#25
implicit_plot3d(4*z-x^2-2*y^2, (x,-2, 2), (y,-2, 2), (z,0, 1))
#27
implicit_plot3d(x^2-3*y^2-3*z^2, (x,-3, 3), (y,-3, 3), (z,-3, 3))
#29
implicit_plot3d(2*y^2-x^2+2*z^2 -8, (x,-3, 3), (y,-3, 3), (z,-3, 3))
#31
implicit_plot3d(z-(x^2)/4+(y^2)/9, (x,-10, 10), (y,-10, 10), (z,-10, 10))