Plotting 3D with regions with non constant limits
- To: mathgroup at smc.vnet.net
- Subject: [mg38694] Plotting 3D with regions with non constant limits
- From: fhjdeboer at raketnet.nl (Frans de Boer)
- Date: Sun, 5 Jan 2003 06:34:07 -0500 (EST)
- Sender: owner-wri-mathgroup at wolfram.com
Hello everybody,
Consider the following problem
Plot3D[x + y, {y, 0, 1 - x^2}, {x, -1, 1}]
or
Plot3D[x + y, {x, -1, 1},{y, 0, 1 - x^2}]
Both are not accepted because Mathematica demands constant limiting values
for both x and y.
This seems strange to me.
Is there a way to plot a function of two variables where the limiting values
of one depend on the other?
I solved the problem by plotting
ParametricPlot3D[{r Cos[t], r^2 (Sin[t])^2,r^2 (Sin[t])^2 + r Cos[t]}, {t,
0, \[Pi]}, {r, 0, 1}]
but in general I find this to complicated.
Is there a direct way?
Sincerely,
Frans de Boer