I Creating a Discontinuous 3D Function for Quantum Dots

  • I
  • Thread starter Thread starter Ben Wilson
  • Start date Start date
  • Tags Tags
    3d Function
Ben Wilson
Messages
90
Reaction score
16
I have, say, an ellipse in the x-y plane: (x^2/a^2) + (y^2/b^2) = 1

I want a 3d (e.g. z) function where inside the ellipse z=+1, outside z=0; the function is not continuous.

so in effect what I'm left with is a large plane where z= 0, and a small ellipse cut out raised to z=1.

How do I write what I want in terms that i can implement it in computations.

%this problem comes from describing quantum dots in 2 and 3 dimensions.
 
Mathematics news on Phys.org
Ben Wilson said:
I have, say, an ellipse in the x-y plane: (x^2/a^2) + (y^2/b^2) = 1

I want a 3d (e.g. z) function where inside the ellipse z=+1, outside z=0; the function is not continuous.

so in effect what I'm left with is a large plane where z= 0, and a small ellipse cut out raised to z=1.

How do I write what I want in terms that i can implement it in computations.

%this problem comes from describing quantum dots in 2 and 3 dimensions.
How about this?
$$f(x, y) = \begin{cases} 1, & \frac{x^2}{a^2} + \frac{y^2}{b^2} \le 1 \\
0, & \frac{x^2}{a^2} + \frac{y^2}{b^2} > 1\end{cases}$$
 
Mark44 said:
How about this?
$$f(x, y) = \begin{cases} 1, & \frac{x^2}{a^2} + \frac{y^2}{b^2} \le 1 \\
0, & \frac{x^2}{a^2} + \frac{y^2}{b^2} > 1\end{cases}$$

that looks perfect tbh. Do you have any idea how i could implement that into a program?
for instance if i have two vectors representing my x and y space, how would i go about describing this function in MATLAB or fortran or something?
 
Ben Wilson said:
that looks perfect tbh. Do you have any idea how i could implement that into a program?
for instance if i have two vectors representing my x and y space, how would i go about describing this function in MATLAB or fortran or something?
Your vectors are really points in the x-y plane. For a given point (x, y), calculate ##b^2x^2 + a^2y^2##. If this is greater than ##a^2b^2##, your function should return 0. Otherwise, it should return 0.
 
thanks you have been an amazing help
 
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...
I'm interested to know whether the equation $$1 = 2 - \frac{1}{2 - \frac{1}{2 - \cdots}}$$ is true or not. It can be shown easily that if the continued fraction converges, it cannot converge to anything else than 1. It seems that if the continued fraction converges, the convergence is very slow. The apparent slowness of the convergence makes it difficult to estimate the presence of true convergence numerically. At the moment I don't know whether this converges or not.

Similar threads

Replies
3
Views
2K
Replies
3
Views
2K
Replies
2
Views
1K
Replies
10
Views
2K
Replies
2
Views
2K
Replies
6
Views
2K
Replies
5
Views
2K
Replies
4
Views
2K
Back
Top