All published worksheets from http://sagenb.org
reset() var('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)
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))