+
    ‹°³jÀ  ã                   óR   € ^ RI HtHt ^ RIHt ^ RIHt ^ RIHt ^ RI	H
t
 R tR tR# )	é    )ÚIÚpi)ÚS)Úexp)Úsqrt)Úhbarc                óœ   € \        V 4      \        V4      r\        V \        ,          V,          4      \        ^\        ,          4      ,          # )aR  
Returns the wavefunction for particle on ring.

Parameters
==========

n : The quantum number.
    Here ``n`` can be positive as well as negative
    which can be used to describe the direction of motion of particle.
x :
    The angle.

Examples
========

>>> from sympy.physics.pring import wavefunction
>>> from sympy import Symbol, integrate, pi
>>> x=Symbol("x")
>>> wavefunction(1, x)
sqrt(2)*exp(I*x)/(2*sqrt(pi))
>>> wavefunction(2, x)
sqrt(2)*exp(2*I*x)/(2*sqrt(pi))
>>> wavefunction(3, x)
sqrt(2)*exp(3*I*x)/(2*sqrt(pi))

The normalization of the wavefunction is:

>>> integrate(wavefunction(2, x)*wavefunction(-2, x), (x, 0, 2*pi))
1
>>> integrate(wavefunction(4, x)*wavefunction(-4, x), (x, 0, 2*pi))
1

References
==========

.. [1] Atkins, Peter W.; Friedman, Ronald (2005). Molecular Quantum
       Mechanics (4th ed.).  Pages 71-73.

)r   r   r   r   r   )ÚnÚxs   &&ÚT/home/luca/screen-checking/.venv/lib/python3.14/site-packages/sympy/physics/pring.pyÚwavefunctionr      s3   € ôR ˆQ‹4”�1“€qÜˆq”1�u�q�y‹>œD ¤R¥›LÕ(Ð(ó    c                óê   € \        V 4      \        V4      \        V4      r!p V P                  '       d8   V ^,          \        ^,          ,          ^V,          V^,          ,          ,          # \        R4      h)ae  
Returns the energy of the state corresponding to quantum number ``n``.

E=(n**2 * (hcross)**2) / (2 * m * r**2)

Parameters
==========

n :
    The quantum number.
m :
    Mass of the particle.
r :
    Radius of circle.

Examples
========

>>> from sympy.physics.pring import energy
>>> from sympy import Symbol
>>> m=Symbol("m")
>>> r=Symbol("r")
>>> energy(1, m, r)
hbar**2/(2*m*r**2)
>>> energy(2, m, r)
2*hbar**2/(m*r**2)
>>> energy(-2, 2.0, 3.0)
0.111111111111111*hbar**2

References
==========

.. [1] Atkins, Peter W.; Friedman, Ronald (2005). Molecular Quantum
       Mechanics (4th ed.).  Pages 71-73.

z'n' must be integer)r   Ú
is_integerr   Ú
ValueError)r
   ÚmÚrs   &&&r   Úenergyr   5   sT   € ôJ �‹d”A�a“Dœ!˜A›$ˆ!€AØ‡|‡|€|Ø�1•”t˜Q•w• 1 q¥5¨1¨a­4¥<Õ0Ð0äÐ.Ó/Ð/r   N)Úsympy.core.numbersr   r   Úsympy.core.singletonr   Ú&sympy.functions.elementary.exponentialr   Ú(sympy.functions.elementary.miscellaneousr   Úsympy.physics.quantum.constantsr   r   r   © r   r   Ú<module>r      s   ðß &Ý "Ý 6Ý 9Ý 0ò*)ôZ)0r   