Contact
CoCalc Logo Icon
StoreFeaturesDocsShareSupport News AboutSign UpSign In
| Download

All published worksheets from http://sagenb.org

Views: 168771
Image: ubuntu2004
In the second edition of this ploting saga, I've made a cylindric plot.
reset() var('fi,z')
(fi, z)
def cylindrical_plot(f,phiran,zran,**kwds): phi=phiran[0] z=zran[0] Rho=(f*cos(phi),f*sin(phi),z) return parametric_plot3d(Rho,phiran,zran,**kwds)
Some examples:
cylindrical_plot(2,(fi,0,3*pi/2),(z,-2,2))
cylindrical_plot(cosh(z),(fi,0,2*pi),(z,-2,2))
cylindrical_plot(e^(-z^2)*(cos(4*fi)+2)+1,(fi,0,2*pi),(z,-2,2),plot_points=[80,80]).show(aspect_ratio=(1,1,1))