How would I plot in 3D: $\begin{cases} (4 - z^2) = x^2 + y^2, 2 \le z \le 4 \\ x^2 + y^2 = 4, -2 \le z \le 2 \end{cases}$.
I tried http://reference.wolfram.com/mathematica/ref/Piecewise.html
ContourPlot3D[
Piecewise[{(4 - z)^2 == x ^2 + y^2,
2 \le z \le 4}, {x^2 + y^2 = 4, -2 \le z \le 2}], {x, -3, 3}, {y, -3
, 3}, {z, -2, 4}]
I realise there's tex in my code but I don't know how otherwise to symbolise my attempt.
Piecewise
-- how did you try to use it? Also, your code mixes Mathematica with TeX -- I don't think that's going to work. $\endgroup$ – Michael E2 Apr 5 '14 at 15:23ContourPlot3D[4 == x^2 + y^2, {x, -3, 3}, {y, -3, 3}, {z, -2, 2}]
$\endgroup$ – Coolwater Apr 5 '14 at 15:24Piecewise
still doesn't function though. $\endgroup$ – NNOX Apps Apr 5 '14 at 16:11