# I will heavily use parametric plots when the surface is defined by an equation f(x, y, z) = 0,
# not z = f(x, y).
# We'll talk about parametric surfaces later in the semester.
# Set up the parameters
var('u v')
# The x, y, & z coordinates as functions of the parameters
fx = cos(u) * sin(v)
fy = 2 * sin(u) * sin(v)
fz = 3 * cos(v)
# Plot an ellipsoid
# 'aspect_ratio = [1, 1, 1]' makes the scaling of the axes equal
# without it, the plot looks like a sphere because the axes are each scaled differently
parametric_plot3d([fx, fy, fz], (u, 0, 2 * pi), (v, 0, pi), aspect_ratio = [1, 1, 1])
|
5
500
/home/pub/11/cells/5/.jmol_images/sage0-size500.jmol.png?1653528164.95
/home/pub/11/cells/5/sage0-size500.jmol?1653528164.95
/home/pub/11/jsmol
notActivated
|