§
    OŠtjÕ  ã                   óT   — d dl mZmZmZ d dlmZmZmZmZm	Z	 d dl
mZ d„ Zd„ Zd„ ZdS )é    )ÚSÚpiÚRational)ÚhermiteÚsqrtÚexpÚ	factorialÚAbs)Úhbarc                 óT  — t          t          | |||g¦  «        \  } }}}||z  t          z  }|t          z  t	          dd¦  «        z  t          dd| z  t          | ¦  «        z  z  ¦  «        z  }|t          | |dz  z  dz  ¦  «        z  t          | t          |¦  «        |z  ¦  «        z  S )aJ  
    Returns the wavefunction psi_{n} for the One-dimensional harmonic oscillator.

    Parameters
    ==========

    n :
        the "nodal" quantum number.  Corresponds to the number of nodes in the
        wavefunction.  ``n >= 0``
    x :
        x coordinate.
    m :
        Mass of the particle.
    omega :
        Angular frequency of the oscillator.

    Examples
    ========

    >>> from sympy.physics.qho_1d import psi_n
    >>> from sympy.abc import m, x, omega
    >>> psi_n(0, x, m, omega)
    (m*omega)**(1/4)*exp(-m*omega*x**2/(2*hbar))/(hbar**(1/4)*pi**(1/4))

    é   é   é   )	Úmapr   r   r   r   r   r	   r   r   )ÚnÚxÚmÚomegaÚnuÚCs         úR/var/www/html/CA-Chatbot/venv/lib/python3.11/site-packages/sympy/physics/qho_1d.pyÚpsi_nr      s£   € õ8 �˜Q  1 eÐ,Ñ-Ô-�N€A€qˆ!ˆUØ	
ˆU‰•TÑ	€Bà	�B‰•˜!˜Q‘”Ñ¥$ q¨!¨Q©$­y¸©|¬|Ñ*;Ñ'<Ñ"=Ô"=Ñ=€Aà�s�B�3˜˜1™‘9˜a‘<Ñ Ô Ñ ¥7¨1­d°2©h¬h°q©jÑ#9Ô#9Ñ9Ð9ó    c                 ó6   — t           |z  | t          j        z   z  S )a  
    Returns the Energy of the One-dimensional harmonic oscillator.

    Parameters
    ==========

    n :
        The "nodal" quantum number.
    omega :
        The harmonic oscillator angular frequency.

    Notes
    =====

    The unit of the returned value matches the unit of hw, since the energy is
    calculated as:

        E_n = hbar * omega*(n + 1/2)

    Examples
    ========

    >>> from sympy.physics.qho_1d import E_n
    >>> from sympy.abc import x, omega
    >>> E_n(x, omega)
    hbar*omega*(x + 1/2)
    )r   r   ÚHalf)r   r   s     r   ÚE_nr   *   s   € õ: �%‰<˜1�qœv™:Ñ&Ð&r   c                 óŽ   — t          t          |¦  «        dz   dz  ¦  «        || z  z  t          t          | ¦  «        ¦  «        z  S )a  
    Returns <n|alpha> for the coherent states of 1D harmonic oscillator.
    See https://en.wikipedia.org/wiki/Coherent_states

    Parameters
    ==========

    n :
        The "nodal" quantum number.
    alpha :
        The eigen value of annihilation operator.
    r   )r   r
   r   r	   )r   Úalphas     r   Úcoherent_stater   J   s?   € õ •�U‘”˜Q‘ˆ˜qÑ Ñ!Ô! 5¨!¡8Ñ,­Tµ)¸A±,´,Ñ-?Ô-?Ñ?Ð?r   N)Ú
sympy.corer   r   r   Úsympy.functionsr   r   r   r	   r
   Úsympy.physics.quantum.constantsr   r   r   r   © r   r   ú<module>r$      s�   ðØ &Ð &Ð &Ð &Ð &Ð &Ð &Ð &Ð &Ð &Ø >Ð >Ð >Ð >Ð >Ð >Ð >Ð >Ð >Ð >Ð >Ð >Ð >Ð >Ø 0Ð 0Ð 0Ð 0Ð 0Ð 0ð!:ð !:ð !:ðH'ð 'ð 'ð@@ð @ð @ð @ð @r   