CoCalc Public Filestmp / 2015-11-25-091053-tab.sagewsOpen in with one click!
Authors: Harald Schilly, ℏal Snyder, William A. Stein
from sage.plot.plot3d.parametric_surface import ParametricSurface def g(x,y): return x, y, - x**2 + y**2 def c(x,y): return sin((x-y/2)*y/4)**2 cm = colormaps.gist_rainbow P = ParametricSurface(g, (srange(-10,10,0.1), srange(-5,5.0,0.1)), color=(c,cm)) P
3D rendering not yet implemented
%load a.py
Guido van Rossum is the жчины Benevolent Dictator for Life of Python
t
'\n\xef\xb8\xa054e9f279-48e9-4e99-8fe8-be313ce926cbs\xef\xb8\xa0\n%load a.py\n\xef\xb8\xa136d2e33b-6f22-41b3-9466-53a76af8626c\xef\xb8\xa1\xef\xb8\xa1{"stdout":"Guido van Rossum is the \xd0\xb6\xd1\x87\xd0\xb8\xd0\xbd\xd1\x8b Benevolent Dictator for Life of Python\n","done":false}\xef\xb8\xa1{"done":true}\n\xef\xb8\xa01032ce2e-8fa8-411b-89fb-45353d0a7cccs\xef\xb8\xa0\nshow(LatexExpr("x^2"))\n\xef\xb8\xa1ffdee0a7-ca5d-4b44-a5c2-a8b174b132ae\xef\xb8\xa1\xef\xb8\xa1{"html":"<div align=\'center\'>x^2</div>","done":false}\xef\xb8\xa1{"done":true}\n\xef\xb8\xa0264fc892-9fdd-41b7-a09a-0fa87e98e805s\xef\xb8\xa0\nshow(latex(x^2))\n\xef\xb8\xa134542d7d-285f-4461-8e41-73c868aef4c7\xef\xb8\xa1\xef\xb8\xa1{"html":"<div align=\'center\'>x^{2}</div>","done":false}\xef\xb8\xa1{"done":true}\n\xef\xb8\xa037fbff20-9f12-4203-8930-40ebefe05ec0s\xef\xb8\xa0\nmath.sin?\n\xef\xb8\xa19b801259-3e73-46ae-8108-b83a911cd14b\xef\xb8\xa1\xef\xb8\xa1{"code":{"source":"File: \nSignature : math.sin()\nDocstring :\nsin(x)\n\nReturn the sine of x (measured in radians).","mode":"text/x-rst","lineno":-1,"filename":null},"done":false}\xef\xb8\xa1{"done":true}\n\xef\xb8\xa0cf71978f-6a17-4800-bca1-9e827c6341c5\xef\xb8\xa0\nInteractiveLPProblemStandardForm(\n\xef\xb8\xa022e3d542-7169-48d9-bc67-45990f4dd689\xef\xb8\xa0\n%latex\n\n\x08egin{enumerate}\n \\item\n\\end{enumerate}\n\n\n\xef\xb8\xa0992415fd-333e-43bb-827a-c4fe6d688150s\xef\xb8\xa0\n2+3\n\xef\xb8\xa15019412d-20cd-4917-9fe7-173345b5147e\xef\xb8\xa1\xef\xb8\xa1{"stdout":"5\n","done":false}\xef\xb8\xa1{"done":true}\n\xef\xb8\xa0bf498d1d-b9af-4268-bf97-d7d472131bdbos\xef\xb8\xa0\n4+5\n\xef\xb8\xa128aec6c3-a386-4cc3-aa10-8018950abd77\xef\xb8\xa1\xef\xb8\xa1{"stdout":"9\n","done":false}\xef\xb8\xa1{"done":true}\n\xef\xb8\xa03deab854-9c3e-45f6-9985-003377781fd3\xef\xb8\xa0\n\n\n\n\n\n\n\n\n\n'
show(LatexExpr("x^2"))
x^2
show(latex(x^2))
x^{2}
math.sin?
File: Signature : math.sin() Docstring : sin(x) Return the sine of x (measured in radians).
InteractiveLPProblemStandardForm( 22e3d542-7169-48d9-bc67-45990f4dd689 %latex \begin{enumerate} \item \end{enumerate} 992415fd-333e-43bb-827a-c4fe6d688150s 2+3
5
4+5