# 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
# 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])