Contact
CoCalc Logo Icon
StoreFeaturesDocsShareSupport News AboutSign UpSign In
| Download

All published worksheets from http://sagenb.org

Views: 168703
Image: ubuntu2004
circle((1,1),2)
c= circle((0,0), 1, rgbcolor=hue(0.4)) c.show(aspect_ratio=1) show(c, axes=false)
c = circle((2,1), 2.5, rgbcolor=(1,0,0), fill= True) d = circle((4,-2), 5, rgbcolor=(0,0,1)) show (c+d, aspect_ratio=1)
plot (x^3,(x,-2,4))
f = plot(exp(-1/2*x)*cos(2*pi*x),(x,0,6), rgbcolor=hue(4.0)) g = plot(exp(-1/2*x),(x,0,6),rgbcolor=(0,0,1)) show (f+g)
Traceback (most recent call last): File "<stdin>", line 1, in <module> File "_sage_input_25.py", line 10, in <module> exec compile(u'open("___code___.py","w").write("# -*- coding: utf-8 -*-\\n" + _support_.preparse_worksheet_cell(base64.b64decode("ZiA9IHBsb3QoZXhwKC0xLzIqeCkqY29zKDIqcGkqeCksKHgsMCw2KSwgcmdiY29sb3I9aHVlKDQuMCkpCmcgPSBwbG90KGV4cCgtMS8yKngpLCh4LDAsNiksIHJnYmNvbG9yKDAsMCwxKSkKc2hvdyAoZitnKQ=="),globals())+"\\n"); execfile(os.path.abspath("___code___.py"))' + '\n', '', 'single') File "", line 1, in <module> File "/tmp/tmp5xBP6L/___code___.py", line 4, in <module> g = plot(exp(-_sage_const_1 /_sage_const_2 *x),(x,_sage_const_0 ,_sage_const_6 ), rgbcolor(_sage_const_0 ,_sage_const_0 ,_sage_const_1 )) NameError: name 'rgbcolor' is not defined
f = plot(exp(-1/2*x)*cos(2*pi*x),(x,0,6), rgbcolor=hue(4.0)) g = plot(exp(-1/2*x),(x,0,6),rgbcolor=(0,0,1)) show (f+g)