Contact
CoCalc Logo Icon
StoreFeaturesDocsShareSupport News AboutSign UpSign In
| Download

All published worksheets from http://sagenb.org

Views: 168697
Image: ubuntu2004
p = plot(2.7^(-0.5*x) * cos(2*pi*x),(0,6),rgbcolor=hue(0.4),legend_label='e^(-0.5*x) * cos(2*pi*x)') z = plot(2.7^(-0.5*x), (0,6),rgbcolor=hue(0.6),legend_label='e^(-0.5*x)') w = p+z w.axes_label_color((1,0,0)) w.axes_labels(['$X-Achse$','$Y-Achse$']) w.set_legend_options(shadow=True) w.set_legend_options(loc=(0.7,0.2)) show (w) g = plot(x^2-1,(-3,3),rgbcolor=hue(0.4),legend_label='x^2-1') g.axes_label_color((1,0,0)) g.axes_labels(['$X-Achse$','$Y-Achse$']) g.set_legend_options(shadow=True) g.set_legend_options(loc=(0.6,0.5)) show (g) f = lambda x: x^2-1 find_minimum_on_interval(f,-5,5)
(-1.0, 4.9333333333333337e-09)
a = animate([circle(sin(x + float(k)) for k in srange(4*pi,1)],xmin=2*pi,ymin=0,xmax=60,ymax=30,aspect_ratio=1,axes=false) show(a)
Traceback (most recent call last): File "<stdin>", line 1, in <module> File "_sage_input_48.py", line 10, in <module> exec compile(u'open("___code___.py","w").write("# -*- coding: utf-8 -*-\\n" + _support_.preparse_worksheet_cell(base64.b64decode("YSA9IGFuaW1hdGUoW2NpcmNsZShzaW4oeCArIGZsb2F0KGspKSBmb3IgayBpbiBzcmFuZ2UoNCpwaSwxKV0seG1pbj0yKnBpLHltaW49MCx4bWF4PTYwLHltYXg9MzAsYXNwZWN0X3JhdGlvPTEsYXhlcz1mYWxzZSkgCnNob3coYSk="),globals())+"\\n"); execfile(os.path.abspath("___code___.py"))' + '\n', '', 'single') File "", line 1, in <module> File "/tmp/tmphHN8n3/___code___.py", line 3 a = animate([circle(sin(x + float(k)) for k in srange(_sage_const_4 *pi,_sage_const_1 )],xmin=_sage_const_2 *pi,ymin=_sage_const_0 ,xmax=_sage_const_60 ,ymax=_sage_const_30 ,aspect_ratio=_sage_const_1 ,axes=false) ^ SyntaxError: invalid syntax
a = animate([circle((i,abs((10+i/15)*sin(i/3))), 2) for i in srange(1,50)], xmin=0,ymin=-5,xmax=50,ymax=20,axes=false) a.show()