Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Avatar for 🦁 dev2.
Download

Just for testing purposes.

130 views
ubuntu2004-dev
Kernel: SageMath 9.3
show(2 / 3 + pi / e)
πe(1)+23\renewcommand{\Bold}[1]{\mathbf{#1}}\pi e^{\left(-1\right)} + \frac{2}{3}

Another method is to rotate a line, curve or function around an axis. Sage's revolution_plot3d allows to create another set of 3D objects.

Ref: https://doc.sagemath.org/html/en/reference/plot3d/sage/plot/plot3d/revolution_plot3d.html

var('u') line = u parabola = u^2 sur1 = revolution_plot3d(line, (u,0,1), opacity=0.5, rgbcolor=(1,0.5,0), show_curve=True, parallel_axis='x') sur2 = revolution_plot3d(parabola, (u,0,1), opacity=0.5, rgbcolor=(0,1,0), show_curve=True, parallel_axis='x') (sur1+sur2).show()