Contact
CoCalc Logo Icon
StoreFeaturesDocsShareSupport News AboutSign UpSign In
| Download

All published worksheets from http://sagenb.org

Views: 168744
Image: ubuntu2004
x, y = var('x,y') plot3d((x-y)^2, (x,-10,10), (y,-10,10))
x, y = var('x,y') plot3d((x+y)^2, (x,-10,10), (y,-10,10))
x, y = var('x,y') plot3d((x^2-y^2), (x,-10,10), (y,-10,10))
x, y = var('x,y') plot3d((x^2+y^2), (x,-10,10), (y,-10,10))
x, y = var('x,y') plot3d((abs(x))+(abs(y)), (x,-10,10), (y,-10,10))
x, y = var('x,y') plot3d((abs(x))-(abs(y)), (x,-10,10), (y,-10,10))
u = var('u') parametric_plot3d( (u, exp(u), cos(u)), (u, 0, 20))
u = var('u') p1 = parametric_plot3d( (u, exp(u), cos(u)), (u, 0, 20)) p2 = parametric_plot3d( (1, exp(pi/2), -1), (u, 0, 20)) show(p1+p2,ymin=-100,ymax=100)
x = var('x') plot(x^2)
x, y = var('x,y') plot3d(sqrt(4 -((x^2)/4)-(y^2)), (x,0,10), (y,0,10))
Traceback (most recent call last): File "<stdin>", line 1, in <module> File "_sage_input_17.py", line 9, in <module> exec compile(ur'open("___code___.py","w").write("# -*- coding: utf-8 -*-\n" + _support_.preparse_worksheet_cell(base64.b64decode("eCwgeSA9IHZhcigneCx5JykKcGxvdDNkKHNxcnQoNCAtKCh4XjIpLzQpLSh5XjIpKSwgKHgsMCwxMCksICh5LDAsMTApKQ=="),globals())+"\n"); execfile(os.path.abspath("___code___.py"))' + '\n', '', 'single') File "", line 1, in <module> File "/tmp/tmpiTYLV4/___code___.py", line 4, in <module> exec compile(ur'plot3d(sqrt(_sage_const_4 -((x**_sage_const_2 )/_sage_const_4 )-(y**_sage_const_2 )), (x,_sage_const_0 ,_sage_const_10 ), (y,_sage_const_0 ,_sage_const_10 ))' + '\n', '', 'single') File "", line 1, in <module> File "/usr/local/sage2/local/lib/python2.6/site-packages/sage/misc/displayhook.py", line 174, in displayhook print_obj(sys.stdout, obj) File "/usr/local/sage2/local/lib/python2.6/site-packages/sage/misc/displayhook.py", line 142, in print_obj print >>out_stream, `obj` File "base.pyx", line 76, in sage.plot.plot3d.base.Graphics3d.__repr__ (sage/plot/plot3d/base.c:2163) File "base.pyx", line 1085, in sage.plot.plot3d.base.Graphics3d.show (sage/plot/plot3d/base.c:10556) File "base.pyx", line 823, in sage.plot.plot3d.base.Graphics3d._prepare_for_jmol (sage/plot/plot3d/base.c:6807) File "base.pyx", line 901, in sage.plot.plot3d.base.Graphics3d._transform_to_bounding_box (sage/plot/plot3d/base.c:8508) File "/usr/local/sage2/local/lib/python2.6/site-packages/sage/plot/plot3d/shapes2.py", line 283, in frame_labels fmt = fmt_string(lz1 - lz0) File "/usr/local/sage2/local/lib/python2.6/site-packages/sage/plot/plot3d/shapes2.py", line 268, in fmt_string n = max(0, 2 - nd(a/2.0)) File "/usr/local/sage2/local/lib/python2.6/site-packages/sage/plot/plot3d/shapes2.py", line 263, in <lambda> nd = lambda a: int(log(a)/log10) ValueError: cannot convert float NaN to integer