Level Curves and Surfaces

4433 days ago by pub

var('u v') 
       
(u, v)
(u, v)
parametric_plot3d([u * cos(v), u * sin(v), sqrt(9 - u^2)], (u, 0, 3), (v, 0, 2 * pi)) 
       
core
colors = ("red", "orange", "green", "blue") 
       
sum([ parametric_plot([a * cos(v), a * sin(v)], 0, 2 * pi, rgbcolor = colors[a]) for a in range(4) ]) 
       
sum([ parametric_plot3d([a * cos(u) * sin(v), a * sin(u) * sin(v), a * cos(v)], (u, 0, 2 * pi), (v, 0, pi), color = colors[a], opacity = 0.1) for a in range(4) ])