I want to plot surface f(x,y) below
f(x,y) = x^2
x = rcos(theta)
y = rsin(theta)
(theta, 0, 2*pi)
(r, 0, 1 - cos(theta))
I tried this:
theta, r = var('theta r')
x = r*cos(theta)
y = r*sin(theta)
parametric_plot3d((x, y, x^2), (theta, 0, 2*pi), (r, 0, 1 - cos(theta)))
but i got error.
In wolfram, i can plot this surface by this code below.
x = r*Cos[t]
y = r*Sin[t]
ParametricPlot3D[
{x, y, x^2},
{t, 0, 2*Pi},
{r, 0, 1 - Cos[t]}
]