Contact
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
| Download

All published worksheets from http://sagenb.org

Views: 168822
Image: ubuntu2004
Plot[x,{x,-2*Pi,2*Pi}] plot (sin,(-
8*pi,8*pi))
var('y'); plot(sin(y),(y,-pi,pi))
y
var('x y z'); implicit_plot3d(x^2+y^2-z^2,(x, -2, 2),(y, -2, 2),(z,-2,2))
(x, y, z)
lim((1+1/x)^x,x=oo)
e
diff(sin(x)*log(x^(1/x)),x)
-(log(x)/x^2 - 1/x^2)*sin(x) + log(x^(1/x))*cos(x)
print 1/2
1/2
f = 1/((1+x)*(x-1)) print f.partial_fraction(x)
1/2/(x - 1) - 1/2/(x + 1)
print 1/2/(x - 1) - 1/2/(x + 1)
1/2/(x - 1) - 1/2/(x + 1)
maxima.plot2d_parametric(["cos(2*t) + 2*cos(t)","4*cos(t) - cos(2*t)"], "t",[0,1])
Traceback (most recent call last): File "<stdin>", line 1, in <module> File "_sage_input_2.py", line 10, in <module> exec compile(u'open("___code___.py","w").write("# -*- coding: utf-8 -*-\\n" + _support_.preparse_worksheet_cell(base64.b64decode("bWF4aW1hLnBsb3QyZF9wYXJhbWV0cmljKFsiY29zKDIqdCkgKyAyKmNvcyh0KSIsIjQqY29zKHQpIC0gY29zKDIqdCkiXSwgInQiLFswLDFdKQ=="),globals())+"\\n"); execfile(os.path.abspath("___code___.py"))' + '\n', '', 'single') File "", line 1, in <module> File "/tmp/tmp61CPk9/___code___.py", line 3, in <module> exec compile(u'maxima.plot2d_parametric(["cos(2*t) + 2*cos(t)","4*cos(t) - cos(2*t)"], "t",[_sage_const_0 ,_sage_const_1 ])' + '\n', '', 'single') File "", line 1, in <module> File "/sagenb/sage_install/sage-5.0-boxen-x86_64-Linux/local/lib/python2.7/site-packages/sage/interfaces/maxima_abstract.py", line 738, in plot2d_parametric self(cmd) File "/sagenb/sage_install/sage-5.0-boxen-x86_64-Linux/local/lib/python2.7/site-packages/sage/interfaces/interface.py", line 198, in __call__ return cls(self, x, name=name) File "/sagenb/sage_install/sage-5.0-boxen-x86_64-Linux/local/lib/python2.7/site-packages/sage/interfaces/maxima.py", line 1155, in __init__ ExpectElement.__init__(self, parent, value, is_name=False, name=None) File "/sagenb/sage_install/sage-5.0-boxen-x86_64-Linux/local/lib/python2.7/site-packages/sage/interfaces/expect.py", line 1334, in __init__ raise TypeError, x TypeError: Error executing code in Maxima CODE: sage0 : plot2d([parametric, cos(2*t) + 2*cos(t), 4*cos(t) - cos(2*t), [t, 0, 1], [nticks, 50]])$ Maxima ERROR: exec: No such file or directory Maxima encountered a Lisp error: Serious signal 13 caught. Automatically continuing. To enable the Lisp debugger set *debugger-hook* to nil.
plot2d_parametric(["cos(2*t) + 2*cos(t)","4*cos(t) - cos(2*t)"], "t",[0,1])
Traceback (most recent call last): File "<stdin>", line 1, in <module> File "_sage_input_12.py", line 10, in <module> exec compile(u'open("___code___.py","w").write("# -*- coding: utf-8 -*-\\n" + _support_.preparse_worksheet_cell(base64.b64decode("cGxvdDJkX3BhcmFtZXRyaWMoWyJjb3MoMip0KSArIDIqY29zKHQpIiwiNCpjb3ModCkgLSBjb3MoMip0KSJdLCAidCIsWzAsMV0p"),globals())+"\\n"); execfile(os.path.abspath("___code___.py"))' + '\n', '', 'single') File "", line 1, in <module> File "/tmp/tmpjs0cCN/___code___.py", line 3, in <module> exec compile(u'plot2d_parametric(["cos(2*t) + 2*cos(t)","4*cos(t) - cos(2*t)"], "t",[_sage_const_0 ,_sage_const_1 ])' + '\n', '', 'single') File "", line 1, in <module> NameError: name 'plot2d_parametric' is not defined
8*3
24
plot(sin(x),-2*pi,2*pi,rgbcolor=(1,0,0))+plot(cos(x),-2*pi,2*pi,rgbcolor=(0,1,0))
var('y'); plot(sin(y),(y,-pi,pi))
y