How Can I Plot This Contoured Function?

  • Thread starter Thread starter rsq_a
  • Start date Start date
  • Tags Tags
    Function Plots
AI Thread Summary
To plot the contoured function, it's essential to recognize that the function is not simply f(x,y) = 1/(xy) but resembles 1/x when rotated around the z-axis. Using cylindrical coordinates is recommended for capturing the circular symmetry, with the function expressed as z = -1/r, where r is the radial distance. For Cartesian coordinates, the function can be represented as z = -1/sqrt(x^2 + y^2) or variations like z = -1/(x^2 + y^2). The discussion also highlights the importance of specifying the function's parameters to achieve the desired contour plot. Proper implementation in software like Maple or Matlab can yield the correct visual representation.
rsq_a
Messages
103
Reaction score
1
This is both a question about the function used to plot AND how to plot the function (I'm interested in keeping the contour/level lines the same):

This looks like a simple f(x,y) = 1/(xy) function. But how would I get Maple/Matlab to plot the contours as shown?

http://science.nasa.gov/headlines/y2005/images/gpb/vortex1_crop.jpg one I have no idea. Any idea how its plot can be generated?
 
Last edited by a moderator:
Mathematics news on Phys.org
I don't see any great difference between the two.

First, they are 3 dimensional and, second, they have circular symmetry so it is best to use cylindrical coordinates. The first is not "1/xy" but you are right to think it looks like 1/x, rotated around the z-axis. Use "r", not x. z= -1/r will give a graph like that. Without more specific information about the graph, z= -1/r2, z= -1/r3, etc. all look the same. If you want them in Cartesian coordinates, use r= \sqrt{x^2+ y^2}. Then they are z= -1/\sqrt{x^2+ y^2}, z= -1/(x^2+ y^2), z= -1/(x^2+ y^2)^{3/2}, etc.l
 
try this:

[X,Y] = meshgrid([-5:0.2:5]);
Zm=1./sqrt(X.^2+Y.^2);
surf(X,Y,-Zm);
 
Insights auto threads is broken atm, so I'm manually creating these for new Insight articles. In Dirac’s Principles of Quantum Mechanics published in 1930 he introduced a “convenient notation” he referred to as a “delta function” which he treated as a continuum analog to the discrete Kronecker delta. The Kronecker delta is simply the indexed components of the identity operator in matrix algebra Source: https://www.physicsforums.com/insights/what-exactly-is-diracs-delta-function/ by...
Fermat's Last Theorem has long been one of the most famous mathematical problems, and is now one of the most famous theorems. It simply states that the equation $$ a^n+b^n=c^n $$ has no solutions with positive integers if ##n>2.## It was named after Pierre de Fermat (1607-1665). The problem itself stems from the book Arithmetica by Diophantus of Alexandria. It gained popularity because Fermat noted in his copy "Cubum autem in duos cubos, aut quadratoquadratum in duos quadratoquadratos, et...
Thread 'Imaginary Pythagorus'
I posted this in the Lame Math thread, but it's got me thinking. Is there any validity to this? Or is it really just a mathematical trick? Naively, I see that i2 + plus 12 does equal zero2. But does this have a meaning? I know one can treat the imaginary number line as just another axis like the reals, but does that mean this does represent a triangle in the complex plane with a hypotenuse of length zero? Ibix offered a rendering of the diagram using what I assume is matrix* notation...

Similar threads

Replies
3
Views
1K
Replies
7
Views
2K
Replies
1
Views
1K
Replies
5
Views
2K
Replies
1
Views
3K
Replies
12
Views
2K
Back
Top