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

Click For Summary

Discussion Overview

The discussion revolves around how to visualize the function y = sech(x) when revolved around the x-axis, specifically creating a solid of revolution using MATLAB or Mathematica. The focus is on finding appropriate commands and methods for achieving this visualization.

Discussion Character

  • Exploratory, Technical explanation, Homework-related

Main Points Raised

  • One participant requests assistance with visualizing the function y = sech(x) revolved around the x-axis from x = -2 to 2.
  • Another participant suggests the use of a plot3D command for the visualization.
  • A different participant questions how to utilize the plot3D command in conjunction with the rotation and asks for an example.
  • One participant proposes an equation involving y and z to represent the solid of revolution and suggests solving for z in terms of x and y, although they express uncertainty about the specific syntax.
  • Another participant mentions a command called "SurfaceOfRevolution" and recommends searching for it in the master index.

Areas of Agreement / Disagreement

Participants do not appear to reach a consensus on the best method to visualize the solid of revolution, with multiple suggestions and approaches presented without agreement on a definitive solution.

Contextual Notes

There are limitations regarding the specific syntax and commands for MATLAB and Mathematica, which remain unresolved in the discussion.

Who May Find This Useful

Individuals interested in visualizing mathematical functions and solids of revolution using MATLAB or Mathematica may find this discussion relevant.

VinnyCee
Messages
486
Reaction score
0
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:
 
Physics news on Phys.org
Don't they have a plot3D command?
 
Yes, but how would I use that in conjunction with the rotation? Could you give me an example please?
 
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.)
 
I believe the command is "SurfaceOfRevolution", do a search in the master index.
 

Similar threads

  • · Replies 10 ·
Replies
10
Views
3K
Replies
5
Views
3K
  • · Replies 32 ·
2
Replies
32
Views
4K
  • · Replies 2 ·
Replies
2
Views
4K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 5 ·
Replies
5
Views
4K
  • · Replies 11 ·
Replies
11
Views
3K
  • · Replies 2 ·
Replies
2
Views
4K
  • · Replies 9 ·
Replies
9
Views
3K
  • · Replies 2 ·
Replies
2
Views
4K