Mathematica Stack Exchange is a question and answer site for users of Mathematica. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

As we all know in spherical coordinates a function phi = π/3 gives us a cone. The cone makes an angle of π/3 with the imagined z-axis. How do I type this formula into Mathematica?

share|improve this question
1  
RevolutionPlot3D[3 z, {z, 0, -2}, ColorFunction -> "Rainbow", Mesh -> None] – Dr. belisarius Dec 14 '13 at 5:49
1  
Related cones on spheres: Cone image refinement. – Artes Dec 14 '13 at 12:20

You can use CoordinateTransform to change coordinates to Cartesian and then use ParametricPlot3D to make the plot.

cone[r_, θ_] := 
  Evaluate[CoordinateTransform["Spherical" -> "Cartesian", {r, ϕ, θ}] /. ϕ -> π/4]
ParametricPlot3D[cone[r, θ], {r, 0, 1}, {θ, 0, 2. π}]

This gives

plot.png

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.