For drawing a torus, we can parametrize the surface as (for example) x(t,s) = (2+cos(t))*cos(s+pi/2) y(t,s) = (2+cos(t))*sin(s+pi/2) z(t,s) = sin(t) where both t and…

An application of volumes of revolution for plotting a three-dimensional heart. If your TeX installation would throw an error “TeX capacity exceeded”, you could use…