Niles
- 1,834
- 0
Hi
I am looking at the contours of the following function f, which trace out an ellipse:
<br /> f(x, y, z) = \exp(-x^2a)\exp(-y^2b)<br />
Here a\neq b are both positive, real constants. The axis of these ellipses is along z. Now, I am wondering how to generalize the function f such that the symmetry axis of these elliptical contours lies along an arbitrary vector defined by some line that goes through the point p=(x0, y0, z0) and has directional vector r (in usual spherical coordinates)
<br /> r = (\sin \theta, \cos \phi, \sin \theta\sin\phi, \cos \theta)<br />
If a=b=1 the task would be easy: In this case we can write d^2 = x^2 + y^2, and generalize this such that it gives the distance between the point/coordinate (x,y,z) and the above line (p, r). But when a\neq b I can't write d^2 like that. What can I do in this general case?
Note that this question is a generalization of this thread, where the case a=b=1 was treated. Thanks in advance for hints/help.
I am looking at the contours of the following function f, which trace out an ellipse:
<br /> f(x, y, z) = \exp(-x^2a)\exp(-y^2b)<br />
Here a\neq b are both positive, real constants. The axis of these ellipses is along z. Now, I am wondering how to generalize the function f such that the symmetry axis of these elliptical contours lies along an arbitrary vector defined by some line that goes through the point p=(x0, y0, z0) and has directional vector r (in usual spherical coordinates)
<br /> r = (\sin \theta, \cos \phi, \sin \theta\sin\phi, \cos \theta)<br />
If a=b=1 the task would be easy: In this case we can write d^2 = x^2 + y^2, and generalize this such that it gives the distance between the point/coordinate (x,y,z) and the above line (p, r). But when a\neq b I can't write d^2 like that. What can I do in this general case?
Note that this question is a generalization of this thread, where the case a=b=1 was treated. Thanks in advance for hints/help.
Last edited: