Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

How Do I rotate f(x) around the x-axis in MATlab or Mathematica?

  1. Sep 21, 2004 #1
    Please help, I want a visualization of the function y = sech(x) revolved around the x-axis from x = -2 to 2, creating a "solid of revolution". :confused:
     
  2. jcsd
  3. Sep 22, 2004 #2

    Tide

    User Avatar
    Science Advisor
    Homework Helper

    Don't they have a plot3D command?
     
  4. Sep 22, 2004 #3
    Yes, but how would I use that in conjunction with the rotation? Could you give me an example please?
     
  5. Sep 22, 2004 #4

    Tide

    User Avatar
    Science Advisor
    Homework Helper

    I can't say for sure because I don't use either of the programs you mentioned but I would try something like
    [tex]y^2 + z^2 = \frac {1}{\sinh^2 x}[/tex]
    and solving for z in terms of x and y (two solutions) so that plot3D(z, [x, y]) for the two solutions would be plotted. (Again, I don't know the specifics of the syntax so you'll need to adjust but it should be something like that.)
     
  6. Sep 22, 2004 #5
    I believe the command is "SurfaceOfRevolution", do a search in the master index.
     
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook

Have something to add?
Similar Discussions: How Do I rotate f(x) around the x-axis in MATlab or Mathematica?
Loading...