This question is in direct reference to Plotting Ellipsoid with Matplotlib.
I need to model an ellipsoid in 4 or higher dimension.
I need to understand the answer in the above question so I can extend it to solve my prob. How are these lines of code working :
# Cartesian coordinates that correspond to the spherical angles:
# (this is the equation of an ellipsoid):
x = rx * np.outer(np.cos(u), np.sin(v))
y = ry * np.outer(np.sin(u), np.sin(v))
z = rz * np.outer(np.ones_like(u), np.cos(v))
I need the answer : How was the cos(u) and sin(v) etc chosen?
Thanks in advance.